/* 01. Design tokens and global layout */
:root {
  --ink: #403039;
  --muted: #715b62;
  --paper: #fff9f3;
  --line: #e6d6ce;
  --peach: #b65c6c;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.8 "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--peach);
}
a:focus-visible {
  outline: 3px solid #a65369;
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,h2,h3,h4,p {
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(30px,4.2vw,55px);
  line-height: 1.26;
  letter-spacing: -.035em;
}
h2 {
  font-size: clamp(23px,3vw,32px);
  line-height: 1.4;
}
h3,h4 {
  line-height: 1.5;
}
.wrap {
  width: min(1180px,calc(100% - 48px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  padding: 10px;
  background: white;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
/* 02. Masthead */
.header {
  border-bottom: 1px solid var(--line);
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  margin-top: 8px;
}
.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50% 45% 48% 50%;
  background: #eab09c;
  color: #a65a6e;
  font-size: 32px;
}
.edition,.eyebrow,.tag,.meta,.crumb,figcaption {
  color: var(--muted);
  font-size: 13px;
}
.nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}
/* 03. Home editorial modules */
.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  min-height: 450px;
  margin: 35px 0 64px;
  background: #f5e3d9;
  border-radius: 4px 72px 4px 4px;
  overflow: hidden;
}
.hero-text {
  padding: clamp(26px,5vw,64px);
  align-self: center;
}
.eyebrow {
  letter-spacing: .12em;
  font-weight: 700;
}
.hero-text p:not(.eyebrow) {
  color: var(--muted);
  max-width: 34em;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta {
  display: inline-block;
  background: #90485b;
  color: white;
  padding: 12px 22px;
  border-radius: 4px;
  margin-top: 12px;
}
.cta:hover {
  color: white;
  background: #77394a;
}
.intro,.reading,.chapter,.related {
  margin-bottom: 54px;
}
.intro>p,.sectionhead>p {
  color: var(--muted);
}
.topicstrip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-top: 24px;
}
.topicstrip a {
  border-top: 5px solid var(--accent);
  background: #fff;
  padding: 20px;
}
.topicstrip span {
  display: block;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .12em;
}
.topicstrip strong {
  display: block;
  font-size: 21px;
  margin: 8px 0;
}
.topicstrip p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.sectionhead {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-bottom: 32px;
}
.chapterhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.chapterhead h3 {
  font-size: 24px;
}
.chapterhead a,.note a {
  font-size: 14px;
  color: #884653;
  font-weight: 700;
}
.stories {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}
.story img {
  width: 100%;
  aspect-ratio: 8/5;
  object-fit: cover;
  border-radius: 4px 24px 4px 4px;
  background: #ead7ce;
}
.story .tag {
  display: block;
  margin-top: 12px;
}
.story h3,.story h4 {
  font-size: 20px;
  margin: 5px 0 8px;
}
.story p {
  font-size: 14px;
  color: var(--muted);
}
.note {
  padding: 28px;
  background: #f0e4db;
  margin: 36px 0 55px;
  border-left: 4px solid #b46d77;
}
/* 04. Topic and article pages */
.crumb {
  padding-top: 26px;
}
.topichero {
  border-left: 8px solid var(--accent);
  padding: 30px;
  background: #f3e4dc;
  margin: 22px 0 40px;
}
.longform {
  max-width: 790px;
  margin: 34px auto 55px;
}
.longform h1 {
  font-size: clamp(28px,4vw,43px);
}
.lead {
  font-size: 19px;
  color: var(--muted);
}
.longform figure {
  margin: 30px 0;
}
.longform figure img {
  width: 100%;
  border-radius: 4px 28px 4px 4px;
}
figcaption {
  margin-top: 8px;
}
.longform section {
  margin: 32px 0;
}
.longform section p {
  font-size: 17px;
  line-height: 1.95;
}
.two {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
/* 05. Footer and responsive layout */
.footer {
  background: #46313b;
  color: #fff4ea;
  padding: 38px 0;
}
.footgrid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}
.footer p {
  font-size: 13px;
  color: #f1d9d4;
  margin-top: 12px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px 20px;
  font-size: 14px;
}
.footer a:hover {
  color: #ffc8b5;
}
@media (max-width:800px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 20px;
    min-height: 0;
    border-radius: 4px 40px 4px 4px;
  }
  .hero-img {
    max-height: 340px;
  }
  .topicstrip,.stories {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .edition {
    display: none;
  }
  .nav {
    gap: 12px 20px;
  }
  .footgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width:480px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .stories {
    grid-template-columns: 1fr;
  }
  .topicstrip {
    gap: 8px;
  }
  .topicstrip a {
    padding: 13px;
  }
  .hero-text {
    padding: 24px;
  }
  .brand {
    font-size: 22px;
  }
  .chapterhead h3 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Topic accents and navigation state */
.topic-city {
  --accent: #425969;
}
.topic-romance {
  --accent: #9a5975;
}
.topic-comedy {
  --accent: #407f73;
}
.topic-creative {
  --accent: #60518b;
}
.nav a[aria-current="page"] {
  color: var(--peach);
  text-decoration: underline;
  text-underline-offset: 5px;
}
