/* Staystitch: indigo and thread */

:root {
  --indigo: #1F2B4A;
  --ink: #283043;
  --slate: #586177;
  --label-ink: #4E576C;
  --muslin: #FBF9F4;
  --chambray: #E4EAF2;
  --thread: #F3EDE0;
  --bone: #F6F1E7;
  --mist: #C3CCDC;
  --gold: #D29A2E;

  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(24px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--muslin);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- stitched lines ---------- */
.staystitch { position: absolute; left: 0; width: 100%; height: 6px; }
.staystitch line, .stitch-rule line { stroke-linecap: round; }
.stitch-rule { width: 100%; height: 6px; }

/* ---------- links ---------- */
.text-link {
  font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--indigo);
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
  display: inline-block; padding: 10px 0;
}
.text-link:hover { text-decoration-color: var(--indigo); }

/* ---------- header ---------- */
.site-header { position: relative; overflow: hidden; background: var(--indigo); color: var(--thread); }
.site-header .texture { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-header .texture path { stroke: var(--thread); stroke-opacity: .13; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.site-header .wrap { position: relative; }
.site-header.is-home .wrap { padding-top: 28px; padding-bottom: clamp(96px, 10vw, 140px); }
.site-header.is-compact .wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-family: var(--sans); font-size: 17px; }
.is-home .site-nav { justify-content: flex-end; }
.site-nav a { color: var(--thread); text-decoration: none; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.wordmark-small { font-style: italic; font-size: 32px; line-height: 1; color: var(--bone); text-decoration: none; padding: 8px 0; }

.wordmark {
  margin: clamp(56px, 9vw, 132px) 0 0;
  font-style: italic; font-weight: 400; font-size: clamp(64px, 16vw, 172px);
  line-height: .9; letter-spacing: -.025em; font-variation-settings: 'opsz' 72; color: var(--bone);
}
.definition { margin-top: clamp(28px, 3vw, 40px); max-width: 560px; display: flex; flex-direction: column; gap: 6px; }
.definition p { margin: 0; }
.definition .term { display: flex; align-items: baseline; gap: 14px; font-size: 21px; }
.definition .term strong { font-weight: 600; color: var(--bone); }
.definition .term em { color: var(--mist); }
.definition .meaning { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--mist); text-wrap: pretty; }

/* ---------- swatches (each post's fabric) ---------- */
.swatch { overflow: hidden; border-radius: 3px; }
.swatch path { fill: none; stroke: var(--thread); stroke-linecap: round; }

/* ---------- home ---------- */
.intro {
  padding-top: clamp(64px, 8vw, 104px);
  display: flex; flex-wrap: wrap; gap: clamp(48px, 6vw, 88px); align-items: flex-start;
}
.welcome { flex: 1 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.welcome h2 { margin: 0; font-weight: 500; font-size: 30px; line-height: 1.2; color: var(--indigo); }
.welcome p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--slate); text-wrap: pretty; }
.welcome .aside-meta { margin-top: 8px; font-family: var(--sans); font-size: 16px; color: var(--slate); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.featured { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.featured .swatch { width: 100%; height: clamp(200px, 22vw, 312px); }
.featured .swatch path { stroke-opacity: .72; stroke-width: 2.4; }
.post-date { font-family: var(--sans); font-size: 16px; color: var(--slate); }
.featured .post-date { margin: 28px 0 0; }
.featured h2 { margin: 10px 0 0; font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.01em; color: var(--indigo); text-wrap: balance; }
.featured h2 a { text-decoration: none; }
.featured .excerpt { margin: 18px 0 0; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.7; max-width: 38em; text-wrap: pretty; }
.featured .text-link { margin-top: 10px; align-self: flex-start; }

.earlier { padding-top: clamp(72px, 8vw, 112px); padding-bottom: clamp(88px, 9vw, 128px); }
.earlier-inner { max-width: 860px; margin-left: auto; }
.earlier h2 { margin: 0 0 12px; font-weight: 500; font-size: 30px; line-height: 1.2; color: var(--indigo); }
.earlier ol { list-style: none; margin: 0; padding: 0; }
.earlier li { position: relative; }
.post-row { display: flex; gap: clamp(18px, 2.4vw, 32px); align-items: flex-start; padding: 30px 0; text-decoration: none; }
.post-row .swatch { flex: 0 0 auto; width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); }
.post-row .swatch path { stroke-opacity: .75; stroke-width: 2.2; }
.post-row .text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-row .post-date { font-size: 15px; }
.post-row .title { font-weight: 500; font-size: clamp(23px, 2.2vw, 28px); line-height: 1.2; color: var(--indigo); text-wrap: balance; }
.post-row:hover .title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-row .excerpt { font-size: 18px; line-height: 1.6; color: var(--slate); text-wrap: pretty; }
.empty { padding-block: clamp(72px, 8vw, 112px); font-size: 21px; line-height: 1.7; color: var(--slate); }

/* ---------- post ---------- */
.fabric-strip { position: relative; height: clamp(150px, 16vw, 240px); overflow: hidden; }
.fabric-strip svg.pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
.fabric-strip path { fill: none; stroke: var(--thread); stroke-opacity: .6; stroke-width: 2.4; stroke-linecap: round; }

.post { max-width: 720px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 32px) 0; box-sizing: content-box; }
.post h1 { margin: 0; font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1.08; letter-spacing: -.015em; color: var(--indigo); text-wrap: balance; }
.post-meta { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-family: var(--sans); font-size: 16px; color: var(--slate); }
.post-body { margin-top: clamp(40px, 5vw, 56px); font-size: clamp(19px, .6vw + 14.5px, 21px); line-height: 1.75; }
.post-body p { margin: 0 0 1.2em; text-wrap: pretty; }
.post-body > :last-child { margin-bottom: 0; }
.post-body a { color: var(--indigo); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.post-body li { margin-bottom: .4em; }
.post-body blockquote { margin: 0 0 1.2em; padding-left: 1em; color: var(--slate); font-style: italic; }
.post-body h2, .post-body h3 { font-weight: 500; color: var(--indigo); line-height: 1.25; margin: 1.6em 0 .6em; }

.pull-quote { margin: clamp(40px, 5vw, 64px) 0; display: flex; flex-direction: column; gap: 28px; }
.pull-quote p {
  margin: 0; font-style: italic; font-weight: 400; font-size: clamp(28px, 3vw, 38px);
  line-height: 1.3; letter-spacing: -.01em; color: var(--indigo); text-wrap: balance;
}

.signoff { margin-top: clamp(56px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.quilt-label {
  position: relative; padding: 30px 40px 28px; background: var(--chambray); border-radius: 2px;
  transform: rotate(-1deg); display: flex; flex-direction: column; gap: 6px;
}
.quilt-label::before {
  content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(31, 43, 74, .42); border-radius: 1px; pointer-events: none;
}
.quilt-label .made { font-style: italic; font-size: 26px; line-height: 1.2; color: var(--indigo); }
.quilt-label .small { font-family: var(--sans); font-size: 15px; color: var(--label-ink); }
.write-back { display: flex; flex-direction: column; gap: 4px; max-width: 280px; }
.write-back span { font-size: 18px; line-height: 1.55; color: var(--slate); }
.write-back .text-link { align-self: flex-start; }

.post-nav { margin-top: clamp(64px, 7vw, 96px); }
.post-nav-inner { padding: 32px 0 clamp(88px, 9vw, 128px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.post-nav a.neighbor { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 4px 0; }
.post-nav .label { font-family: var(--sans); font-size: 15px; color: var(--slate); }
.post-nav .name { font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--indigo); }
.post-nav a.neighbor:hover .name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-nav .text-link { align-self: flex-end; }

/* ---------- write to Stephanie (form) ---------- */
.page { max-width: 640px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(88px, 9vw, 128px); box-sizing: content-box; }
.page h1 { margin: 0; font-weight: 500; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.1; color: var(--indigo); text-wrap: balance; }
.page .lede { margin: 20px 0 0; font-size: 20px; line-height: 1.7; color: var(--slate); text-wrap: pretty; }
.note-form { margin-top: 40px; display: flex; flex-direction: column; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--indigo); }
.field .hint { font-family: var(--sans); font-size: 15px; color: var(--slate); }
.field input, .field textarea {
  font: inherit; font-size: 19px; color: var(--ink); background: #fff;
  border: 2px solid #C9D0DC; border-radius: 4px; padding: 12px 14px; min-height: 52px; width: 100%;
}
.field textarea { min-height: 220px; line-height: 1.6; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(210, 154, 46, .45); }
.about-post { font-family: var(--sans); font-size: 16px; color: var(--slate); padding: 14px 16px; background: var(--chambray); border-radius: 4px; }
.about-post strong { color: var(--indigo); }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.send {
  align-self: flex-start; font-family: var(--sans); font-weight: 700; font-size: 18px;
  color: var(--bone); background: var(--indigo); border: 0; border-radius: 4px;
  padding: 14px 28px; min-height: 52px; cursor: pointer;
}
.send:hover { background: #2B3A61; }
.form-error { margin: 24px 0 0; padding: 14px 16px; border-radius: 4px; background: #F6E3DF; color: #6E241D; font-family: var(--sans); font-size: 16px; line-height: 1.5; }
.form-error[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--indigo); color: var(--mist); font-family: var(--sans); }
.site-footer .wrap { padding-top: 88px; padding-bottom: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.site-footer .sig { display: flex; flex-direction: column; gap: 10px; }
.site-footer .sig .name { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--bone); }
.site-footer .sig span { font-size: 16px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; }
.site-footer .links a { color: var(--thread); padding: 10px 0; }
.site-footer .links span { padding: 10px 0; }

@media print {
  .site-header, .site-footer, .fabric-strip, .post-nav, .write-back { display: none; }
  body { background: #fff; }
}
