@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@400;500;600;700&family=Public+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --ash: #f3f3f1;
  --soft: #fafaf8;
  --line: #d7d7d3;
  --mute: #86868a;
  --display: "Libre Bodoni", "Songti SC", "Noto Serif SC", Georgia, serif;
  --text: "Public Sans", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  --bar: 56px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: .002em;
}

a { color: inherit; transition: background-color .18s ease, color .18s ease, padding-left .18s ease; }
img { max-width: 100%; }
p { margin: 0 0 1.1em; }
menu { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.jump {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  text-decoration: none;
}
.jump:focus { left: 8px; top: 8px; }

/* ---------- masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .01em;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.pick { position: relative; }

.pick__sum {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-size: 16px;
  letter-spacing: .12em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.pick__sum::-webkit-details-marker { display: none; }
.pick__sum::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.pick[open] .pick__sum { background: var(--ink); color: var(--paper); }

.pick__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 220px;
  padding: 6px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .12);
}

.pick__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.pick__link:last-child { border-bottom: 0; }
.pick__link:hover { background: var(--ink); color: var(--paper); }

/* ---------- sticky anchor bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0 var(--pad);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.bar__id {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  padding: 6px 12px 6px 0;
  border-right: 1px solid var(--line);
}
.bar__id small {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .18em;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bar__id h2 {
  margin: 0;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.5;
}

.bar__menu {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bar__menu::-webkit-scrollbar { display: none; }

.bar__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  border-left: 1px solid var(--line);
}
.bar__link:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad) var(--pad) 56px;
  align-content: start;
  border-bottom: 2px solid var(--ink);
  background-image: radial-gradient(rgba(0, 0, 0, .14) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: -1px -1px;
}

.hero__copy { grid-column: 1 / 9; grid-row: 1; }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -.015em;
}

.hero__aside {
  grid-column: 10 / 13;
  grid-row: 1;
  align-self: start;
  border-left: 2px solid var(--ink);
  padding-left: 16px;
}

.rail { display: block; }

.rail__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.rail__link:hover { padding-left: 8px; background: var(--ink); color: var(--paper); }

.hero__fig {
  grid-row: 2;
  margin: 0;
  min-height: clamp(160px, 26vh, 320px);
  border-radius: 4px;
  border-bottom: 4px solid var(--ink);
  background: var(--ash);
  overflow: hidden;
}
.hero__fig:empty {
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, .09) 0 1px, transparent 1px 12px);
}
.hero__fig--a { grid-column: 1 / 5; }
.hero__fig--b { grid-column: 7 / 12; transform: translateY(-18px); }

.hero__fig .shot {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- content sections ---------- */
main > article[id] {
  padding: 56px var(--pad) 64px;
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: calc(var(--bar) + 16px);
}
main > article[id]:nth-of-type(even) { background: var(--soft); }

main > article[id] > * {
  max-width: 66ch;
  animation: rise .55s cubic-bezier(.2, .7, .3, 1) both;
}
main > article[id] > *:nth-child(1) { animation-delay: .02s; }
main > article[id] > *:nth-child(2) { animation-delay: .06s; }
main > article[id] > *:nth-child(3) { animation-delay: .1s; }
main > article[id] > *:nth-child(4) { animation-delay: .14s; }
main > article[id] > *:nth-child(5) { animation-delay: .18s; }
main > article[id] > *:nth-child(n+6) { animation-delay: .22s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

main > article[id] h2,
main > article[id] h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.14;
  margin: 0 0 18px;
}
main > article[id] h2 { font-size: clamp(26px, 4.4vw, 46px); }
main > article[id] h3 { font-size: clamp(21px, 3vw, 30px); }

main > article[id] h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 16px;
  background: var(--ink);
}

main > article[id] p,
main > article[id] li { font-size: 17px; line-height: 1.75; }

main > article[id] ul,
main > article[id] ol { padding-left: 1.2em; margin: 0 0 1.1em; }
main > article[id] li { margin-bottom: .5em; }

main > article[id] a { text-decoration: underline; text-underline-offset: 3px; }
main > article[id] a:hover { background: var(--ink); color: var(--paper); }

main > article[id] img {
  border-radius: 4px;
  border-bottom: 4px solid var(--ink);
}

main > article[id] blockquote {
  margin: 0 0 1.1em;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--ink);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.5;
}

main > article[id] figure { margin: 0 0 1.1em; }

/* ---------- footer ---------- */
.foot {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px 48px;
  padding: 56px var(--pad) 0;
  background: var(--ink);
  color: var(--paper);
}

.foot article { min-width: 0; }

.foot small {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  color: #9d9d9a;
  margin-bottom: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.foot__desc {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.7;
  color: #cfcfcc;
}

.foot__menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.foot__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 16px;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid #2b2b2b;
}
.foot__link:hover { background: var(--paper); color: var(--ink); padding-left: 8px; }

.foot__cta {
  grid-column: 1 / -1;
  padding-top: 32px;
  border-top: 1px solid #2b2b2b;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  padding: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(30px, 5.5vw, 60px);
  line-height: 1.1;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 3px solid var(--paper);
}
.cta:hover { color: var(--ink); background: var(--paper); padding-left: 14px; }
.cta__arrow { font-family: var(--text); font-size: .6em; }

.foot__legal {
  grid-column: 1 / -1;
  padding: 16px 0 28px;
  border-top: 1px solid #2b2b2b;
}
.foot__legal p { margin: 0; font-size: 13px; letter-spacing: .1em; color: #9d9d9a; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto auto;
    padding-bottom: 40px;
  }
  .hero__copy { grid-column: 1 / 7; grid-row: 1; }
  .hero__fig--a { grid-column: 1 / 4; grid-row: 2; transform: none; }
  .hero__fig--b { grid-column: 4 / 7; grid-row: 2; transform: translateY(16px); }
  .hero__aside {
    grid-column: 1 / 7;
    grid-row: 3;
    margin-top: 40px;
    padding-left: 14px;
    border-left: 2px solid var(--ink);
  }
  .rail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .foot { grid-template-columns: 1fr; }
  .foot__menu { grid-template-columns: 1fr; }
  .foot__cta,
  .foot__legal { grid-column: 1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand { font-size: 19px; }
  .bar__id { display: none; }
  .bar { padding: 0 12px; }
  .bar__link { padding: 0 12px; font-size: 16px; }
  .pick__menu { min-width: 78vw; }
  main > article[id] { padding: 44px var(--pad) 52px; }
  .foot { padding-top: 44px; }
  .cta { min-height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001s !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
  main > article[id] > * { opacity: 1; transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
