:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #17130f;
  --muted: #625b51;
  --line: #d8d0c4;
  --accent: #c3352b;
  --accent-2: #0f766e;
  --accent-3: #7c3aed;
  --gold: #c7831f;
  --shadow: 0 18px 50px rgba(59, 44, 23, 0.11);
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
p,
li,
span {
  overflow-wrap: anywhere;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 22px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 32px;
  align-items: end;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 26px;
}

.edition {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 900px;
  margin: 16px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 760px;
  margin: 0;
  color: #312b25;
  font-size: 20px;
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.hero-aside img {
  width: min(100%, 240px);
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.editor-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.section h2,
.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.lead-story {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.theme-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #16130f;
  color: #fffdf8;
  padding: 26px;
}

.theme-card .section-kicker {
  color: #f4b24f;
}

.theme-card h2 {
  margin: 8px 0 14px;
  max-width: 760px;
}

.theme-card p {
  margin: 0;
  color: #eadfce;
  font-size: 18px;
}

.theme-why {
  margin-top: 14px !important;
  color: #fff6e8 !important;
  font-weight: 700;
}

.theme-track {
  border-left: 1px solid rgba(255, 253, 248, 0.24);
  padding-left: 22px;
}

.theme-track span {
  display: block;
  color: #f4b24f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.theme-track strong {
  display: block;
  margin: 8px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.12;
}

.theme-track ul {
  margin: 0;
  padding-left: 18px;
  color: #eadfce;
}

.lead-story h1 {
  max-width: 920px;
  margin: 10px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead-summary {
  max-width: 820px;
  margin: 0 0 24px;
  color: #352f29;
  font-size: 20px;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.lead-grid article {
  min-width: 0;
}

.lead-grid h2,
.news-card h3,
.update-item h3,
.watch-item h3,
.archive-item strong,
.explain-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
}

.lead-grid p,
.news-card p,
.update-item p,
.watch-item p,
.explain-card p {
  margin: 0;
  color: var(--muted);
}

.source-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.source-row a,
.source-note {
  color: var(--muted);
  font-size: 13px;
}

.source-row a {
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.item-detail {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.item-detail summary {
  cursor: pointer;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 850;
}

.item-detail p {
  margin-top: 10px !important;
}

.fact-sheet {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.fact-sheet strong {
  color: var(--ink);
}

.fact-sheet ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.fact-sheet li + li {
  margin-top: 5px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.news-card,
.explain-card,
.watch-item,
.archive-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ece7df;
  color: #3f3932;
  font-size: 12px;
  font-weight: 750;
}

.tag.easy {
  background: #dff3df;
}

.tag.developer {
  background: #e6ddff;
}

.tag.business {
  background: #f7e5c8;
}

.updates-list {
  display: grid;
  gap: 12px;
}

.update-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.update-tool {
  color: var(--accent);
  font-weight: 850;
}

.try-now {
  margin-top: 10px !important;
  color: #2f4d46 !important;
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.example-box,
.prompt-box {
  margin: 16px 0;
  border-left: 4px solid var(--gold);
  background: #f3eadb;
  padding: 14px 16px;
}

.example-box strong,
.example-box span {
  display: block;
}

.prompt-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #2d261f;
}

.explain-card ol,
.explain-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.archive-section[hidden] {
  display: none;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-item,
.archive-empty {
  display: grid;
  gap: 8px;
}

.archive-item {
  color: inherit;
  text-decoration: none;
}

.archive-item:hover {
  border-color: var(--ink);
}

.archive-item span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.archive-item strong {
  display: block;
  font-family: var(--serif);
}

.archive-item small,
.archive-empty small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.archive-empty {
  grid-column: 1 / -1;
  min-width: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.72);
  padding: 18px;
}

.archive-empty strong {
  font-size: 20px;
}

.watch-item span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.discussion {
  margin-bottom: 42px;
  padding: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.discussion .section-kicker,
.discussion p {
  color: #f2dcc0;
}

.discussion h2 {
  max-width: 760px;
  margin: 8px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.discussion-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.discussion .button {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.discussion .button.secondary {
  background: transparent;
  color: #fff;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

[data-app-state] {
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 920px) {
  .masthead,
  .theme-card,
  .lead-grid,
  .two-column,
  .watch-grid,
  .archive-list {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }

  .theme-track {
    border-left: 0;
    border-top: 1px solid rgba(255, 253, 248, 0.24);
    padding: 18px 0 0;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .header-inner,
  .hero,
  .section,
  .site-footer,
  [data-app-state] {
    width: min(100%, 340px);
    max-width: 100vw;
    margin-left: 0;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner,
  .section-header,
  .update-item {
    display: block;
  }

  .header-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .lead-story h1 {
    font-size: 28px;
    line-height: 1.05;
  }

  .hero-text,
  .lead-summary {
    font-size: 16px;
  }

  .lead-story,
  .theme-card,
  .discussion {
    padding: 20px;
  }

  .masthead,
  .theme-card,
  .lead-story,
  .news-card,
  .explain-card,
  .watch-item,
  .archive-item {
    max-width: 100%;
    overflow: hidden;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .update-tool {
    margin-bottom: 8px;
  }
}
