:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --paper-deep: #ece8de;
  --ink: #17201b;
  --muted: #687169;
  --line: #d8d5cb;
  --green: #166447;
  --green-soft: #dce8e0;
  --red: #b73d42;
  --white: #fffefa;
  --shadow: 0 18px 50px rgb(34 47 39 / 8%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 10%, rgb(22 100 71 / 8%), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(23 32 27 / 10%);
  background: rgb(247 244 236 / 88%);
  backdrop-filter: blur(14px);
}

.flag-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 3px;
}

.flag-line span:nth-child(1) { background: #fff; }
.flag-line span:nth-child(2) { background: var(--green); }
.flag-line span:nth-child(3) { background: var(--red); }

.masthead-inner,
.footer-inner,
main {
  width: min(1060px, calc(100% - 40px));
  margin-inline: auto;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 56px;
  height: 28px;
  flex: none;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rss-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.rss-button:hover { border-color: var(--green); }

.rss-button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.rss-button svg path { fill: none; }

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.language-switch button {
  min-width: 44px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 700 12px/1 "Manrope", sans-serif;
  letter-spacing: 0.06em;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.intro {
  max-width: 860px;
  padding: 46px 0 34px;
}

h1 {
  max-width: 820px;
  margin: 0;
  font: 600 clamp(28px, 4vw, 44px) / 1.08 "Newsreader", Georgia, serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.updates { padding-bottom: 56px; }

.section-title {
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline { border-bottom: 1px solid var(--line); }

.day-card {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.day-card:first-child { border-top: 0; }

.date-block { display: flex; flex-direction: column; }

.date-day {
  font: 600 21px/1.2 "Newsreader", Georgia, serif;
  letter-spacing: -0.02em;
}

.date-weekday {
  margin-top: 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary {
  display: grid;
  gap: 5px;
  max-width: 760px;
  margin: 0;
  padding-left: 22px;
  font: 500 clamp(19px, 2.4vw, 25px) / 1.35 "Newsreader", Georgia, serif;
  letter-spacing: -0.012em;
}

.summary li::marker {
  color: var(--green);
  font-size: 0.8em;
}

.sources { margin-top: 12px; }

.sources summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  list-style: none;
}

.sources summary::-webkit-details-marker { display: none; }

.sources summary::after {
  content: "+";
  font-size: 17px;
  font-weight: 400;
}

.sources[open] summary::after { content: "−"; }

.sources ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sources a {
  text-decoration-color: rgb(22 100 71 / 35%);
  text-underline-offset: 3px;
}

.sources a:hover { color: var(--green); }

.error {
  margin: 30px 0;
  padding: 20px;
  border-left: 3px solid var(--red);
  background: var(--white);
}

footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 24px 0 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer-copy {
  display: grid;
  max-width: 660px;
  gap: 5px;
}

.footer-inner p { margin: 0; }
.model-credit { color: var(--ink); }
.footer-inner a { white-space: nowrap; text-underline-offset: 3px; }

.footer-prompt { margin-top: 3px; }

.footer-prompt summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.footer-prompt summary::-webkit-details-marker { display: none; }

.footer-prompt summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 400;
}

.footer-prompt[open] summary::after { content: "−"; }

.footer-prompt-body {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.footer-prompt pre {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgb(255 254 250 / 55%);
  color: var(--ink);
  font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 700px) {
  .masthead-inner,
  .footer-inner,
  main { width: min(100% - 28px, 1060px); }

  .intro { padding: 34px 0 26px; }
  h1 { font-size: clamp(28px, 7.5vw, 36px); }

  .brand {
    gap: 7px;
    font-size: 14px;
    white-space: nowrap;
  }
  .brand-mark { width: 44px; }
  .rss-button {
    width: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 7px;
  }
  .rss-button span { display: none; }

  .day-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .date-block { flex-direction: row; align-items: baseline; gap: 9px; }
  .footer-inner { flex-direction: column; gap: 18px; }
}
