@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --radius: 18px;
  --gutter: clamp(1.15rem, 5vw, 4.5rem);
  --hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
  --sans: 'Quicksand', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

*,
*::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(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1rem; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem var(--gutter);
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.mast-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.docks { padding: 0.55rem var(--gutter) 0.65rem; }

.dock-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.1rem 0 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-list::-webkit-scrollbar { display: none; }
.dock-list li { flex: 0 0 auto; }
.dock-list li:last-child { margin-left: auto; }

.dock-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dock-link:hover,
.dock-link:focus-visible { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

.dock-cta { background: var(--ink); color: var(--paper); }
.dock-cta:hover,
.dock-cta:focus-visible { background: var(--paper); color: var(--ink); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 2.4rem;
  padding: clamp(2.4rem, 9vw, 6.5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
  scroll-margin-top: 124px;
}

.hero-copy { text-align: center; }

.hero-badge {
  display: inline-block;
  font-family: var(--hand);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.05rem 1.1rem 0.25rem;
  transform: rotate(-3deg);
  margin-bottom: 1.3rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 8.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  word-break: break-word;
}

.hero-lede {
  max-width: 36ch;
  margin: 1.5rem auto 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #101010;
}

.hero-figure {
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f2f2f2;
}

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

.rail {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
}

.rail-kicker {
  display: block;
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.rail-title {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rail-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible { background: var(--ink); color: var(--paper); }

main > div:not(.hero) {
  max-width: 66ch;
  margin: 0 auto;
  padding: clamp(2.6rem, 7vw, 5.5rem) var(--gutter);
  border-top: 2px solid var(--ink);
  scroll-margin-top: 128px;
}

main h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.95rem, 5.6vw, 3.5rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.045em;
}

main h3 {
  margin: 2.2rem 0 0.6rem;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

main > div small {
  display: block;
  font-family: var(--hand);
  font-size: 1.4rem;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

main ul,
main ol { padding-left: 1.25rem; margin: 0 0 1.2rem; }
main li { margin-bottom: 0.45rem; }

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

main figure {
  margin: 2rem 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

main figure img { width: 100%; }

main blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.15rem;
  border-left: 6px solid var(--ink);
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1.4;
}

main blockquote p { margin: 0 0 0.5rem; }

main table { width: 100%; border-collapse: collapse; font-size: 16px; }
main th,
main td { border: 1.5px solid var(--ink); padding: 0.6rem 0.75rem; text-align: left; }

.foot {
  border-top: 2px solid var(--ink);
  margin-top: 1rem;
  padding: 1.1rem var(--gutter) 2.2rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.4rem;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.foot-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot-nav a:hover,
.foot-nav a:focus-visible { border-color: var(--ink); }

.foot-copy {
  margin: 0;
  font-size: 16px;
  opacity: 0.72;
}

@media (prefers-reduced-motion: no-preference) {
  .js-on main > div {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js-on main > div.in { opacity: 1; transform: none; }
}

@media (min-width: 940px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 250px;
    column-gap: 3rem;
    align-content: start;
    padding-top: clamp(3rem, 7vw, 6rem);
  }
  .hero-copy { grid-column: 1 / -1; }
  .hero-figure { grid-column: 1; }
  .rail {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    position: sticky;
    top: 138px;
  }
  .hero-lede { font-size: 1.1rem; }
}

@media (max-width: 620px) {
  .mast-brand { font-size: 1rem; }
  .hero { min-height: auto; padding-top: clamp(2rem, 8vw, 3rem); }
  h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero-badge { transform: rotate(-2deg); }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-nav ol { gap: 0.1rem 0.75rem; }
}

@media (max-width: 380px) {
  body { font-size: 16px; }
  .dock-link { padding: 0.35rem 0.85rem; }
}

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