* {
  box-sizing: border-box;
}

:root {
  --ink: #36242a;
  --wine: #651c2e;
  --rose: #f8d7cf;
  --paper: #fff8ef;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.wrap {
  width: min(1160px, 92%);
  margin: auto;
}

header {
  border-bottom: 1px solid #e5c8bd;
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  font-size: 24px;
}

.brand img {
  width: 48px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  background: var(--wine);
  color: white;
  margin: 32px 0;
  border-radius: 8px 100px 8px 8px;
  overflow: hidden;
}

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

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

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

h1 {
  font-size: clamp(28px, 4vw, 48px);
}

h2 {
  font-size: clamp(23px, 3vw, 32px);
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: bold;
}

.hero a {
  display: inline-block;
  background: #fff1df;
  color: var(--wine);
  padding: 10px 20px;
  border-radius: 4px;
}

.section {
  margin: 50px 0;
}

.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid #dec1b6;
  padding-bottom: 28px;
}

.feature img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
  margin-top: 28px;
}

.tile {
  display: grid;
  grid-template-columns: 42% 1fr;
  background: #f8e5dc;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.tile p {
  font-size: 14px;
}

.tag {
  color: #922c46;
  font-size: 13px;
  font-weight: bold;
}

.method {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  padding: 28px;
  background: var(--rose);
}

.reading {
  max-width: 780px;
  margin: 35px auto 60px;
}

.reading figure {
  margin: 22px 0;
}

.reading figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

figcaption {
  font-size: 13px;
  color: #75545a;
}

.reading section {
  margin: 32px 0;
}

footer {
  background: var(--wine);
  color: #fff4ea;
  padding: 32px 0;
}

footer a {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: white;
  padding: 8px;
}

.skip:focus {
  top: 0;
}

@media (max-width: 700px) {
  .hero, .feature, .deck, .method {
    grid-template-columns: 1fr;
  }
  .hero {
    border-radius: 8px;
  }
  .hero img {
    max-height: 330px;
  }
  .mast {
    align-items: flex-start;
  }
  nav {
    gap: 12px;
  }
  .tile {
    grid-template-columns: 38% 1fr;
  }
}

/* Navigation and narrow-screen readability */
nav a[aria-current="page"] {
  color: var(--wine);
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-copy, .feature > div, .tile > div, .method > article {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand img {
  height: auto;
  flex-shrink: 0;
}

.hero img {
  min-height: 0;
  aspect-ratio: 1;
}

@media (max-width: 480px) {
  .tile {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tile img {
    aspect-ratio: 4/3;
  }
  .method {
    padding: 18px;
  }
  .section {
    margin: 32px 0;
  }
  .hero-copy {
    padding: 24px;
  }
  nav {
    gap: 10px 16px;
  }
}
