/* ==========================================================================
   Potter's EarthFusion — homepage stylesheet
   Written from scratch 2026-11-22. No framework, no reset library, no
   external font service, no imports. Pairs with index.php and nothing else.

   Type is set in system faces on purpose: a webfont service would be an
   external dependency and a render-blocking request. The serif stack leads
   with Iowan Old Style and Palatino, which carry a page at display sizes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surface — sampled from the brand artwork. #F4EFE7 is the logo's own
     background, so the page and the mark sit on exactly the same cream. */
  --ivory:        #F4EFE7;
  --ivory-raised: #FBF8F3;
  --ivory-sunk:   #EDE5D8;
  --ivory-edge:   #E6DCCB;

  /* Ink — #1E1A17 sampled from the logo lettering */
  --bark:         #1E1A17;
  --bark-soft:    #38322C;
  --muted:        #605C57;
  --muted-light:  #837D75;

  /* Accent — #A65D3F sampled from the LAB mark and its rule */
  --terracotta:       #A65D3F;
  --terracotta-deep:  #8A4B32;
  --terracotta-wash:  rgba(166, 93, 63, .08);

  /* On dark */
  --on-dark:      rgba(255, 255, 255, .90);
  --on-dark-mid:  rgba(255, 255, 255, .68);
  --on-dark-low:  rgba(255, 255, 255, .50);

  --rule:         rgba(36, 23, 9, .14);
  --rule-strong:  rgba(36, 23, 9, .26);

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;

  --gutter: clamp(20px, 5.2vw, 64px);
  --measure: 1280px;
  --pad-y: clamp(60px, 8vw, 118px);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--bark);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bark); color: #fff;
  padding: 12px 20px; z-index: 200;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { left: 10px; top: 10px; text-decoration: none; }

/* --------------------------------------------------------------------------
   3. Type scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.display {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 7vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.018em;
  font-weight: 400;
}
.display em { font-style: italic; color: var(--terracotta); }

.section-head {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.014em;
  margin-bottom: clamp(28px, 3.5vw, 46px);
}
.section-head em { font-style: italic; color: var(--terracotta); }

.kicker {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 20px;
  font-weight: 500;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.34rem);
  line-height: 1.66;
  color: var(--bark-soft);
  max-width: 60ch;
  margin: 0 0 26px;
}

.prose { font-size: 1rem; line-height: 1.78; color: var(--bark-soft); max-width: 64ch; margin: 0 0 18px; }
.prose:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--terracotta);
  background: var(--terracotta);
  color: #fff;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fff; text-decoration: none; }

.btn--ghost { background: transparent; color: var(--terracotta); }
.btn--ghost:hover { background: var(--terracotta); color: #fff; }

.btn--sm { padding: 11px 20px; font-size: .68rem; }

/* --------------------------------------------------------------------------
   5. Masthead + navigation
   Nav has no JavaScript. Below 820px the links become a centred wrapping row
   and the CTA goes full width, which reads better on a phone than a
   hamburger that hides a five-item menu behind a tap.
   -------------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 231, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding-block: 14px;
}

/* --- Brand lockup -----------------------------------------------------
   Rebuilt in type rather than as an image file, so it stays crisp at any
   size, remains selectable text for search engines and screen readers, and
   keeps the deliverable to two files. The mark is a heavy grotesque; the
   system sans at weight 800-900 is the closest match available without
   loading a webfont (which would be an external dependency).
   --------------------------------------------------------------------- */
.lockup { display: block; line-height: 1; color: var(--bark); }
.lockup:hover { text-decoration: none; }
.lockup__top {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin-bottom: .34em;
}
.lockup__main {
  display: block;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.44rem;
  letter-spacing: -.012em;
  text-transform: uppercase;
  line-height: .96;
}
.lockup__sub {
  display: flex;
  align-items: center;
  gap: .6em;
  margin-top: .42em;
}
.lockup__lab {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .6rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.lockup__rule { flex: 1; height: 1.5px; background: var(--terracotta); min-width: 28px; }

/* Larger lockup for the footer */
.lockup--lg .lockup__top  { font-size: .7rem; }
.lockup--lg .lockup__main { font-size: 2.1rem; }
.lockup--lg .lockup__lab  { font-size: .66rem; }

/* --- Tagline ---------------------------------------------------------
   The brand line, set the way the logo sets LAB: heavy, widely tracked,
   with a terracotta rule running out from it.
   --------------------------------------------------------------------- */
.tagline { display: flex; align-items: center; gap: 16px; margin: 0 0 30px; }
.tagline__text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(.68rem, 1.25vw, .82rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bark);
  white-space: nowrap;
}
.tagline__rule { flex: 1; height: 1.5px; background: var(--terracotta); min-width: 24px; }
@media (max-width: 460px) {
  .tagline__text { white-space: normal; letter-spacing: .14em; }
}

.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-left: auto; }
.nav a:not(.btn) {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav a:not(.btn):hover { color: var(--terracotta); text-decoration: none; }

@media (max-width: 819px) {
  .masthead__inner { flex-direction: column; align-items: stretch; gap: 12px; padding-block: 14px 16px; }
  .lockup { text-align: center; }
  .lockup__sub { justify-content: center; }
  .nav { margin-left: 0; justify-content: center; gap: 18px; }
  .nav .btn { width: 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
.band { padding-block: var(--pad-y); }
.band + .band { border-top: 1px solid var(--rule); }
.band--sunk { background: var(--ivory-sunk); }
.band--dark { background: var(--bark); color: var(--on-dark); }

.split { display: grid; gap: clamp(30px, 4.4vw, 68px); }
@media (min-width: 900px) {
  .split--5-7 { grid-template-columns: 5fr 7fr; }
  .split--1-1 { grid-template-columns: 1fr 1fr; }
  .split--7-5 { grid-template-columns: 7fr 5fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(56px, 9vw, 130px) var(--pad-y); }
/* The hero sits on .shell, so it must NOT set its own max-width — that would
   re-centre it and push the content out of alignment with the masthead.
   Line length is capped on the children instead. */
.hero__inner > * { max-width: 54rem; }
.hero .lede { margin-top: 26px; }

.hero__rule {
  width: 72px; height: 2px;
  background: var(--terracotta);
  margin: 0 0 26px;
  border: 0;
}

.status {
  display: grid;
  gap: 22px;
  margin: 36px 0 32px;
  padding-block: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 680px) { .status { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.status__k {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 7px;
}
.status__v { display: block; font-size: 1.02rem; color: var(--bark); line-height: 1.45; font-weight: 500; }

.disclose {
  border-left: 2px solid var(--rule-strong);
  padding-left: 20px;
  font-size: .98rem;
  line-height: 1.76;
  color: var(--bark-soft);
  max-width: 58ch;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Motto strip
   -------------------------------------------------------------------------- */
.motto {
  background: var(--ivory-edge);
  border-block: 1px solid var(--rule);
  padding-block: 18px;
}
.motto__inner { display: flex; align-items: baseline; gap: 10px 22px; flex-wrap: wrap; }
.motto__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--terracotta);
  white-space: nowrap;
}
.motto__text { font-family: var(--mono); font-size: .76rem; color: var(--muted); line-height: 1.75; }

/* --------------------------------------------------------------------------
   9. Principle grid
   -------------------------------------------------------------------------- */
.grid-rule {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .grid-rule { grid-template-columns: 1fr 1fr; }
  /* An odd card count leaves a hole in a two-column grid; the last one spans. */
  .grid-rule > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.cell { background: var(--ivory-raised); padding: 28px 28px 30px; }
.cell__n {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.cell h3 { font-family: var(--serif); font-size: 1.38rem; line-height: 1.25; margin-bottom: 10px; }
.cell p { font-size: .94rem; line-height: 1.7; color: var(--bark-soft); margin: 0; }

/* --------------------------------------------------------------------------
   10. Pull quote (the research question)
   -------------------------------------------------------------------------- */
.quote {
  background: var(--terracotta-wash);
  border-left: 3px solid var(--terracotta);
  padding: 26px 30px;
  margin: 28px 0;
}
.quote__label {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 12px;
  font-weight: 500;
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
  line-height: 1.6;
  color: var(--bark-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. Question list
   -------------------------------------------------------------------------- */
.qlist { border-top: 1px solid var(--rule); }
.qlist__item { padding-block: 22px; border-bottom: 1px solid var(--rule); }
.qlist h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.42; margin-bottom: 7px; }
.qlist p { font-size: .94rem; line-height: 1.7; color: var(--bark-soft); margin: 0; }

/* --------------------------------------------------------------------------
   12. Caveat panel
   -------------------------------------------------------------------------- */
.caveat { background: var(--bark); padding: clamp(26px, 3.4vw, 38px); margin-top: clamp(34px, 4vw, 48px); }
.caveat__label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #C98A63;
  margin: 0 0 14px;
  font-weight: 500;
}
.caveat p { font-size: .97rem; line-height: 1.82; color: var(--on-dark-low); margin: 0; max-width: 74ch; }

/* --------------------------------------------------------------------------
   13. Numbered process
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 32px 58px; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .07em; color: var(--terracotta);
}
.steps > li::after {
  content: ''; position: absolute; left: 12px; top: 24px; bottom: 4px; width: 1px; background: var(--rule);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { font-family: var(--serif); font-size: 1.34rem; line-height: 1.28; margin-bottom: 7px; }
.steps p { font-size: .95rem; line-height: 1.74; color: var(--bark-soft); margin: 0; max-width: 62ch; }

/* --------------------------------------------------------------------------
   14. Survey panel
   -------------------------------------------------------------------------- */
.panel { background: var(--ivory-raised); border-top: 3px solid var(--terracotta); padding: clamp(26px, 3vw, 34px); }
.panel__label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 500; margin: 0 0 10px;
}
.panel__sub { font-size: .95rem; color: var(--muted); line-height: 1.62; margin: 0 0 22px; }
.panel__fine { font-size: .84rem; color: var(--muted-light); line-height: 1.64; margin: 20px 0 0; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-foot { background: var(--bark); color: var(--on-dark-mid); padding-block: clamp(50px, 6.5vw, 84px) 30px; }
.site-foot__cols { display: grid; gap: 36px; }
@media (min-width: 820px) { .site-foot__cols { grid-template-columns: 1.5fr 1fr 1.3fr; } }

.site-foot .lockup__top  { color: rgba(255,255,255,.62); }
.site-foot .lockup__main { color: #fff; }
.site-foot .lockup__lab  { color: #C98A63; }
.site-foot .lockup__rule { background: rgba(201,138,99,.55); }
.site-foot .tagline__text { color: rgba(255,255,255,.82); }
.site-foot .tagline__rule { background: rgba(201,138,99,.55); }
.site-foot p { font-size: .91rem; line-height: 1.72; margin: 0 0 11px; color: var(--on-dark-low); }
.site-foot h4 {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: #C98A63; margin: 0 0 16px; font-weight: 500;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 10px; }
.site-foot a { color: var(--on-dark); font-size: .91rem; }
.site-foot a:hover { color: #fff; }
.site-foot__meta { font-size: .81rem; color: rgba(255,255,255,.4); line-height: 1.62; }
.site-foot__base { border-top: 1px solid rgba(255,255,255,.11); margin-top: 38px; padding-top: 22px; }
.site-foot__base p { font-size: .79rem; color: rgba(255,255,255,.36); margin: 0; }

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */
@media print {
  .masthead, .motto, .btn { display: none; }
  body { background: #fff; color: #000; }
  .band { padding-block: 18px; }
}
