/* ==========================================================================
   Dankie sê Mark — the public page.
   Same Free State palette as the supplier portal, but this page has a
   different job: the portal is a tool, this is a shop window. So bigger type,
   photographs given room, and nothing on screen that a visitor cannot act on.
   ========================================================================== */

/* The two typefaces, served from this site rather than from Google.
   A visitor on farm mobile data pays for every extra host a page has to reach,
   and these six files come to 136 KB in total — less than one of the photos.
   `swap` means the words are readable immediately in a fallback face and
   simply re-render once the real one lands, instead of a blank page. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-500-italic.woff2") format("woff2");
}

:root {
  --cream: #faf6ef;
  --paper: #ffffff;
  --sand: #f0e8db;
  --line: #e2d7c5;
  --ink: #2b2620;
  --ink-soft: #6b6155;
  --ink-faint: #9a8f80;
  --green: #3f5d45;
  --green-dark: #2f4634;
  --green-light: #e8efe8;
  --terra: #c1653f;
  --terra-dark: #a3512f;
  --terra-light: #fbeee7;
  --gold: #d9a441;
  --gold-light: #fdf4e2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(43,38,32,.06), 0 10px 30px rgba(43,38,32,.07);
  --shadow-lg: 0 2px 6px rgba(43,38,32,.08), 0 24px 60px rgba(43,38,32,.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--terra-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

/* ------------------------------------------------------------------ header */

.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,239,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex; align-items: center; gap: 1rem;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.logo b {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  letter-spacing: -.015em; white-space: nowrap;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500;
  padding: .5rem .7rem; border-radius: 8px;
}
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav .cta {
  background: var(--green); color: #fff; padding: .55rem 1.05rem;
}
.nav .cta:hover { background: var(--green-dark); color: #fff; }

/* The suppliers' way in. Outlined rather than solid so it stays clearly
   secondary to the visitor's call to action, but it is in the header on every
   screen size: thirty-six people use this door and should not have to scroll
   to the bottom of a shop window to find it. */
.nav .login {
  border: 1px solid var(--line); background: var(--paper);
  padding: .5rem .9rem; color: var(--ink-soft); white-space: nowrap;
}
.nav .login:hover { background: var(--sand); border-color: var(--ink-faint); color: var(--ink); }

@media (max-width: 720px) {
  .nav a.hide-sm { display: none; }
  .logo b { font-size: 1.12rem; }
  .top-in { gap: .5rem; }
  .nav { gap: .3rem; }
  .nav .cta, .nav .login { padding: .5rem .8rem; font-size: .88rem; }
}
/* Two labels for the same door. On a narrow phone it shortens to "Log in"
   rather than to "Supplier", which on its own reads like a list of stalls —
   the opposite of what the link does. */
.nav .login .narrow { display: none; }
@media (max-width: 430px) {
  .nav .login .wide { display: none; }
  .nav .login .narrow { display: inline; }
  .logo b { font-size: 1rem; }
  .nav .cta, .nav .login { padding: .45rem .72rem; font-size: .84rem; }
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90rem 40rem at 15% -10%, var(--gold-light) 0%, transparent 60%),
    radial-gradient(70rem 36rem at 95% 0%, var(--terra-light) 0%, transparent 55%),
    var(--cream);
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--terra-dark); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .42rem 1rem; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 8.5vw, 5rem);
  letter-spacing: -.025em;
  margin: 0 auto .35rem;
  /* Narrow enough that the line breaks after "to" on a wide screen rather than
     dropping "you" onto a line of its own, which reads like a mistake. */
  max-width: 14ch;
}
.hero .say { color: var(--terra); font-style: italic; }
/* The name is a name: one word of it in terracotta, but upright. Italic on a
   single syllable inside a word reads as a rendering fault, not a flourish. */
.hero .se { color: var(--terra); }
.hero-sub {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--ink-soft); max-width: 46ch; margin: 1rem auto 0;
}
.when {
  font-family: var(--serif); font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  color: var(--green-dark); margin-top: 1.6rem; font-weight: 600;
}
.where { color: var(--ink-soft); font-size: .98rem; margin-top: .3rem; }

.btns { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .97rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sand); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }

.counts {
  display: flex; gap: clamp(1.5rem, 6vw, 4rem); justify-content: center;
  flex-wrap: wrap; margin-top: clamp(2.5rem, 6vw, 3.5rem);
}
.count b {
  display: block; font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--green-dark); font-weight: 600; line-height: 1;
}
.count span {
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}

/* ---------------------------------------------------------------- sections */

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 58ch; margin-bottom: clamp(1.8rem, 4vw, 2.75rem); }
.sec-head.mid { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.85rem, 5vw, 2.6rem); letter-spacing: -.02em; }
.sec-head p { color: var(--ink-soft); margin: .7rem 0 0; font-size: 1.03rem; }

/* ------------------------------------------------------------------ stalls */

.stalls {
  display: grid; gap: clamp(1rem, 2.2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.stall {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: left; padding: 0; cursor: pointer;
  font: inherit; color: inherit; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
  display: flex; flex-direction: column;
}
.stall:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stall-pic { aspect-ratio: 4 / 3; background: var(--sand); position: relative; overflow: hidden; }
.stall-pic img { width: 100%; height: 100%; object-fit: cover; }
.stall-pic .more {
  position: absolute; right: .6rem; bottom: .6rem;
  background: rgba(43,38,32,.72); color: #fff; font-size: .74rem; font-weight: 600;
  padding: .22rem .55rem; border-radius: 999px; backdrop-filter: blur(4px);
}
/* No photograph yet: a monogram, rather than a broken frame or a grey box. */
.stall-pic.empty {
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--green-light), var(--sand));
}
.stall-pic.empty span {
  font-family: var(--serif); font-size: 2.6rem; color: var(--green);
  opacity: .5; font-weight: 600;
}
.stall-body { padding: .95rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.stall-body h3 { font-size: 1.1rem; letter-spacing: -.01em; }
.stall-meta { font-size: .86rem; color: var(--ink-faint); margin-top: auto; }

/* ---------------------------------------------------------------- products */

.tools { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.tools input[type="search"], .tools select {
  font: inherit; font-size: .95rem; padding: .7rem .95rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
  min-width: 0;
}
.tools input[type="search"] { flex: 1 1 260px; }
.tools select { flex: 0 1 230px; }
.tools input:focus, .tools select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.found { color: var(--ink-faint); font-size: .88rem; margin-left: auto; }

.items { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1rem;
}
.item h4 { margin: 0; font-size: .99rem; font-weight: 600; letter-spacing: -.005em; }
.item .by { font-size: .83rem; color: var(--terra-dark); margin-top: .15rem; font-weight: 500; }
.item .sizes { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .25rem; }
.chip {
  font-size: .73rem; font-weight: 600; color: var(--ink-soft);
  background: var(--sand); border-radius: 5px; padding: .13rem .42rem;
}
.empty-note {
  text-align: center; color: var(--ink-faint); padding: 3rem 1rem;
  font-size: 1rem;
}
.more-wrap { text-align: center; margin-top: 2rem; }

/* ------------------------------------------------------------------- visit */

.visit { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--paper); padding: 1.1rem 1.25rem; }
.fact dt {
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; margin: 0 0 .25rem;
}
.fact dd { margin: 0; font-size: 1.02rem; }
.fact dd.big { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }

/* --------------------------------------------------------------- lightbox */

.sheet {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(30,26,22,.76); backdrop-filter: blur(3px);
  padding: clamp(.5rem, 3vw, 2.5rem); overflow-y: auto;
}
.sheet.open { display: block; }
.sheet-card {
  background: var(--cream); border-radius: var(--radius); max-width: 900px;
  margin: 0 auto; box-shadow: var(--shadow-lg); overflow: hidden;
}
.sheet-head {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem clamp(1.1rem, 3vw, 1.9rem);
  border-bottom: 1px solid var(--line); background: var(--paper);
  position: sticky; top: 0;
}
.sheet-head h3 { font-size: clamp(1.25rem, 4vw, 1.7rem); letter-spacing: -.02em; }
.sheet-head p { margin: .2rem 0 0; color: var(--ink-faint); font-size: .88rem; }
.x {
  margin-left: auto; flex: 0 0 auto; cursor: pointer; font: inherit; font-size: 1.1rem;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft); line-height: 1;
}
.x:hover { background: var(--sand); color: var(--ink); }
.sheet-body { padding: clamp(1.1rem, 3vw, 1.9rem); }
.shots { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 1.6rem; }
.shots a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.shots img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sheet-body h4 {
  font-family: var(--serif); font-size: 1.05rem; margin: 0 0 .7rem; font-weight: 600;
}
.plist { columns: 2; column-gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 560px) { .plist { columns: 1; } }
.plist li {
  padding: .4rem 0; border-bottom: 1px solid var(--line);
  font-size: .95rem; break-inside: avoid;
}
.plist li small { color: var(--ink-faint); display: block; font-size: .8rem; }

/* ------------------------------------------------------------------ footer */

footer {
  background: var(--green-dark); color: #e9eee9;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
footer h3 { font-size: 1.3rem; color: #fff; }
footer a { color: #cfe0d2; }
.foot-in { display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-in > div { flex: 1 1 240px; }
.foot-note {
  border-top: 1px solid rgba(255,255,255,.16); margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  font-size: .85rem; color: #b7c7ba;
}
.foot-note a { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stall, .btn { transition: none; }
}
