/* The Tidy Thimble — styles
   Colors live here; change them once and the whole page follows. */

/* Fonts are self-hosted from /fonts (SIL Open Font License, see the LICENSE files there). */
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/young-serif-400.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/newsreader.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/fonts/newsreader-italic.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/jost.woff2) format('woff2'); }

:root {
  --ground: #F6F0E4;
  --panel: #EEE4CF;
  --card: #FBF7EE;
  --ink: #0C3226;
  --muted: #3F6B57;
  --thread: #D5991E;
  --line: #D9CCB0;
  --input-line: #C9BB9C;
  --on-dark-muted: #D7DDD4;

  --serif-display: 'Young Serif', Georgia, serif;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', sans-serif;

  --wrap: 1080px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 5px; }
a:hover { color: var(--muted); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--serif-display); font-weight: 400; }
h2 { font-size: clamp(32px, 7vw, 48px); line-height: 1.1; text-wrap: balance; }
h2.h-sm { font-size: 30px; line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 8px; padding: 10px 16px; background: var(--ink); color: var(--ground); z-index: 10; }
.skip-link:focus { left: 8px; }

/* ---------- small type helpers ---------- */
.caps { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fine { font-size: 15px; font-style: italic; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.caps.text-link { font-size: 15px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 680px; }
.section { padding: 64px 0; }
.panel { background: var(--panel); }
.dark { background: var(--ink); color: var(--ground); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.stack-xl { display: flex; flex-direction: column; gap: 40px; }
.stack-center { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }

/* ---------- announcement bar ---------- */
.announce {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  min-height: 44px; padding: 10px var(--gutter);
  background: var(--ink); color: var(--ground);
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; text-align: center;
}
.announce:hover { color: var(--ground); text-decoration: underline; }
.announce[hidden] { display: none; }
.announce-dot { color: var(--thread); }

/* ---------- intro ---------- */
.hero-intro { padding: 48px var(--gutter) 40px; }
.hero-intro .stack-center { max-width: 720px; margin: 0 auto; gap: 22px; }
.wordmark { width: 100%; max-width: 560px; }
.wordmark img { width: 100%; }
.tagline { font-style: italic; font-size: clamp(24px, 6vw, 34px); line-height: 1.25; }
.lead { max-width: 34ch; }

/* ---------- signup forms ---------- */
.signup { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.signup-card { max-width: 460px; padding: 20px; background: var(--card); border: 2px dashed var(--thread); border-radius: 10px; gap: 12px; }
.signup-card label { font-size: 17px; line-height: 1.45; }
.signup-card .eyebrow { display: block; margin-bottom: 2px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup input {
  flex: 1 1 200px; min-width: 0; min-height: 50px; padding: 0 18px;
  border: 1px solid var(--input-line); border-radius: 999px;
  background: #fff; color: var(--ink); font-family: var(--serif); font-size: 17px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { background: #164a39; }
.btn-thread { background: var(--thread); color: var(--ink); flex: 1 0 auto; }
.btn-thread:hover { background: #e2a93a; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.signup-status { font-size: 16px; font-style: italic; }
.signup-status:empty { display: none; }
.signup.is-done .signup-row { display: none; }
.signup-wide input { min-height: 52px; border-color: var(--ground); font-size: 18px; }
.signup-wide .btn { min-height: 52px; }
.dark .signup-status, .dark .fine { color: var(--on-dark-muted); }

/* ---------- photos ---------- */
.tile { position: relative; overflow: hidden; border-radius: 4px; background: var(--panel); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.portrait { aspect-ratio: 4 / 5; }
.placeholder { background: var(--ph, #DDCFB2); display: flex; align-items: flex-end; padding: 12px; }
.placeholder span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.collage .big { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.collage .sq { aspect-ratio: 1; }
@media (min-width: 760px) {
  .collage { grid-template-columns: minmax(0, 2.72fr) minmax(0, 1fr); gap: 12px; }
  .collage .big { grid-column: 1; grid-row: 1 / span 2; }
  .collage .sq { aspect-ratio: auto; }
}

.fabric-band { width: 100%; aspect-ratio: 5 / 2; max-height: 560px; object-fit: cover; }

/* ---------- what she makes ---------- */
.stitch-divider { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 320px; margin: 0 auto; color: var(--thread); }
.stitch-divider span { flex: 1; border-top: 2px dashed var(--thread); }
.stitch-divider svg { fill: currentColor; flex: none; }
.stitch-divider.small { max-width: 240px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.products {
  display: grid; gap: 28px 24px;
  grid-template-columns: repeat(auto-fit, minmax(max(150px, calc((100% - 48px) / 3)), 1fr));
}
.product { display: flex; flex-direction: column; gap: 10px; }
.product p { font-size: 16px; line-height: 1.45; }

/* ---------- story ---------- */
.story { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.story-photo { flex: 1 1 300px; max-width: 460px; aspect-ratio: 4 / 5; justify-content: center; align-items: center; text-align: center; }
.story .stack { flex: 1 1 320px; gap: 16px; }
.story h2 { font-size: clamp(30px, 6.5vw, 44px); line-height: 1.15; }
.signoff { font-style: italic; font-size: 20px; }

/* ---------- markets ---------- */
.markets { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.market {
  display: flex; align-items: stretch; gap: 18px; padding: 20px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
}
.market[hidden] { display: none; }
.market-date {
  flex: none; width: 74px; padding-right: 18px; border-right: 2px dashed var(--thread);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.market-date .caps { font-size: 12px; letter-spacing: 0.14em; }
.market-day { font-family: var(--serif-display); font-size: 40px; line-height: 1; }
.market-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.market-info h3 { font-size: 24px; }
.market-info p { font-size: 17px; line-height: 1.4; }
.markets-empty, .note { font-style: italic; }

/* ---------- list ---------- */
#list h2 { color: var(--ground); }
#list .heart { fill: var(--thread); }
#list label { color: var(--ground); font-size: 13px; }
#list a { color: var(--ground); }

/* ---------- good to know ---------- */
.good-to-know { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px 64px; }
.email-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 19px; align-self: flex-start; }
.care {
  align-self: center; width: 100%; max-width: 300px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px 20px; background: var(--card); border: 2px dashed var(--thread); border-radius: 8px; text-align: center;
}
.care .caps { font-size: 13px; line-height: 1.75; letter-spacing: 0.1em; }
.care .care-title { letter-spacing: 0.2em; color: var(--muted); }
.care-icons { display: flex; gap: 16px; color: var(--ink); }
.care .care-note { padding-top: 12px; border-top: 1px dashed var(--input-line); color: var(--muted); }

.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px;
  font-family: var(--serif-display); font-size: 19px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { font-family: var(--sans); font-size: 26px; line-height: 1; transition: transform 0.2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; font-size: 17px; }

/* ---------- follow + footer ---------- */
.follow { padding: 56px 0; }
.follow .stack-center { gap: 10px; }
.ig-handle { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-family: var(--serif-display); font-size: clamp(28px, 7vw, 40px); text-decoration: none; }
.site-footer { padding: 48px 0 40px; }
.site-footer .stack-center { gap: 14px; }
.tagline-sm { font-style: italic; font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; font-size: 17px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .fine { font-style: normal; font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
