/* Tech Scout mockup — editorial reading theme
   Warm paper page, deep ink, restrained amber accent.
   Article measure ~68ch. Mobile-first; calm sidebar only on wide screens.
*/

/* ---------- Tokens ---------- */
:root {
  --paper: #F7F3EB;
  --paper-raised: #FFFCF6;
  --ink: #1A1A18;
  --ink-soft: #3A3632;
  --muted: #6B6560;
  --faint: #9A9288;
  --line: #E5DED2;
  --line-strong: #D4CBBC;
  --accent: #B87333;
  --accent-hot: #C4832A;
  --accent-soft: #F3E6D2;
  --code-bg: #1E1E1C;
  --code-fg: #E8E4DC;
  --code-muted: #9A948A;
  --focus: #C4832A;
  --radius: 10px;
  --measure: 68ch;
  --content: 42rem;          /* ~ article column */
  --shell: 68rem;            /* home / with sidebar */
  --header-h: 4.25rem;
  --font-display: "Newsreader", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Fira Code", ui-monospace, monospace;
  --shadow-soft: 0 1px 2px rgba(26, 26, 24, 0.04), 0 8px 24px rgba(26, 26, 24, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;       /* 17px — comfortable phone reading */
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Chrome / header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand:hover { color: inherit; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand__name span { color: var(--accent); }
.brand__tag {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.nav__rss {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted) !important;
  font-size: 0.85rem !important;
}
.nav__rss svg { width: 16px; height: 16px; }
.nav__url {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--paper-raised);
}

@media (min-width: 720px) {
  .nav__url { display: inline-block; }
  .brand__tag { white-space: normal; }
}

/* ---------- Layout shells ---------- */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.main--article {
  max-width: calc(var(--content) + 2.5rem);
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.sample-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  vertical-align: middle;
}

/* ---------- Home: featured + list ---------- */
.home-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: 3rem;
    align-items: start;
  }
}

.featured {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) {
  .featured { padding: 1.85rem 2rem 2rem; }
}

.featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.featured__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.featured__title a {
  color: inherit;
  text-decoration: none;
}
.featured__title a:hover { color: var(--accent); }
.featured__lede {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 52ch;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-head span {
  font-size: 0.85rem;
  color: var(--muted);
}

.brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.brief-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.brief-item:first-child { padding-top: 0.25rem; }
.brief-item__date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.brief-item__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  letter-spacing: -0.015em;
}
.brief-item__title a {
  color: inherit;
  text-decoration: none;
}
.brief-item__title a:hover { color: var(--accent); }
.brief-item__lede {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Sidebar (desktop calm) */
.sidebar {
  display: none;
}
@media (min-width: 960px) {
  .sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}
.sidebar__card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 1rem;
}
.sidebar__card h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}
.sidebar__card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar__list li { margin: 0 0 0.55rem; }
.sidebar__list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.sidebar__list a:hover { color: var(--accent); }
.sidebar__list time {
  display: block;
  font-size: 0.75rem;
  color: var(--faint);
}

/* ---------- Article ---------- */
.article-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.article-header__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.article-header__end .tags { flex: 1; min-width: 0; }
.article-header__end .copy-link-btn { margin-left: auto; }
.copy-link-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
}
.copy-link-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.copy-link-btn .icon-copied { display: none; }
.copy-link-btn.is-copied { color: var(--accent); }
.copy-link-btn.is-copied .icon-link { display: none; }
.copy-link-btn.is-copied .icon-copied { display: block; }
.copy-link-btn:hover { color: var(--ink); }
.copy-link-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.article-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
}
.article-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: var(--measure);
}

.prose {
  max-width: var(--measure);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: 2.1em;
  margin-bottom: 0.55em;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.prose p { margin: 0; }
.prose ul, .prose ol {
  padding-left: 1.25rem;
  margin: 0;
}
.prose li + li { margin-top: 0.35em; }
.prose strong { font-weight: 650; }

.pullquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pullquote cite {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0;
}

.figure {
  margin: 1.75rem 0;
}
.figure__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ebe5da;
}
.figure__media img,
.figure__media video {
  width: 100%;
  vertical-align: middle;
}
.figure figcaption,
.figure__caption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.video-player {
  position: relative;
  background: #111;
}
.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 28rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  font-weight: 600;
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--paper-raised));
  color: var(--ink);
  white-space: nowrap;
}
.prose tr:last-child td { border-bottom: none; }
.prose tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }

/* Code blocks — first-class */
.pre-wrap {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2c2c28;
  background: var(--code-bg);
  box-shadow: var(--shadow-soft);
}
.pre-wrap__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  background: #151513;
  border-bottom: 1px solid #2c2c28;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.pre-wrap__lang {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #E8B84A;
}
.pre-wrap pre {
  margin: 0;
  padding: 1rem 1.05rem 1.15rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--code-fg);
  -webkit-overflow-scrolling: touch;
}
.pre-wrap code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
  color: inherit;
}
.prose :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Minimal syntax colors (no dependency) */
.tok-kw { color: #E8B84A; }
.tok-str { color: #A8D5A2; }
.tok-num { color: #F0A878; }
.tok-cm { color: #7A746A; font-style: italic; }
.tok-fn { color: #8EC8E8; }
.tok-op { color: #D4CBBC; }

.callout {
  margin: 1.5rem 0;
  padding: 0.95rem 1.1rem;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

.article-footer {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}
.article-footer a { font-weight: 500; }

/* ---------- About ---------- */
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.about-hero p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 1.5rem;
}
.about-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  background: var(--paper-raised);
}
.about-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
}
.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent); }

/* Prevent horizontal overflow on foldable / narrow */
.main, .prose, .featured, .brief-list { min-width: 0; }

/* Narrow phones: drop tagline so header stays one tidy row */
@media (max-width: 420px) {
  .brand__tag { display: none; }
  .nav { gap: 0.35rem 0.85rem; }
  .site-header__inner { padding: 0.75rem 1rem; }
}

/* ---------- Listen / read-aloud bar (compact Yoshi-style icons) ---------- */
.listen-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  background: color-mix(in srgb, var(--paper-raised) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(26, 26, 24, 0.05);
  padding: 0.15rem 0.4rem calc(0.15rem + env(safe-area-inset-bottom, 0px));
}
.listen-bar__inner {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.listen-bar__btn {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
}
.listen-bar__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.listen-bar__btn .icon-resume { display: none; }
.listen-bar__btn.is-paused .icon-pause { display: none; }
.listen-bar__btn.is-paused .icon-resume { display: block; }
.listen-bar__btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.listen-bar__btn[aria-pressed="true"],
.listen-bar__btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.listen-bar__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.listen-bar__speed {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}
.listen-bar__speed select {
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 0 0.55rem;
  min-height: 44px;
  cursor: pointer;
}
.listen-bar__status[data-state="error"] { color: #8a2f1a; }

/* Currently spoken paragraph */
.prose .tts-active,
.article-title.tts-active {
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
  border-radius: 4px;
  scroll-margin-top: calc(var(--header-h) + 1rem);
  scroll-margin-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
}
@media (prefers-reduced-motion: reduce) {
  .prose .tts-active {
    transition: none;
  }
}

/* Body padding so sticky bar does not cover last lines */
body.has-listen-bar {
  padding-bottom: calc(3.1rem + env(safe-area-inset-bottom, 0px));
}

/* Topic index on the weekly brief page */
.topic-list-head {
  margin-top: 2rem;
}
.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-card {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.topic-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.topic-card__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.topic-card__title a {
  color: inherit;
  text-decoration: none;
}
.topic-card__title a:hover { color: var(--accent); }
.topic-card__num {
  color: var(--muted);
  font-weight: 550;
}
.topic-card__lede {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 52ch;
}
.topic-card .copy-link-btn {
  flex: 0 0 auto;
  margin: -0.35rem -0.35rem 0 0;
}

.featured__topics {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.featured__topics li { margin: 0.35rem 0; }
.featured__topics a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.featured__topics a:hover { color: var(--accent); }

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}
.topic-nav__week { margin-left: auto; margin-right: auto; }
.closer { margin-top: 2rem; }

.article-header__end:not(:has(.tags)) {
  margin-top: 0.15rem;
  justify-content: flex-end;
}

/* ---------- Day stack (home): titles up top, full articles below ---------- */
.day {
  margin: 0 0 3rem;
}
.day-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.day-headings {
  margin: 0 0 2rem;
}
.day-headings ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.day-headings li + li {
  border-top: 1px solid var(--line);
}
.day-headings a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.day-headings a:hover { color: var(--accent); }
.day-article {
  padding: 1.6rem 0 1.85rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.day + .day {
  margin-top: 3.5rem;
}
.day-article:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.day-article__head {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}
.day-article__head .article-title {
  flex: 1;
  min-width: 0;
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  margin: 0;
}
.day-article__head .copy-link-btn {
  margin-top: 0.1rem;
}
.day-article__back {
  margin: 1.15rem 0 0;
}
.day-article__back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.day-article__back a:hover { color: var(--ink); }
.day-article__back svg {
  width: 20px;
  height: 20px;
}
