/* ============================================================
   Found & Co — public site, "Site 1 — Editorial"

   One stylesheet for every page. Sections, in order:
   Tokens (colours, fonts) · Base · Layout helpers · Type · Buttons ·
   Announcement bar · Header and navigation · Page heading · Numbered items ·
   Photos · Home page · Subscribe form · Forms (text fields, dropdowns) ·
   Visit us + map · Call-to-action band · Sneak Peek and FAQs · Contact ·
   Footer · Sell Your Clothes · Text pages · What Is Thrifting?
   To change the green, edit --green below.
   ============================================================ */

/* ============================================================
   Tokens (colours, fonts, page gutter)
   ============================================================ */
:root {
  --green: #3D7C65;      /* from the client's logo */
  --green-dark: #326A56;
  --green-alt: #275544;
  --paper: #FBF9F4;
  --paper-alt: #F2EEE3;
  --ink: #1B1F1D;
  --muted: #4D5650;
  --rule: #D8D2C4;
  --error: #A3342B;
  --gutter: 20px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mark: 'Comfortaa', system-ui, sans-serif;
}
@media (min-width: 700px) { :root { --gutter: clamp(32px, 6.67vw, 96px); } }

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* The page is a column so the footer sits at the bottom of short pages. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.03; margin: 0; color: var(--ink); overflow-wrap: break-word; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-green :focus-visible { outline-color: #fff; }
/* Anything with the "hidden" attribute stays hidden, whatever display it is given below. */
[hidden] { display: none !important; }
/* Small line icons: never squashed inside a flex row. */
.svg-icon { flex: none; }
/* Wrapper that adds no box of its own (used by the confirm / unsubscribe pages). */
.state { display: contents; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.muted-text { color: var(--muted); }
.small { font-size: 14px; }
/* reCAPTCHA badge is hidden; the notice text is shown next to the forms instead (Google's rule). */
.grecaptcha-badge { visibility: hidden; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.recaptcha-note { margin: 8px 0 0; }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(48px, 9vw, 88px); }
.sec--alt { background: var(--paper-alt); }
.stack { display: flex; flex-direction: column; gap: 28px; }
.stack--tight { gap: 20px; }
.split { display: grid; gap: 72px; align-items: center; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .split, .split--even { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ============================================================
   Type
   ============================================================ */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.eyebrow--white { color: #fff; }
.display { font-family: var(--display); font-weight: 400; line-height: 1.03; letter-spacing: -0.025em; }
h1.display { font-size: clamp(46px, 6.67vw, 96px); }
.display--xl { font-size: clamp(54px, 7.2vw, 104px) !important; }
.display em { font-style: italic; font-weight: 300; color: var(--green); }
.display.h2-size, .h2-size { font-size: clamp(32px, 3.34vw, 48px); }
h3, .h3-size { font-family: var(--display); font-size: clamp(21px, 1.74vw, 25px); font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.lead { font-size: clamp(18px, 1.46vw, 21px); max-width: 680px; color: var(--muted); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 2px;
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover:not(:disabled) { background: var(--paper-alt); border-color: var(--paper-alt); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 480px) { .btn-row .btn { white-space: normal; text-align: center; } }

/* ============================================================
   Announcement bar
   ============================================================ */
.announce {
  background: var(--green); color: #fff; text-align: center;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  padding: 9px var(--gutter);
}

/* ============================================================
   Page transitions (browsers with cross-document view transitions; others just navigate)
   The whole page cross-fades. The header is identical on every page, so it looks still.
   No view-transition-name on the header on purpose: when a link is tapped while scrolled down,
   a named header would slide in from above.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
}

/* ============================================================
   Header and navigation
   ============================================================ */
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
@media (min-width: 1081px) { .header-row { padding-block: 20px; } }

.site-logo { display: flex; align-items: center; min-height: 44px; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.site-logo-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.site-logo-mark svg { width: 19px; height: 22px; }
.site-logo-word { display: block; height: 19px; width: auto; flex: none; }
@media (min-width: 700px) {
  .site-logo-mark { width: 42px; height: 42px; border-radius: 9px; }
  .site-logo-mark svg { width: 21px; height: 25px; }
  .site-logo-word { height: 23px; }
}
/* Header logo: the client's white wordmark on a green tile (like their logo artwork). */
/* gap: 0: the <picture> wrapper is display: contents, so its hidden <source> children would otherwise get the
   12px .site-logo gap and push the wordmark right (more green on the left than the right). */
.site-logo--tile { background: var(--green); border-radius: 10px; padding: 11px 16px; gap: 0; }
.site-logo--tile .site-logo-word { height: 18px; }
@media (min-width: 700px) { .site-logo--tile { padding: 12px 20px; } .site-logo--tile .site-logo-word { height: 21px; } }
.site-logo--tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.site-logo--footer { color: #fff; }
.site-logo--footer .site-logo-mark { width: 56px; height: 56px; border-radius: 12px; }
.site-logo--footer .site-logo-mark svg { width: 28px; height: 34px; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 30px); }
.main-nav a {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 11px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: rgba(27, 31, 29, .35); }
.main-nav a.active { border-bottom-color: var(--green); }
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
/* Phone-menu extras (button, address): desktop never shows them. */
.menu-extra { display: none; }
@media (max-width: 1080px) {
  .menu-btn { display: flex; }
  /* Open menu = a full panel from the bottom of the header to the bottom of the screen.
     js/layout.js sets --menu-h and locks page scroll (html.menu-open). */
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    height: var(--menu-h, auto); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 0; counter-reset: nav;
    padding: 8px var(--gutter) 32px; background: var(--paper);
  }
  .main-nav.open { display: flex; animation: menu-in .18s ease-out; }
  .main-nav > a {
    counter-increment: nav; display: flex; align-items: baseline; gap: 16px;
    min-height: 60px; padding: 14px 0; border-bottom: 1px solid var(--rule);
    font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1.15; letter-spacing: -0.015em;
  }
  .main-nav > a::before {
    content: counter(nav, decimal-leading-zero); min-width: 28px;
    font: italic 300 15px/1 var(--display); letter-spacing: 0; color: var(--muted);
  }
  .main-nav > a:hover { border-bottom-color: var(--rule); }
  .main-nav > a.active { color: var(--green); border-bottom-color: var(--rule); }
  .main-nav > a.active::before { color: var(--green); }
  .main-nav > a:focus-visible { outline-offset: -2px; }
  .menu-extra { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
  .menu-extra .menu-cta { width: 100%; color: #fff; }
  .menu-extra .menu-cta:hover { color: #fff; }
  .menu-meta { display: flex; flex-direction: column; font-size: 15px; color: var(--muted); }
  .menu-meta p { display: flex; align-items: center; min-height: 44px; }
  .menu-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: 3px; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}
@keyframes menu-in { from { transform: translateY(-8px); } to { transform: none; } }

/* ============================================================
   Page heading (inner pages)
   ============================================================ */
.page-hero { padding: 40px 0 36px; border-bottom: 1px solid var(--ink); }
.page-hero-inner { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 700px) {
  .page-hero { padding: clamp(48px, 5vw, 72px) 0 clamp(44px, 4.4vw, 64px); }
  .page-hero-inner { gap: 24px; }
}

/* ============================================================
   Numbered items
   ============================================================ */
.num { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.2; color: var(--green); min-width: 34px; flex: none; }
.num-grid { display: grid; gap: 16px 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.num-item { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; border-top: 1px solid var(--ink); padding-top: 20px; }
.num-item p { color: var(--muted); }
@media (max-width: 900px) {
  .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .num-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Photos
   ============================================================ */
.photo { width: 100%; object-fit: cover; background: var(--paper-alt); }
.photo--hero { height: clamp(340px, 40vw, 580px); object-position: 50% 40%; }
.photo--side { height: clamp(260px, 32vw, 460px); object-position: 50% 45%; }
.photo-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.photo-figure figcaption { font-size: 13px; font-style: italic; color: var(--muted); }

/* ============================================================
   Home page
   ============================================================ */
.home-hero { padding: 36px 0 40px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.home-hero-copy { display: flex; flex-direction: column; gap: 20px; }
.home-hero-copy .lead { max-width: 520px; }
@media (min-width: 700px) { .home-hero { padding: clamp(40px, 4.4vw, 64px) 0 clamp(48px, 5vw, 72px); } .home-hero-copy { gap: 28px; } }
@media (max-width: 900px) { .home-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.fact { padding: 22px 28px; border-left: 1px solid var(--ink); display: flex; flex-direction: column; gap: 2px; }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact-k { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.fact-v { font-family: var(--display); font-size: 24px; line-height: 1.25; }
@media (max-width: 800px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact:first-child { padding: 14px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .fact:first-child { border-top: 0; }
}

.mini-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-steps li { display: flex; gap: 14px; align-items: center; }
.mini-steps li span:last-child { font-weight: 600; font-size: 18px; }

/* ============================================================
   Subscribe form (home page)
   ============================================================ */
.subscribe { background: var(--green); color: #fff; padding-block: clamp(44px, 6.5vw, 80px); }
.subscribe h2 { color: #fff; }
.subscribe-lead { font-size: 18px; max-width: 560px; }
.subscribe-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; }
.subscribe-row { display: flex; gap: 12px; }
.subscribe-row input { flex: 1; min-width: 0; }
.subscribe .consent { color: #fff; }
.subscribe .consent input { accent-color: var(--ink); }
.subscribe .consent a, .subscribe .recaptcha-note a { color: #fff; }
.subscribe .muted { color: rgba(255, 255, 255, .88); }
.subscribe .form-error { background: #fff; padding: 8px 12px; border-left: 3px solid var(--error); }
.subscribe-done { max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.done-title { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(28px, 3vw, 34px); line-height: 1.1; }
@media (max-width: 600px) { .subscribe-row { flex-direction: column; } }

/* ============================================================
   Forms: text fields
   ============================================================ */
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 2px;
  font: 400 16px/1.4 var(--body);
}
textarea { resize: vertical; min-height: 120px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.on-green input:focus-visible { outline-color: #fff; }

/* ============================================================
   Forms: dropdowns
   ============================================================ */
select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%231B1F1D' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
select:hover:not(:disabled) { border-color: var(--green); }
select:disabled { opacity: .6; cursor: not-allowed; }

@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select::picker-icon { display: none; }
  select { display: flex; align-items: center; justify-content: flex-start; text-align: left; }
  select selectedcontent { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
  ::picker(select) {
    background: #fff; border: 1px solid var(--ink); border-radius: 0;
    padding: 4px; margin-top: 4px;
    box-shadow: 0 12px 32px rgba(27, 31, 29, .14);
    max-height: min(440px, 70vh); overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
    width: anchor-size(width); min-width: min(220px, calc(100vw - 16px)); max-width: calc(100vw - 16px); box-sizing: border-box;
    font: inherit; font-family: var(--body);
  }
  select option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; min-height: 44px; border-radius: 0;
    color: var(--ink); cursor: pointer; outline: none;
    white-space: normal; overflow-wrap: anywhere;
    font: 400 16px/1.4 var(--body);
  }
  select option:hover, select option:focus-visible { background: var(--paper-alt); }
  select option:checked { background: rgba(61, 124, 101, .12); color: var(--green-alt); font-weight: 600; }
  select option::checkmark { order: 1; margin-left: auto; color: var(--green); }
  select option[value=""] { color: var(--muted); }
  select option:disabled { opacity: .5; cursor: default; }
}
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--green); }
.consent a { color: var(--green); }
.field-error, .form-error { color: var(--error); font-size: 13px; font-weight: 500; }
.form-error { font-size: 14px; }

/* ============================================================
   Visit us + map
   ============================================================ */
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: stretch; }
.visit-info { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.visit-info .btn-row { margin-top: 4px; }
.address { font-size: 18px; }
.hours { margin: 0; display: flex; flex-direction: column; width: 100%; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.hours dd { margin: 0; font-weight: 600; text-align: right; }
.map { border: 1px solid var(--rule); min-height: 460px; background: var(--paper-alt); }
.map iframe { width: 100%; height: 100%; min-height: inherit; border: 0; display: block; }
.map--tall { min-height: 720px; }
@media (max-width: 900px) {
  .visit { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .map { min-height: 280px; }
  .map--tall { min-height: 320px; }
}

/* ============================================================
   Green call-to-action band
   ============================================================ */
.cta-band { background: var(--green); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(44px, 5vw, 72px); }
.cta-band-copy { display: flex; flex-direction: column; gap: 12px; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 3.34vw, 48px); letter-spacing: -0.025em; }
.cta-band p { font-size: 18px; }
@media (max-width: 800px) { .cta-band-inner { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   Sneak Peek gallery and FAQs pages
   ============================================================ */
.peek-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.peek-item { margin: 0; }
.peek-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-alt); border: 1px solid var(--rule); }
.peek-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink); }
.peek-more p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .peek-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .peek-grid { grid-template-columns: minmax(0, 1fr); } .peek-more .btn { width: 100%; } }

.faq-list { max-width: 880px; }
.faq-list details { border-top: 1px solid var(--ink); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 48px; padding: 12px 0;
  font-family: var(--display); font-size: clamp(20px, 1.67vw, 24px); font-weight: 500; line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { color: var(--green); }
.faq-list details[open] .pm-v { display: none; }
.faq-list details p { padding: 0 0 20px; max-width: 680px; color: var(--muted); }
.faq-list details p a { color: var(--green); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: stretch; }
.contact-cards { display: flex; flex-direction: column; gap: 24px; }
.contact-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; border-top: 1px solid var(--ink); padding-top: 20px; }
.contact-card .icon { color: var(--green); display: flex; }
.link-green { color: var(--green); display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #fff; padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; width: fit-content; max-width: 320px; text-align: center; }
.footer-tag { color: #C9CFCB; max-width: 320px; }
.site-footer nav, .footer-contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer a, .footer-contact span { color: #fff; text-decoration: none; font-size: 15px; padding: 11px 0; display: inline-block; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact a, .footer-contact .footer-loc { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; min-height: 44px; }
.footer-contact .footer-icon { padding: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.footer-icon svg { width: 16px; height: 16px; display: block; }
.footer-contact a:hover { text-decoration: none; }
.footer-contact a:hover .footer-text { text-decoration: underline; text-underline-offset: 4px; }
.footer-loc { color: #fff; font-size: 15px; }
.footer-small { margin-top: 32px; padding-top: 20px; border-top: 1px solid #3A403C; font-size: 13px; color: #C9CFCB; }
.footer-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-credit a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { text-decoration-thickness: 2px; }
@media (min-width: 700px) { .site-footer { padding: 64px 0 28px; } .footer-small { margin-top: 48px; } }
@media (max-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .footer-brand { margin-left: auto; margin-right: auto; } }

/* ============================================================
   Sell Your Clothes page (application form)
   ============================================================ */
.apply { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; align-items: start; }
.apply-intro { display: flex; flex-direction: column; gap: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps li div { display: flex; flex-direction: column; gap: 4px; }
.steps p { color: var(--muted); }
.apply-form { background: #fff; border: 1px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
@media (min-width: 700px) { .apply-form { padding: clamp(24px, 2.8vw, 40px); } }
.apply-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.apply-form legend {
  display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 0 0 10px; margin-bottom: 20px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--display); font-size: clamp(21px, 1.74vw, 25px); font-weight: 500; line-height: 1.2; color: var(--ink);
}
.apply-form legend .muted { font-family: var(--body); font-size: 15px; font-weight: 400; }
.legend-n { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 22px; color: var(--green); min-width: 34px; flex: none; }
.apply-form label:not(.consent):not(.dropzone):not(.file-row):not(.type-opt), .label-text {
  display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; }
.type-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.type-opt {
  display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; row-gap: 2px; align-items: start;
  padding: 18px; cursor: pointer; border: 2px solid var(--rule); background: #fff;
}
.type-opt input { grid-row: 1 / span 2; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green); }
.type-opt strong { font-size: 17px; font-weight: 600; }
.type-opt span { font-size: 14px; color: var(--muted); }
.type-opt.on { border-color: var(--green); }
.type-opt:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.upload-block { display: flex; flex-direction: column; gap: 8px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding: 28px 20px; border: 1px solid var(--ink); background: var(--paper);
  color: var(--green); cursor: pointer; transition: background .15s;
}
.dropzone:hover, .dropzone.over { background: var(--paper-alt); }
.dropzone:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.dz-title { font-weight: 600; color: var(--ink); font-size: 15px; }
.dropzone .small { color: var(--muted); font-size: 15px; font-weight: 400; }
.thumbs { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.thumbs li { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--rule); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .thumb-busy { display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; background: #fff; }
.thumbs button {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: transparent;
  color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: flex-start; justify-content: flex-end; padding: 6px 8px;
  text-shadow: 0 0 4px rgba(0, 0, 0, .8);
}
/* Individual items: one card each */
.items-intro { margin: -8px 0 0; }
.items-list { display: flex; flex-direction: column; gap: 16px; }
.item-card { border: 1px solid var(--ink); background: var(--paper); padding: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 700px) { .item-card { padding: 20px; } }
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.item-title { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 500; }
.item-grid { display: grid; grid-template-columns: 3fr 2fr 2fr; gap: 16px; }
.item-photo { display: flex; flex-direction: column; gap: 8px; }
.item-photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.item-photo-btn { min-height: 44px; }
.item-preview { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.item-preview img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--rule); flex: none; }
.item-file-name { font-size: 13px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
#add-item { align-self: flex-start; min-height: 44px; }
.file-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--ink); cursor: pointer; color: var(--green);
}
.file-row:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.file-row-text { flex: 1; min-width: 0; font-size: 14px; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.apply-submit { display: flex; flex-direction: column; gap: 16px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.submit-row .small { max-width: 340px; font-size: 13px; color: var(--muted); }
.submit-row .small a { color: var(--green); }

@media (max-width: 960px) { .apply { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 600px) {
  .grid-2, .grid-3, .type-switch { grid-template-columns: minmax(0, 1fr); }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .item-grid > label:first-child { grid-column: 1 / -1; }
  .submit-row .btn { width: 100%; }
  .file-row { flex-wrap: wrap; }
}

/* ============================================================
   Text pages: privacy, 404, thank-you, confirm / unsubscribe
   ============================================================ */
.prose { max-width: 760px; display: grid; gap: 20px; justify-items: start; }
.prose h1.display { font-size: clamp(40px, 5.5vw, 72px); }
.prose h2 { margin-top: 16px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose a { color: var(--green); }
.prose .btn { color: #fff; }
.prose .note { background: #fff; border: 1px solid var(--rule); padding: 12px 16px; font-size: 14px; color: var(--muted); }

/* ============================================================
   What Is Thrifting? page (layout from "Site 2 — The Label", in the Editorial theme)
   ============================================================ */
.thrift-intro-sec { padding: 32px 0 0; }
.thrift-intro {
  max-width: 940px; margin: 0 auto; position: relative;
  background: #fff; border: 1px solid var(--ink);
  padding: 36px 24px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.thrift-intro h1.display { font-size: clamp(40px, 5.8vw, 80px); }
.thrift-intro .lead { max-width: 620px; }
@media (min-width: 700px) { .thrift-intro-sec { padding-top: 64px; } .thrift-intro { padding: 56px 72px; } }

.thrift-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.thrift-split--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.thrift-photo { width: 100%; height: clamp(300px, 34vw, 480px); object-fit: cover; object-position: 50% 45%; border: 1px solid var(--ink); background: var(--paper-alt); }
/* Portrait photo: keeps its own shape (no layout shift), crops toward the swing tag and shoes. */
.thrift-photo--tall { height: auto; aspect-ratio: 4 / 5; object-position: 50% 30%; }
@media (max-width: 900px) {
  .thrift-split, .thrift-split--flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .thrift-photo { height: 300px; }
  .thrift-photo--tall { height: auto; }
}

.thrift-cards { display: grid; gap: 16px; }
.thrift-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thrift-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 901px) { .thrift-cards { gap: 28px; } }
@media (max-width: 700px) { .thrift-cards--2, .thrift-cards--3 { grid-template-columns: minmax(0, 1fr); } }
.thrift-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid var(--ink); padding: 30px 28px;
}
.thrift-card p { color: var(--muted); }
.thrift-badge {
  width: 40px; height: 40px; border: 1px solid var(--green); color: var(--green);
  display: flex; align-items: center; justify-content: center; flex: none;
  font: 500 20px/1 var(--display);
}

.thrift-cta-sec { padding: 0 0 clamp(48px, 9vw, 88px); }
.thrift-cta {
  position: relative; background: var(--green-alt); color: #fff;
  padding: 40px 28px; display: flex; align-items: flex-start; flex-direction: column; justify-content: space-between; gap: 28px;
}
.thrift-cta-copy { display: flex; flex-direction: column; gap: 12px; }
.thrift-cta h2 { color: #fff; }
.thrift-cta p { font-size: 18px; }
.thrift-cta .btn { position: relative; z-index: 1; }
@media (min-width: 801px) { .thrift-cta { flex-direction: row; align-items: center; padding: 72px 64px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .main-nav.open { animation: none; }
}

/* ============================================================
   Images, cookie banner
   ============================================================ */
picture { display: contents; }
/* With display: contents the <source> children would become grid/flex items (taking a cell or a gap); hide them. */
picture > source { display: none; }

.cookie-banner {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  background: var(--paper); color: var(--ink); border-top: 1px solid var(--ink);
  padding: 18px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 8px;
  animation: cookie-in .25s ease-out;
}
.cookie-title { margin: 0; font: 600 13px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.cookie-text { margin: 0; font-size: 15px; line-height: 1.5; }
.cookie-text a { color: var(--green); text-underline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.cookie-actions .btn { min-height: 48px; padding: 0 18px; }
@media (min-width: 700px) {
  .cookie-banner { left: 24px; right: auto; bottom: 24px; max-width: 420px; border: 1px solid var(--ink); padding: 20px 22px; }
}
/* Slide only, no fade: a fade can leave the banner half see-through if the animation is paused. */
@keyframes cookie-in { from { transform: translateY(16px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

.link-button {
  background: none; border: 0; padding: 11px 0; margin: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: 15px; color: inherit; display: inline-block;
}
.site-footer .link-button { color: #fff; }
.site-footer .link-button:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Newsletter popup (js/popup.js) */
html.popup-open, html.popup-open body { overflow: hidden; }
.nl-pop {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(27, 31, 29, .3);
  opacity: 0; transition: opacity .2s ease;
}
.nl-pop.is-in { opacity: 1; }
.nl-pop-panel {
  position: relative; width: 100%;
  max-height: 70vh; max-height: 70dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink);
  border-radius: 16px 16px 0 0; border-top: 1px solid var(--ink);
  transform: translateY(100%); transition: transform .25s ease-out;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nl-pop.is-in .nl-pop-panel { transform: none; }
.nl-pop-panel:focus { outline: none; }
.nl-pop-img { display: block; width: 100%; height: auto; aspect-ratio: 2.4 / 1; object-fit: cover; object-position: center 45%; }
.nl-pop-body { display: grid; gap: 14px; padding: 20px var(--gutter) 22px; }
.nl-pop-title { margin: 0; font-size: 26px; line-height: 1.15; }
.nl-pop-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.nl-pop-form { display: grid; gap: 14px; }
.nl-pop-form input[type=email] { min-height: 48px; font-size: 16px; }
.nl-pop-form .btn, .nl-pop-done .btn { width: 100%; }
.nl-pop-done { display: grid; gap: 10px; }
.nl-pop-done p { margin: 0; }
.nl-pop-done .done-title { font: 500 24px/1.2 var(--display); }
.nl-pop-close {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; cursor: pointer;
}
.nl-pop-close:hover { background: #fff; }
.nl-pop-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (min-width: 701px) {
  .nl-pop { align-items: center; padding: 24px; background: rgba(27, 31, 29, .45); }
  .nl-pop-panel {
    max-width: 480px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
    border: 1px solid var(--rule); border-radius: 4px; transform: none; padding-bottom: 0;
  }
  .nl-pop-img { aspect-ratio: 16 / 9; border-radius: 2px; }
  .nl-pop-panel > picture + .nl-pop-body { padding: 28px 32px 32px; }
  .nl-pop-title { font-size: 30px; }
  .nl-pop-close { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-pop, .nl-pop-panel { transition: none; }
}
