/* The Kind Window — news-style layout
   Palette taken from the watercolor logo: paper, ink navy, ridge blue, sage and terracotta. */

:root {
  --paper: #fbf9f4;
  --paper-2: #f2eee4;
  --card: #ffffff;
  --ink: #1b2740;
  --ink-soft: #3f4c62;
  --muted: #667185;
  --line: #e0d9cb;
  --rule: #1b2740;
  --ridge: #3f5f8a;
  --sage: #4f6e59;
  --sage-tint: #e5ece4;
  --clay: #a3502c;
  --clay-tint: #f6e8de;
  --focus: #2f5fb3;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-text: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1rem, 3.5vw, 2rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13171e;
    --paper-2: #1a1f28;
    --card: #1d232d;
    --ink: #ece7dd;
    --ink-soft: #cfd4dc;
    --muted: #a0a9b6;
    --line: #2e3643;
    --rule: #ece7dd;
    --ridge: #a4b9d8;
    --sage: #9cc0a5;
    --sage-tint: #213029;
    --clay: #e6a07e;
    --clay-tint: #3a2a22;
    --focus: #8fb4ff;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.25rem;
}
.topbar ul { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.topbar a:hover { color: var(--ink); }
.topbar-date:empty::before { content: "Asheville, North Carolina"; }

.masthead { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.5rem); text-align: center; }
.masthead-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  color: var(--ink);
}
.masthead-brand:hover { text-decoration: none; }
.masthead-brand img { width: clamp(44px, 6vw, 64px); height: auto; border-radius: 50%; }
.masthead-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 6.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.masthead-tagline {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}
.masthead--compact { padding-block: 1rem 0.75rem; }
.masthead--compact .masthead-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.masthead--compact .masthead-brand img { width: clamp(36px, 4.5vw, 48px); }

.sections-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--rule);
}
.sections-nav ul {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.sections-nav ul::-webkit-scrollbar { display: none; }
.sections-nav a {
  display: block;
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sections-nav a:hover { color: var(--clay); text-decoration: none; }
.sections-nav a[aria-current] { color: var(--clay); box-shadow: inset 0 -3px 0 var(--clay); }
@media (max-width: 56rem) {
  .sections-nav ul {
    justify-content: flex-start;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
}

/* ---------- Shared story pieces ---------- */

.kicker {
  margin: 0 0 0.4rem;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dek { margin: 0.5rem 0 0; color: var(--ink-soft); }
.meta { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.8rem; }

.story-media { display: block; overflow: hidden; background: var(--paper-2); }
.story-media img { width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.story:hover .story-media img { transform: scale(1.03); }
.story-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.label::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }

/* ---------- Season watch ---------- */

.season-watch { border-bottom: 1px solid var(--line); background: var(--sage-tint); font-size: 0.92rem; }
.season-watch .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding-block: 0.65rem; }
.season-watch strong {
  color: var(--sage);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.season-watch a { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- Front page ---------- */

.front { padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.front-grid { display: grid; gap: 2rem; }
@media (min-width: 60rem) {
  .front-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; }
  .front-grid > .lead { padding-right: 2rem; border-right: 1px solid var(--line); }
  .front-grid > .top-stories { padding-left: 2rem; }
}

.lead .story-media img { aspect-ratio: 3 / 2; object-position: 50% 45%; }
.lead .kicker { margin-top: 1rem; }
.lead h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.lead .dek { font-family: var(--font-text); font-size: 1.15rem; }

.top-stories ol { margin: 0; padding: 0; list-style: none; }
.top-stories li + li { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }

.story--row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 1rem; align-items: start; }
.story--row .story-media { order: 2; }
.story--row .story-media img { aspect-ratio: 1; }
.story--row h3 { font-size: 1.12rem; }

.row4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.75rem;
}
.story--card .story-media img { aspect-ratio: 3 / 2; }
.story--card .kicker { margin-top: 0.85rem; }
.story--card h3 { font-size: 1.2rem; }
.story--card .dek { font-size: 0.95rem; }

/* Small screens: cards collapse into compact rows with a square thumbnail. */
@media (max-width: 35.99rem) {
  .row4 { gap: 1.25rem; }
  .row4 .story--card { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
  .row4 .story--card .story-media img { aspect-ratio: 1; }
  .row4 .story--card .kicker { margin-top: 0; }
  .row4 .story--card h3 { font-size: 1.08rem; }
  .row4 .story--card .dek { display: none; }
  .row4 .story--card + .story--card { padding-top: 1.25rem; border-top: 1px solid var(--line); }
}

.band { padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }

/* Section desks */
.desk { padding-block: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--line); }
.desk .label a:hover { color: var(--clay); text-decoration: none; }
.desk-grid { display: grid; gap: 1.75rem; }
@media (min-width: 52rem) {
  .desk-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; }
}
.desk-feature .story-media img { aspect-ratio: 16 / 10; }
.desk-feature .kicker { margin-top: 0.9rem; }
.desk-feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.desk-feature .dek { font-family: var(--font-text); font-size: 1.05rem; }
.desk-list { margin: 0; padding: 0; list-style: none; }
.desk-list li + li { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.desk-list .story--row { grid-template-columns: 5rem minmax(0, 1fr); }
.desk-list .story--row .story-media { order: 0; }
.desk-list h3 { font-size: 1.05rem; }
.desk-list .dek { font-size: 0.9rem; margin-top: 0.3rem; }

/* Editor's note */
.editor {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper-2);
  border-top: 3px solid var(--rule);
}
@media (min-width: 48rem) { .editor { grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; } }
.editor img { width: 9rem; border-radius: 50%; }
.editor h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.editor p { color: var(--ink-soft); font-family: var(--font-text); }
.editor .small { font-family: var(--font-sans); font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Ask band */
.ask {
  display: grid;
  gap: 1rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  color: var(--paper);
}
@media (min-width: 52rem) { .ask { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.ask h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.4rem; }
.ask p { margin: 0; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.ask :focus-visible { outline-color: var(--paper); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.92rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.button:hover { text-decoration: none; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ask .button { background: var(--paper); color: var(--ink); border-color: var(--paper); overflow-wrap: anywhere; }
.ask .button:hover { background: transparent; color: var(--paper); }

/* ---------- Article page ---------- */

.article { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.5rem); }
.article-col { max-width: 44rem; margin-inline: auto; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.82rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; }
.breadcrumb a:hover { color: var(--ink); }

.article h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; }
.article .standfirst { margin: 1rem 0 0; font-family: var(--font-text); font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.45; color: var(--ink-soft); }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 1.5rem 0 0;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.byline img { width: 36px; height: 36px; border-radius: 50%; }
.byline strong { color: var(--ink); }
.byline a:hover { color: var(--ink); }

.article-figure { margin: 1.75rem 0; }
.article-figure img { width: 100%; max-height: 80vh; object-fit: cover; background: var(--paper-2); }
.article-figure figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.82rem; }

.article-body { font-family: var(--font-text); font-size: 1.15rem; line-height: 1.7; }
.article-body > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--font-serif);
  font-size: 3.4em;
  font-weight: 700;
  line-height: 0.8;
  color: var(--clay);
}
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.4rem; }
.article-body li { margin-bottom: 0.5em; }
.article-body li::marker { color: var(--clay); }
.article-body a { color: var(--ridge); text-decoration: underline; text-underline-offset: 0.15em; }

.callout {
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--clay);
  background: var(--clay-tint);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.6;
}

.article-foot { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.88rem; }
.share-label { font-weight: 700; margin-right: 0.25rem; }
.share .button { min-height: 40px; padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.share-status { color: var(--sage); font-size: 0.85rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.82rem; }
.tags a { display: inline-block; padding: 0.25rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }
.tags a:hover { border-color: var(--ink-soft); text-decoration: none; }

.disclosure { margin-top: 1.5rem; padding: 0.9rem 1.1rem; border: 1px dashed var(--line); color: var(--muted); font-size: 0.85rem; }

.related { padding-block: clamp(2rem, 4vw, 3rem); border-top: 3px double var(--rule); }

/* ---------- Footer ---------- */

.site-footer { margin-top: clamp(2rem, 5vw, 3rem); padding-block: 2.5rem 1.5rem; background: var(--paper-2); border-top: 3px solid var(--rule); font-size: 0.9rem; color: var(--ink-soft); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer-brand { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.site-footer h2 { margin-bottom: 0.75rem; font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.4rem; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.footer-bottom p { margin: 0.25rem 0; }

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(2rem, 5vw, 3.5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.4rem; }
.legal .updated { color: var(--muted); margin-bottom: 2rem; }
.legal h2 { margin: 2.25rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 1.45rem; }
.legal h3 { margin: 1.4rem 0 0.5rem; font-size: 1.12rem; }
.legal p, .legal li { font-family: var(--font-text); font-size: 1.05rem; line-height: 1.7; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4em; }
.legal a { color: var(--ridge); text-decoration: underline; text-underline-offset: 0.15em; }
.legal .summary { padding: 1.25rem 1.5rem; background: var(--sage-tint); }
.legal .summary h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 1.15rem; }
.legal .summary ul { margin-bottom: 0; }
.legal .caps { font-family: var(--font-sans); font-size: 0.92rem; }
.legal .callout p, .legal p.callout { font-family: var(--font-sans); }
.toc { margin: 2rem 0; padding: 1.25rem 1.5rem; border: 1px solid var(--line); background: var(--card); }
.toc h2 { margin: 0 0 0.5rem; padding: 0; border: 0; font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 14rem; column-gap: 2rem; }
.toc li { margin-bottom: 0.25em; break-inside: avoid; font-family: var(--font-sans); font-size: 0.95rem; }

/* ---------- 404 ---------- */

.not-found { padding-block: clamp(3rem, 10vw, 6rem); text-align: center; }
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.not-found p { color: var(--ink-soft); }

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .sections-nav, .season-watch, .share, .related, .site-footer, .skip-link, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .article-body { font-size: 11pt; }
}
