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

:root {
  --paper: #fafaf8;
  --graph: #4a4a4a;
  --ink: #1a1a1a;
  --line: rgba(26, 26, 26, .34);
  --faint: rgba(26, 26, 26, .1);
  --sheet: rgba(255, 255, 255, .56);
  --deck: #f2f1ec;
  --max: 1150px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  letter-spacing: .01em;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .26;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -.01em; }

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

main { padding: 0 clamp(12px, 3vw, 30px); }

.leaf {
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 56px;
}

.slab {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
}

@media (min-width: 900px) {
  .slab { grid-template-columns: 238px minmax(0, 1fr); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  grid-column: 1 / -1;
  min-height: 70vh;
  padding: clamp(34px, 8vw, 78px) clamp(10px, 3vw, 28px) clamp(30px, 6vw, 58px);
  text-align: center;
  border-bottom: 1.5px solid var(--ink);
  background-image: radial-gradient(circle, rgba(26, 26, 26, .17) 1px, transparent 1px);
  background-size: 23px 23px;
  background-position: center;
}

.collage {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 4px;
}

.collage img {
  width: min(33vw, 164px);
  height: auto;
  border: 1.5px solid var(--ink);
  background: #fff;
  padding: 5px;
  box-shadow: 4px 4px 0 rgba(26, 26, 26, .16);
  filter: grayscale(1) contrast(1.08);
}

.collage .shot--a { transform: rotate(-4deg) translate(9px, 4px); }
.collage .shot--b { transform: rotate(3.4deg) translate(-11px, -6px); }

.eyebrow {
  margin: 0;
  font-size: 16px;
  letter-spacing: .3em;
  color: var(--graph);
  padding-left: .3em;
}

.hero h1 {
  max-width: 19ch;
  font-size: clamp(28px, 6.4vw, 54px);
  line-height: 1.14;
  letter-spacing: -.02em;
  transform: rotate(-.7deg);
  text-shadow: 1px 1px 0 rgba(26, 26, 26, .12);
}

/* ---------- rail ---------- */
.rail {
  position: relative;
  align-self: start;
  padding: 20px 15px 16px;
  background: var(--sheet);
  border: 1.5px solid var(--line);
  box-shadow: 3px 3px 0 var(--faint);
}

.rail::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 26px;
  width: 66px;
  height: 17px;
  background: rgba(74, 74, 74, .13);
  border: 1px solid rgba(74, 74, 74, .22);
  transform: rotate(-2.5deg);
}

@media (min-width: 900px) {
  .rail { position: sticky; top: 22px; }
}

.rail h2 {
  font-size: 21px;
  letter-spacing: .22em;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}

.subtitle {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--graph);
}

.rail__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.rail__list li a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 6px;
  border-top: 1px dashed var(--line);
  text-decoration: none;
  font-size: 16px;
  transition: transform .18s steps(3), background .18s steps(3);
}

.rail__list li a i {
  font-style: normal;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--graph);
  letter-spacing: .06em;
}

.rail__list li a:hover { transform: translateX(3px); }

/* ---------- prose ---------- */
.prose {
  min-width: 0;
}

.prose section {
  position: relative;
  margin: 0 0 clamp(22px, 3vw, 32px);
  padding: clamp(18px, 3vw, 32px);
  background: var(--sheet);
  border: 1.5px solid var(--line);
  box-shadow: 4px 4px 0 var(--faint);
  scroll-margin-top: 26px;
  scroll-margin-bottom: 110px;
  backdrop-filter: blur(5px);
}

.prose section::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 26px;
  width: 54px;
  height: 15px;
  background: rgba(74, 74, 74, .12);
  border: 1px solid rgba(74, 74, 74, .2);
  transform: rotate(1.8deg);
}

.prose div:nth-of-type(even)::before { left: 22px; right: auto; transform: rotate(-1.6deg); }

.prose h2 {
  font-size: clamp(22px, 3.1vw, 31px);
  padding-bottom: 11px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.prose h3 {
  font-size: clamp(19px, 2.3vw, 22px);
  margin: 22px 0 8px;
  color: #222;
}

.prose p { margin: .85em 0; }

.prose ul,
.prose ol { margin: .85em 0; padding-left: 1.3em; }

.prose li { margin: .4em 0; }

.prose blockquote {
  margin: 1.1em 0;
  padding: 10px 0 10px 16px;
  border-left: 3px solid var(--graph);
  color: var(--graph);
  font-style: normal;
}

.prose figure { margin: 1.1em 0; }

.prose img {
  border: 1.5px solid var(--ink);
  padding: 4px;
  background: #fff;
}

.prose strong { font-weight: 600; }

.flash {
  outline: 2px dashed var(--ink);
  outline-offset: 5px;
  animation: flash .42s steps(3) 2;
}

@keyframes flash {
  from { background: rgba(26, 26, 26, .1); }
  to { background: var(--sheet); }
}

/* ---------- footer ---------- */
.foot {
  margin-top: 44px;
  padding: clamp(26px, 4vw, 46px) clamp(12px, 3vw, 30px) 126px;
  border-top: 1.5px solid var(--ink);
  background: var(--deck);
}

.foot__top,
.foot__cols,
.foot__base {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.foot__top {
  display: grid;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}

@media (min-width: 760px) {
  .foot__top { grid-template-columns: 1fr 1fr; align-items: end; }
}

.foot__brand {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .06em;
  transform: rotate(-.8deg);
}

.sub,
.find { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }

.sub input,
.find input {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.sub button,
.find button {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background .16s steps(2), color .16s steps(2);
}

.sub button:hover,
.find button:hover { background: var(--paper); color: var(--ink); }

.foot__cols {
  display: grid;
  gap: 22px;
  padding: 22px 0;
}

@media (min-width: 700px) {
  .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.foot__cols dl { margin: 0; }

.foot__cols dt {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--graph);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--faint);
}

.foot__cols dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.foot__cols dd a {
  display: block;
  padding: 9px 0;
  text-decoration: none;
  border-bottom: 1px dashed var(--faint);
}

.foot__cols dd.host { word-break: break-all; padding-top: 9px; color: var(--graph); }

.foot__base {
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: 16px;
  color: var(--graph);
  letter-spacing: .04em;
}

/* ---------- dock ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px clamp(10px, 3vw, 24px);
  background: rgba(250, 250, 248, .95);
  border-top: 1.5px solid var(--ink);
  backdrop-filter: blur(8px);
}

.dock__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  max-width: 56vw;
}

.dock__brand span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dock__brand .mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  background: #fff;
  transform: rotate(-3deg);
}

.mark--flat {
  display: block;
  background-image: radial-gradient(circle, var(--ink) 1.4px, transparent 1.5px);
  background-size: 7px 7px;
}

.dock__pop { position: relative; }

.dock__pop > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  list-style: none;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: #fff;
  font-size: 16px;
  letter-spacing: .12em;
  transition: background .16s steps(2), color .16s steps(2);
}

.dock__pop > summary::-webkit-details-marker { display: none; }
.dock__pop > summary:hover { background: var(--ink); color: var(--paper); }

.bars {
  display: block;
  width: 15px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.dock__pop[open] > summary { background: var(--ink); color: var(--paper); }

.dock__sheet {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  width: min(92vw, 400px);
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(26, 26, 26, .18);
}

.find { margin-bottom: 12px; }

.dock__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dock__list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 6px;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  font-size: 16px;
}

.dock__list li:last-child a { border-bottom: 0; }

.tick {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--graph);
}

.dock__pop[open] .dock__list li { animation: rise .26s steps(4) both; }
.dock__pop[open] .dock__list li:nth-child(2) { animation-delay: .03s; }
.dock__pop[open] .dock__list li:nth-child(3) { animation-delay: .06s; }
.dock__pop[open] .dock__list li:nth-child(4) { animation-delay: .09s; }
.dock__pop[open] .dock__list li:nth-child(5) { animation-delay: .12s; }
.dock__pop[open] .dock__list li:nth-child(6) { animation-delay: .15s; }
.dock__pop[open] .dock__list li:nth-child(7) { animation-delay: .18s; }

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

@media (max-width: 420px) {
  .hero { min-height: 62vh; }
  .collage img { width: 38vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
}

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