*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #f4efe6;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  background-color: #0e0c09;
  background-image:
    radial-gradient(ellipse 72% 48% at 100% -8%, rgba(201, 164, 90, 0.16), transparent 52%),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(224, 201, 138, 0.04) 32px);
  color-scheme: dark;
}

img {
  display: block;
  image-rendering: pixelated;
}

a {
  color: #f0e2b8;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #f0e2b8;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  width: 160px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0c98a;
  color: #1a140b;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

.folio {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 8px 72px;
  box-shadow:
    inset 1px 0 0 rgba(224, 201, 138, 0.28),
    inset -1px 0 0 rgba(224, 201, 138, 0.28);
}

.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #0e0c09;
  border-bottom: 1px solid rgba(224, 201, 138, 0.22);
}

.brand {
  height: 48px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f7f1e6;
  text-decoration: none;
  flex: 0 1 auto;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand span {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: 0.12em;
  font-size: 0.98rem;
}

.nav-toggle {
  display: none;
  width: 88px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(224, 201, 138, 0.55);
  background: #16130e;
  color: #f0e2b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(224, 201, 138, 0.15);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  position: relative;
  color: #f4efe6;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 1px;
  background: #e0c98a;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.quire {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 0.5rem;
  padding-top: 3.4rem;
}

.mark {
  margin: 0.35rem 0 0;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: #e0c98a;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: #e0c98a;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  margin: 0 0 1rem;
  max-width: 11ch;
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 0.85rem;
  max-width: 20ch;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

h3 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.28rem;
}

.lede,
.snap,
.quire-body p,
.steps,
.spec-list {
  max-width: 68ch;
}

.lede,
.snap {
  margin: 0 0 0.85rem;
  color: #f7f1e6;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.72fr);
  gap: 2.2rem;
  align-items: start;
}

.act {
  width: 236px;
  height: 52px;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1a140b;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(115deg, #f3e6c0 0%, #c6a15b 48%, #8d6a2e 130%);
  background-size: 180% 100%;
  background-position: 0% 50%;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 248, 230, 0.55);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background-position 0.55s ease, box-shadow 0.55s ease;
}

.act:hover,
.act:focus-visible {
  background-position: 100% 50%;
  color: #1a140b;
  box-shadow:
    0 16px 34px rgba(198, 161, 91, 0.28),
    inset 0 0 0 1px rgba(255, 248, 230, 0.4);
}

.slip {
  min-height: 320px;
  padding: 1.15rem 1.2rem 1.2rem 1.35rem;
  background:
    linear-gradient(#17140f, #17140f) padding-box,
    linear-gradient(155deg, #f0e2b8, #8d6a2e 42%, #f0e2b8 78%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  position: relative;
}

.slip::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  border-left: 1px dashed rgba(224, 201, 138, 0.5);
}

.seal {
  width: 64px;
  height: 64px;
  margin-bottom: 0.8rem;
}

.slip-kicker {
  margin: 0 0 0.8rem;
  color: #e0c98a;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.slip-row {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(224, 201, 138, 0.18);
  font-size: 0.95rem;
}

.slip-row dt {
  margin: 0;
  color: #cbbfaa;
}

.slip-row dd {
  margin: 0;
}

.age {
  width: 48px;
  height: 48px;
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0c98a;
  color: #e0c98a;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.steps,
.spec-list {
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
}

.steps li,
.spec-list li {
  min-height: 48px;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(224, 201, 138, 0.2);
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: #e0c98a;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  padding-top: 0.12rem;
}

.spec-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.5rem;
  background: #c6a15b;
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.15);
}

.qa {
  max-width: 68ch;
  padding: 0.95rem 0 0.85rem 1rem;
  border-top: 1px solid rgba(224, 201, 138, 0.22);
  border-left: 2px solid #c6a15b;
}

.qa h3 {
  margin: 0 0 0.4rem;
}

.qa p {
  margin: 0;
}

.panel {
  margin-top: 0.4rem;
  padding: 1.1rem 1.15rem 0.4rem;
  background: #14110d;
  border-left: 3px solid #c6a15b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.colophon {
  margin-top: 3.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(224, 201, 138, 0.32);
}

.colophon-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.4rem 2rem;
}

.colophon p {
  margin: 0 0 0.45rem;
  color: #ddd2c2;
}

.colophon nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.colophon a {
  color: #f0e2b8;
}

.quiet {
  margin-top: 1rem;
  color: #cbbfaa;
  font-size: 0.92rem;
}

@media (max-width: 879px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 0.4rem 1.1rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    background: #16130e;
    border-bottom: 1px solid rgba(224, 201, 138, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  }

  .site-nav.is-open {
    display: flex;
  }

  .mast {
    position: sticky;
  }
}

@media (max-width: 800px) {
  .hero,
  .colophon-grid {
    grid-template-columns: 1fr;
  }

  .slip {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .folio {
    width: min(100% - 20px, 1120px);
    box-shadow: none;
  }

  .brand span {
    letter-spacing: 0.04em;
    font-size: 0.88rem;
  }

  .nav-toggle {
    width: 72px;
    flex: 0 0 72px;
  }

  .quire {
    grid-template-columns: 1fr;
    row-gap: 0.15rem;
  }

  h1 {
    max-width: 12ch;
  }

  .act {
    width: 100%;
    max-width: 236px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .act,
  .site-nav a::after {
    transition: none;
  }
}
