:root {
  color-scheme: light;
  --ink: #191715;
  --paper: #f2ede2;
  --line: rgba(25, 23, 21, 0.2);
  --muted: #625e58;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.75), transparent 30rem),
    linear-gradient(120deg, rgba(116, 96, 67, .035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 11px 11px, auto;
  font-family: Georgia, "Noto Serif", "Songti SC", serif;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 112px) 0 48px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  column-gap: clamp(36px, 9vw, 130px);
  align-items: end;
  padding-bottom: clamp(44px, 8vw, 92px);
  border-bottom: 1px solid var(--ink);
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 22px;
  font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 9.5vw, 138px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.065em;
}

.intro {
  margin: 0 0 14px;
  color: var(--muted);
  font: 16px/1.6 ui-sans-serif, system-ui, sans-serif;
}

.intro.zh { margin-top: 20px; }

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-bottom: 1px solid var(--ink);
}

.atlas-card {
  position: relative;
  min-height: 500px;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: background-color .25s ease, color .25s ease;
}

.atlas-card:nth-child(1) { grid-column: span 5; border-right: 1px solid var(--line); }
.atlas-card:nth-child(2) { grid-column: span 4; border-right: 1px solid var(--line); }
.atlas-card:nth-child(3) { grid-column: span 3; }

.atlas-card.salt:hover,
.atlas-card.salt:focus-visible { background: #2f687c; color: #fff; }
.atlas-card.paper:hover,
.atlas-card.paper:focus-visible { background: #9b4d35; color: #fff; }

.index {
  display: block;
  margin-bottom: 142px;
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.atlas-card h2 {
  position: relative;
  margin: 0;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
}

.local-name {
  position: relative;
  margin: 10px 0 28px;
  font-size: 17px;
}

.atlas-card > p:not(.local-name) {
  position: relative;
  max-width: 36ch;
  font: 14px/1.6 ui-sans-serif, system-ui, sans-serif;
}

.action {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  padding-top: 13px;
  border-top: 1px solid currentColor;
  font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.material-mark {
  position: absolute;
  top: 80px;
  right: -16px;
  width: 170px;
  height: 170px;
  opacity: .48;
  transition: transform .35s ease;
}

.atlas-card:hover .material-mark { transform: rotate(7deg) scale(1.06); }

.salt-mark {
  border-radius: 56% 44% 62% 38%;
  background:
    linear-gradient(140deg, transparent 45%, rgba(255,255,255,.75) 46% 50%, transparent 51%),
    #8db4c0;
  transform: rotate(18deg);
}

.paper-mark {
  border: 1px solid currentColor;
  background:
    repeating-linear-gradient(7deg, transparent 0 11px, rgba(130,71,47,.35) 12px 13px),
    rgba(255,255,255,.45);
  transform: rotate(-8deg);
}

.pigment-mark {
  border-radius: 50%;
  background: conic-gradient(#b94f35, #c49a3a, #366c64, #4f526e, #b94f35);
  filter: saturate(.65);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  color: var(--muted);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

footer p { margin: 0; }

@media (max-width: 820px) {
  main { width: min(100% - 24px, 620px); padding-top: 30px; }
  .masthead { grid-template-columns: 1fr; }
  .eyebrow { grid-column: 1; }
  h1 { margin-bottom: 34px; }
  .atlas-grid { display: block; }
  .atlas-card {
    display: block;
    min-height: 430px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }
  footer { display: block; }
  footer p + p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
