* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #54283a;
  --accent: #aa3156;
  --paper: #fff8f2;
  --line: #efd4d5;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.8 "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid #aa3156;
  outline-offset: 4px;
}

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

h1, h2, h3 {
  line-height: 1.4;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.masthead {
  background: #fffaf7;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 700;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-size: 13px;
  letter-spacing: .18em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  margin-top: 32px;
  background: #fbe3df;
  border-radius: 8px 96px 8px 8px;
  overflow: hidden;
}

.hero-copy {
  padding: clamp(24px, 5vw, 70px);
  align-self: center;
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 46px);
}

.hero img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 32px;
}

.issue {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-block: 1px solid var(--line);
  margin: 30px 0;
  padding: 12px 0;
  font-size: 14px;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
}

.story {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  align-items: center;
}

.story img {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 90px 90px 8px 8px;
}

.story:nth-of-type(even) img {
  border-radius: 8px 90px 90px 8px;
}

.story h3 {
  font-size: 23px;
}

.story p {
  color: #674c55;
}

.read {
  font-weight: 700;
}

aside {
  align-self: start;
  background: #f9e5e3;
  border-top: 5px solid var(--accent);
  padding: 24px;
}

aside li {
  margin-bottom: 12px;
}

.notes {
  border-top: 1px solid var(--line);
  margin-block: 42px;
  padding-block: 24px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.notes-grid article {
  background: white;
  padding: 20px;
  border: 1px solid var(--line);
}

.article-page {
  max-width: 820px;
  padding-block: 32px;
}

.crumb {
  margin-bottom: 24px;
}

.article-intro h1 {
  font-size: clamp(30px, 5vw, 48px);
}

figure {
  margin: 24px 0;
}

figure img {
  width: min(100%, 512px);
  margin-inline: auto;
  border-radius: 12px;
}

figcaption {
  text-align: center;
  font-size: 13px;
  margin-top: 8px;
}

.article-text section {
  margin: 30px 0;
}

footer {
  background: #602b42;
  color: #fff5ed;
  padding: 36px 0;
}

footer a {
  color: #ffd8db;
}

@media (max-width: 780px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero, .editorial, .notes-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    border-radius: 8px 48px 8px 8px;
  }
  .hero img {
    min-height: 0;
    height: auto;
    max-height: 420px;
  }
  .story {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
  }
  .story img {
    width: 112px;
  }
  .story h3 {
    font-size: 20px;
  }
  .issue {
    flex-wrap: wrap;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

