/* Dropstone Farm
   Ported from the Claude Design exploration. Design is desktop-first at
   1180px; this stylesheet rebuilds it mobile-first per the handoff.

   Palette and type are the locked decisions from the handoff:
   linen bg, deep pine panels, rust accent, soft copper, olive hairline.
   Monospace (Plex Mono) is reserved for records: IDs, sex, age, price,
   dates, and eyebrow labels. It is never decorative.
*/

:root {
  --linen: #eae6d8;
  --pine: #232d1e;
  --pine-line: #3c4936;
  --ink: #221f18;
  --ink-soft: #3f3a2e;
  --rust: #9c4322;
  --rust-dark: #82361b;
  --copper: #c07f4f;
  --sand: #d8d2bd;
  --hairline: #b7ab8b;
  --muted: #5a5644;
  --muted-2: #7a7566;
  --pine-muted: #a8b09c;
  --pine-muted-2: #7d8a72;
  --sky-copper: #e7c9a8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: 40px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-dark); }

img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--pine); color: var(--linen);
  padding: 0.75rem 1.25rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Shared type helpers ----------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

.display-1 { font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1.04; margin: 0; }
.display-2 { font-size: clamp(1.7rem, 4.4vw, 2.125rem); line-height: 1.1; margin: 0; }

.lede { font-size: clamp(1rem, 2.2vw, 1.09rem); line-height: 1.6; color: var(--ink-soft); }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.btn--rust { background: var(--rust); color: var(--linen); }
.btn--rust:hover { background: var(--rust-dark); color: var(--linen); }
.btn--outline-ink { color: var(--ink); border-color: var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: var(--linen); }
.btn--outline-pine { color: var(--linen); border-color: var(--pine-muted-2); }
.btn--outline-pine:hover { background: var(--linen); color: var(--pine); }
.btn--pine { background: var(--pine); color: var(--linen); }
.btn--pine:hover { background: #0f150c; color: var(--linen); }

.link-arrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Header ------------------------------------------------------------------ */

.site-header { background: var(--pine); position: sticky; top: 0; z-index: 20; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding-block: 17px;
}
.site-header__name {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  color: var(--linen); letter-spacing: 0.01em;
}
.site-header__name:hover { color: var(--sky-copper); }

.site-nav ul {
  display: flex; gap: 26px; margin: 0; padding: 0; list-style: none;
}
.site-nav a {
  color: var(--linen); font-size: 13.5px; white-space: nowrap;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--sky-copper); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--copper); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 2.25rem; height: 2.25rem; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 1.6rem; height: 2px;
  background: var(--linen); position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--pine); padding: 0.5rem var(--gutter) 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1rem; }
  .site-nav a { font-size: 1rem; }
}

/* Sections ---------------------------------------------------------------- */

.section { padding-top: 74px; }
.section--first { padding-top: 60px; }
.section--tight { padding-top: 56px; }

/* Home hero (tall split) -------------------------------------------------- */

.hero-split {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  border-inline: 1px solid var(--hairline);
}
.hero-split__text {
  padding: 66px 54px 60px 46px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-split__text h1 { margin-top: 16px; }
.hero-split__text .lede { margin: 18px 0 0; max-width: 40ch; }
.hero-cta-row { display: flex; gap: 11px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 32px; padding-top: 15px; border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
}
.hero-split__media { position: relative; background: var(--pine); min-height: 540px; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__text { padding: 44px 24px 40px; }
  .hero-split__media { min-height: 340px; order: -1; }
}

/* Media frames ------------------------------------------------------------ */

.frame { position: relative; background: var(--pine); color: var(--sand); overflow: hidden; }
.frame--bordered { border: 1px solid var(--hairline); }
/* z-index lifts a real photo above the data-empty hatch overlay below, so a
   frame with an image shows the image and a frame without one shows the
   labeled placeholder. That is the entire drop-a-file-in mechanism. */
.frame > img,
.frame > picture { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.frame > img,
.frame > picture > img { object-fit: cover; width: 100%; height: 100%; }
.frame--43 { aspect-ratio: 4 / 3; }
.frame--32 { aspect-ratio: 3 / 2; }
.frame--219 { aspect-ratio: 21 / 9; }
.frame--h420 { height: 420px; }
.frame--h460 { height: 460px; }

/* placeholder look when an image file is not present yet */
.frame > img[data-placeholder] { display: none; }
.frame[data-empty]::after {
  content: attr(data-empty);
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 1rem;
  font-family: var(--font-mono); font-size: 11px; color: var(--sand);
  background: repeating-linear-gradient(135deg, #2b3626, #2b3626 12px, #232d1e 12px, #232d1e 24px);
}

/* "What we raise" cards ---------------------------------------------------- */

.card-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 28px; }
.raise-card h3 { font-size: 21px; margin: 15px 0 0; }
.raise-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.raise-card .link-arrow { margin-top: 11px; }

@media (max-width: 780px) {
  .card-3 { grid-template-columns: 1fr; gap: 26px; }
}

/* Dark feature band ------------------------------------------------------- */

.band-dark { background: var(--pine); margin-top: 74px; }
.band-dark__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
  padding-block: 64px;
}
.band-dark .eyebrow { color: var(--copper); }
.band-dark h2 { color: var(--linen); margin: 14px 0 0; font-size: clamp(1.7rem, 4vw, 2.125rem); }
.band-dark p { color: var(--sand); font-size: 16.5px; margin: 16px 0 0; }
.band-dark .link-arrow { color: var(--sky-copper); margin-top: 20px; }

@media (max-width: 820px) {
  .band-dark__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 44px; }
}

/* Section head with side link --------------------------------------------- */

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.section-head p { margin: 9px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* Pig listing cards ------------------------------------------------------- */

.pig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; }
.pig-grid--home { gap: 24px; }

.pig-card { border: 1px solid var(--hairline); background: rgba(255,255,255,0.42); position: relative; }
.pig-card__body { padding: 16px 17px 18px; }
.pig-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pig-card__id { font-family: var(--font-mono); font-size: 17px; font-weight: 500; color: var(--ink); }
.pig-card__status {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rust);
}
.pig-card__spec {
  display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 13px 0 0;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.pig-card__spec dt { letter-spacing: 0.06em; text-transform: uppercase; }
.pig-card__spec dd { margin: 0; color: var(--ink); }
.pig-card__spec dd.price { color: var(--rust); }
.pig-card__reserve {
  display: inline-block; margin-top: 15px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--rust); color: var(--rust); padding: 9px 15px;
  border-radius: 999px; cursor: pointer;
}
.pig-card__reserve:hover { background: var(--rust); color: var(--linen); }

/* home strip variant: simpler card */
.pig-card--simple .pig-card__meta {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7;
  color: var(--muted-2); margin-top: 7px;
}
.pig-card--simple .pig-card__price {
  font-family: var(--font-mono); font-size: 15px; color: var(--rust); margin-top: 11px;
}

/* sold treatment */
.pig-card--sold { background: rgba(255,255,255,0.28); }
.pig-card--sold .frame { filter: grayscale(1); opacity: 0.55; }
.pig-card--sold .pig-card__id,
.pig-card--sold .pig-card__status { color: var(--muted-2); }
.pig-card--sold .pig-card__spec dd { color: #8a8574; }
.pig-card__stamp {
  position: absolute; top: 13px; right: 13px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--muted-2); color: var(--linen);
  padding: 4px 9px;
}

@media (max-width: 780px) {
  .pig-grid, .pig-grid--home { grid-template-columns: 1fr; }
}
@media (min-width: 561px) and (max-width: 780px) {
  .pig-grid, .pig-grid--home { grid-template-columns: 1fr 1fr; }
}

/* Availability meta rule -------------------------------------------------- */

.avail-meta {
  display: flex; gap: 34px; flex-wrap: wrap; margin-top: 26px; padding-block: 16px;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.avail-meta .flag { color: var(--rust); }

/* Cat / atmosphere caption row -------------------------------------------- */

.caption-row {
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding-top: 12px;
}
.caption-row .mono-label { letter-spacing: 0.1em; color: var(--muted-2); }

/* Reserve CTA + inline form band (pigs page) ------------------------------ */

.reserve-band {
  background: var(--pine); padding: 44px 46px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: start;
}
.reserve-band h2 { color: var(--linen); font-size: clamp(1.6rem, 3.6vw, 1.875rem); margin: 0; }
.reserve-band p { color: var(--sand); font-size: 16px; margin: 14px 0 0; max-width: 44ch; }
.reserve-terms {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--pine-line);
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.75; color: var(--pine-muted);
}
.reserve-form-box { background: var(--linen); padding: 26px 28px; }

@media (max-width: 820px) {
  .reserve-band { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
}

/* Buyer guide ------------------------------------------------------------- */

.guide-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 24px; }
.guide-3 > div { border-top: 1px solid var(--hairline); padding-top: 15px; }
.guide-3 h3 { font-size: 19px; margin: 0; }
.guide-3 p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 780px) { .guide-3 { grid-template-columns: 1fr; } }

/* About topic grid -------------------------------------------------------- */

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.intro-grid p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.intro-grid p + p { margin-top: 14px; }

.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 52px 60px; }
.topic-grid h2 { font-size: 27px; line-height: 1.12; margin: 0; }
.topic-grid p { margin: 11px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

@media (max-width: 820px) {
  .intro-grid, .topic-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Inline CTA strip (about) ------------------------------------------------ */

.cta-strip {
  background: var(--pine); padding: 38px 42px; display: flex; align-items: center;
  justify-content: space-between; gap: 34px; flex-wrap: wrap;
}
.cta-strip h2 { color: var(--linen); font-size: clamp(1.5rem, 3.4vw, 1.625rem); margin: 0; line-height: 1.15; }
.cta-strip p { color: var(--sand); font-size: 15.5px; margin: 9px 0 0; max-width: 52ch; line-height: 1.55; }
.cta-strip__actions { display: flex; gap: 11px; flex-wrap: wrap; }

/* Journal ----------------------------------------------------------------- */

.journal-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 26px; }
.journal-preview { border-top: 2px solid var(--pine); padding-top: 16px; }
.journal-preview .mono-label { color: var(--muted-2); letter-spacing: 0.1em; }
.journal-preview h3 { font-size: 23px; line-height: 1.15; margin: 10px 0 0; }
.journal-preview p { margin: 9px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.journal-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hairline); }
.journal-row {
  display: grid; grid-template-columns: 0.5fr 1fr; gap: 34px; padding-block: 26px;
  border-bottom: 1px solid var(--hairline); align-items: start;
}
.journal-row__body .mono-label { color: var(--muted-2); letter-spacing: 0.1em; }
.journal-row__body h2 { font-size: 28px; line-height: 1.1; margin: 9px 0 0; }
.journal-row__body p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 66ch; }

@media (max-width: 720px) {
  .journal-preview-grid { grid-template-columns: 1fr; gap: 26px; }
  .journal-row { grid-template-columns: 1fr; gap: 16px; }
}

/* Journal post (article) -------------------------------------------------- */

.post { max-width: 44rem; margin-inline: auto; }
.post__body { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.post__body h2 { font-size: 26px; margin: 2em 0 0.6em; color: var(--ink); }
.post__body h3 { font-size: 20px; margin: 1.6em 0 0.5em; color: var(--ink); }
.post__body p { margin: 0 0 1.1em; }
.post__body img { margin: 1.5rem 0; border: 1px solid var(--hairline); }
.post__body blockquote {
  margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--copper);
  font-style: italic; color: var(--muted);
}

/* Forms ------------------------------------------------------------------- */

.field { display: block; }
.field > span {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 14px; padding: 11px 12px;
  border: 1px solid var(--hairline); background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; }
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-stack { display: grid; gap: 14px; margin-top: 20px; }
.form-status { font-family: var(--font-mono); font-size: 12px; margin: 12px 0 0; }
.visually-hidden { position: absolute; left: -9999px; }

@media (max-width: 480px) { .field-grid-2 { grid-template-columns: 1fr; } }

/* Contact page ------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-methods {
  display: grid; gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline); margin-top: 28px;
}
.contact-method { display: block; background: var(--linen); padding: 19px 22px; }
.contact-method__big { font-family: var(--font-mono); font-size: 21px; color: var(--rust); margin-top: 5px; }
.contact-method__mid { font-family: var(--font-mono); font-size: 19px; color: var(--rust); margin-top: 5px; }
.contact-method__addr { font-size: 16px; line-height: 1.55; color: var(--ink); margin-top: 6px; }
.contact-form-box { border: 1px solid var(--hairline); background: rgba(255,255,255,0.42); padding: 30px 32px; }

@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Footer ------------------------------------------------------------------ */

.site-footer { background: var(--pine); margin-top: 84px; }
.site-footer__inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 44px; padding-block: 46px;
}
.site-footer__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--linen); }
.site-footer__desc { margin-top: 9px; font-size: 14.5px; line-height: 1.6; color: var(--pine-muted); }
.footer-col__head {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--pine-muted-2);
}
.footer-links { display: grid; gap: 7px; margin-top: 11px; font-size: 14.5px; }
.footer-links a, .footer-contact a { color: var(--linen); }
.footer-links a:hover, .footer-contact a:hover { color: var(--sky-copper); }
.footer-contact { display: grid; gap: 7px; margin-top: 11px; font-family: var(--font-mono); font-size: 14px; }
.footer-where { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: var(--pine-muted-2); }
.footer-fine { border-top: 1px solid var(--pine-line); }
.footer-fine__inner {
  padding-block: 16px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--pine-muted-2);
}

@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
}

/* Utility ----------------------------------------------------------------- */

.spacer-lg { height: 84px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
