:root {
  --ink: #182b32;
  --paper: #f5f3ec;
  --muted: #58666a;
  --line: #d7dcd6;
  --amber: #edb778;
  --white: #fffefa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

a,
button,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #ad671d;
  outline-offset: 5px;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(46px, 5.9vw, 86px);
}

h2 {
  font-size: clamp(32px, 3.5vw, 49px);
}

h3 {
  font-size: 23px;
}

p {
  color: var(--muted);
}

.wrap {
  width: min(1280px, calc(100% - 88px));
  margin: auto;
}

.section {
  padding: 90px 0;
}

.eyebrow {
  font: 11px / 1.5 monospace;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 24px;
}

.lede {
  font-size: 18px;
  max-width: 580px;
  line-height: 1.8;
}

.brand {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 600;
  white-space: nowrap;
}

.brand b {
  font-family: monospace;
  color: #a86c36;
  margin-right: 8px;
}

.brand span {
  font-size: 11px;
  vertical-align: top;
  margin-left: 3px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 95px;
  gap: 28px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.nav a:hover {
  color: #9b5b22;
}

.nav-cta {
  border: 1px solid #aeb8b6;
  padding: 10px 17px;
  border-radius: 4px;
}

.menu-toggle {
  display: none;
}

.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 10px;
  z-index: 10;
}

.skip:focus {
  top: 10px;
}

.hero {
  padding: 34px 0 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 25px;
}

.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #936131;
}

.hero .lede {
  max-width: 490px;
  font-size: 17px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b77a41;
  margin-right: 8px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 29px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--ink);
  color: var(--white);
  padding: 15px 24px;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.2s, transform 0.2s;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.button:hover {
  background: #36505a;
  transform: translateY(-2px);
}

.button.outline {
  color: var(--ink);
  background: transparent;
}

.button.outline:hover {
  background: #e5e8e1;
}

.text-link {
  font-size: 13px;
  border-bottom: 1px solid #99a5a3;
  padding-bottom: 5px;
}

.hero-notes {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font: 10px monospace;
  color: var(--muted);
  margin-top: 38px;
}

.hero-art {
  height: 530px;
  position: relative;
  border-radius: 9px;
  background: #142931;
  overflow: hidden;
}

.hero-art > img {
  width: 100%;
  height: 100%;
  animation: drift 9s ease-in-out infinite alternate;
}

.code-float {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 43px;
  background: #172b32ed;
  border: 1px solid #6b7a79;
  border-radius: 7px;
  color: #d6e0dc;
  box-shadow: 0 20px 50px #0004;
  font: 11px / 1.8 monospace;
  animation: float 6s ease-in-out infinite;
}

.code-label {
  padding: 10px 15px;
  border-bottom: 1px solid #536366;
  display: block;
  color: #bac8c5;
  font-size: 10px;
}

.code-label i {
  float: right;
  letter-spacing: 4px;
  font-style: normal;
  font-size: 7px;
}

.code-float code {
  display: block;
  padding: 15px;
}

.code-float code span {
  color: #e8b474;
}

.code-float b {
  color: #acd0c4;
  font-weight: 400;
}

.terminal {
  border-top: 1px solid #536366;
  padding: 8px 15px;
  color: #abcabd;
}

.cursor {
  animation: blink 1s steps(2, start) infinite;
}

.art-label {
  position: absolute;
  bottom: 13px;
  left: 25px;
  color: #bac8c5;
  font: 9px monospace;
  letter-spacing: 1px;
}

.ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ribbon .wrap {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  gap: 15px;
  font: 10px monospace;
  letter-spacing: 2px;
}

.who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  border-bottom: 1px solid var(--line);
}

.who p {
  max-width: 580px;
}

.who > div:last-child {
  padding-top: 35px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 35px;
  gap: 25px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading > p {
  font-size: 14px;
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 25px;
}

.card {
  min-width: 0;
}

.cover {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #ddd;
}

.cover img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  transition: transform 0.45s;
}

.cover:hover img {
  transform: scale(1.045);
}

.cover-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #f8f6f0e8;
  padding: 4px 10px;
  border-radius: 3px;
  font: 9px / 1.6 monospace;
  letter-spacing: 1px;
}

.cover-num {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: white;
  font: 12px monospace;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-top: 18px;
}

.card-top h3 {
  font-size: 23px;
  margin: 0;
}

.price {
  font-size: 14px;
  white-space: nowrap;
}

.card p {
  font-size: 13px;
  margin: 8px 0;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font: 10px monospace;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 14px;
}

.center {
  text-align: center;
  margin-top: 42px;
}

.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e5e8de;
  border-radius: 6px;
  overflow: hidden;
}

.mission-image {
  position: relative;
  min-height: 460px;
}

.mission-image img {
  width: 100%;
  height: 100%;
  position: absolute;
}

.mission-image span {
  position: absolute;
  bottom: 20px;
  left: 24px;
  background: #f5f3ecdd;
  padding: 8px 12px;
  font: 9px monospace;
  letter-spacing: 2px;
}

.mission-copy {
  padding: 60px 52px;
}

.mission-copy p:last-child {
  font-size: 15px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  margin-top: 45px;
}

.benefits h3 {
  font-size: 21px;
  letter-spacing: -0.6px;
  margin: 20px 0 12px;
}

.benefits p {
  font-size: 14px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a9b5ae;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font: 21px monospace;
}

.free-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 7px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: center;
}

.free-band h2 {
  font-size: 43px;
}

.free-band p {
  color: #c2ceca;
  max-width: 590px;
}

.free-band .button {
  background: var(--amber);
  color: var(--ink);
  margin-top: 10px;
}

.free-mark {
  font: 130px Georgia, serif;
  color: var(--amber);
  text-align: center;
  white-space: nowrap;
}

.free-mark span {
  font: 35px monospace;
  vertical-align: middle;
}

.faq-home {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 85px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  list-style: none;
  cursor: pointer;
  padding-right: 35px;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
}

summary::-webkit-details-marker {
  display: none;
}

summary:after {
  content: '+';
  position: absolute;
  right: 5px;
  font-size: 21px;
  font-weight: 400;
}

details[open] summary:after {
  content: '−';
}

details p {
  margin: 18px 35px 3px 0;
  font-size: 14px;
}

footer {
  background: #e8ebe4;
  margin-top: 20px;
  padding: 55px 0 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #cbd1c9;
  padding-bottom: 28px;
  margin-bottom: 35px;
}

.footer-brand p {
  margin: 0;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 80px;
}

.footer-grid h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 18px;
}

.footer-grid h3 {
  font-size: 13px;
  letter-spacing: 0;
  margin: 23px 0 8px;
}

.footer-grid a {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-grid p {
  font-size: 12px;
  margin: 0 0 6px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  margin: 0;
  border: 1px solid #a9b5ae;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.social-links a:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
}

.social-links svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #cbd1c9;
  padding-top: 20px;
  margin-top: 35px;
  font: 10px monospace;
  color: var(--muted);
}

.page-intro {
  padding: 70px 0 45px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  max-width: 920px;
  font-size: clamp(43px, 5.2vw, 72px);
}

.page-intro .lede {
  max-width: 710px;
}

.catalog-tools {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: -30px 0 35px;
  font-size: 13px;
  flex-wrap: wrap;
}

select {
  background: transparent;
  padding: 9px 15px;
  border: 1px solid #a5b1aa;
  border-radius: 3px;
}

.editorial {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 90px;
  padding: 65px 0 90px;
}

.editorial h2 {
  font-size: 29px;
  margin: 35px 0 20px;
}

.editorial h2:first-child {
  margin-top: 0;
}

.note {
  align-self: start;
  background: #e6e9e0;
  padding: 35px;
  border-radius: 5px;
}

.note h3 {
  line-height: 1.7;
  font-size: 27px;
}

.note a {
  display: block;
  margin: 17px 0;
  font-size: 14px;
}

.contact-card p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.update {
  padding: 0 0 35px;
  margin-bottom: 35px;
  border-bottom: 1px solid var(--line);
}

.faq-list {
  max-width: 850px;
  padding: 40px 0 90px;
}

.policy {
  max-width: 850px;
  padding: 40px 0 80px;
}

.policy section {
  margin-bottom: 35px;
}

.policy h2 {
  font-size: 27px;
}

.policy p {
  font-size: 16px;
}

.policy-contact {
  padding: 25px;
  border: 1px solid var(--line);
}

.policy a {
  text-decoration: underline;
}

.product-view {
  padding: 40px 0 90px;
}

.breadcrumbs {
  font-size: 12px;
  margin-bottom: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.product-cover {
  position: sticky;
  top: 30px;
  align-self: start;
}

.product-cover img {
  width: 100%;
  border-radius: 6px;
}

.product-view h1 {
  font-size: clamp(40px, 4.5vw, 66px);
  margin-bottom: 15px;
}

.product-view h2 {
  font-size: 27px;
  margin-top: 35px;
}

.product-view .tagline {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 24px;
}

.product-price {
  font-size: 29px;
  margin: 20px 0 4px;
}

.product-meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.pill {
  font: 10px monospace;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 3px;
}

.buy-box {
  padding: 23px;
  background: #e7e9e1;
  border-radius: 5px;
  margin-top: 25px;
}

.buy-box .button {
  width: 100%;
  justify-content: center;
}

.buy-box p {
  font-size: 12px;
  margin: 13px 0 0;
}

.buy-box a:not(.button) {
  text-decoration: underline;
}

.modules {
  list-style: none;
  padding: 0;
  counter-reset: module;
}

.modules li {
  counter-increment: module;
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 14px;
}

.modules li:before {
  content: counter(module, decimal-leading-zero);
  font: 12px monospace;
  color: #9a6837;
  line-height: 2;
}

.curriculum-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.curriculum-row > span {
  font: 22px monospace;
  color: #986b3a;
}

.curriculum-row h2 {
  font-size: 28px;
}

.curriculum-row ul {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.checkout {
  padding: 85px 0;
  min-height: 60vh;
}

.checkout-box {
  max-width: 640px;
  margin: auto;
  text-align: center;
  background: #e8ebe2;
  border-radius: 8px;
  padding: 50px 35px;
}

.checkout h1 {
  font-size: 37px;
}

.checkout .button {
  margin: 10px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #bcc5bd;
  border-top-color: #a86d34;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 25px;
}

.notice {
  padding: 25px;
  border: 1px solid var(--line);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes drift {
  to {
    transform: scale(1.07);
  }
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@media (min-width: 1050px) {
  .collection .card:nth-child(4) {
    grid-column: 1 / 2;
  }

  .collection .cards {
    grid-template-columns: repeat(6, 1fr);
  }

  .collection .card {
    grid-column: span 2;
  }

  .collection .card:nth-child(4),
  .collection .card:nth-child(5) {
    grid-column: span 3;
  }

  .collection .card:nth-child(4) img,
  .collection .card:nth-child(5) img {
    aspect-ratio: 1.8;
  }
}

@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .nav nav {
    gap: 15px;
  }

  .brand {
    font-size: 22px;
  }

  .hero-grid {
    gap: 25px;
  }

  .hero-art {
    height: 470px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-notes {
    gap: 15px;
  }

  .who,
  .faq-home,
  .editorial {
    gap: 40px;
  }

  .mission-copy {
    padding: 35px;
  }

  .benefits {
    gap: 22px;
  }

  .footer-grid {
    gap: 35px;
  }

  .free-band {
    padding: 40px;
  }

  .free-mark {
    font-size: 100px;
  }

  .product-grid {
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .nav {
    min-height: 76px;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: 1px solid #b1bab3;
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav nav {
    display: none;
    width: 100%;
    padding: 18px 0;
    align-items: stretch;
    flex-direction: column;
  }

  .nav nav.open {
    display: flex;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero .lede {
    font-size: 16px;
  }

  .hero-art {
    height: 440px;
  }

  .hero-notes {
    margin-top: 25px;
  }

  .actions {
    gap: 20px;
  }

  .ribbon .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 8px;
    gap: 15px;
  }

  .section {
    padding: 58px 0;
  }

  .who,
  .mission,
  .faq-home,
  .editorial,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .who > div:last-child {
    padding-top: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 18px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 15px;
  }

  .card-top {
    display: block;
  }

  .card-top h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .card-meta {
    font-size: 9px;
    gap: 4px;
  }

  .cover-badge {
    left: 8px;
    top: 8px;
    font-size: 8px;
    padding: 3px 6px;
  }

  .mission-image {
    min-height: 290px;
  }

  .mission-copy {
    padding: 30px;
  }

  .benefits {
    grid-template-columns: 1fr 1fr;
  }

  .free-band {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .free-band h2 {
    font-size: 35px;
  }

  .free-mark {
    display: none;
  }

  .faq-home {
    gap: 20px;
  }

  .footer-brand {
    display: block;
  }

  .footer-brand p {
    margin-top: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-grid section:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    gap: 15px;
    flex-wrap: wrap;
  }

  .page-intro {
    padding-top: 45px;
  }

  .editorial {
    padding: 40px 0;
  }

  .curriculum-row {
    grid-template-columns: 35px 1fr;
    gap: 18px;
  }

  .curriculum-row ul {
    grid-column: 2;
  }

  .product-cover {
    position: static;
  }

  .product-cover img {
    max-height: 480px;
    object-fit: cover;
  }

  .product-view h1 {
    margin-top: 15px;
  }

  .checkout-box {
    padding: 35px 20px;
  }

  .checkout {
    padding: 40px 0;
  }

  .checkout h1 {
    font-size: 32px;
  }

  .faq-list {
    padding-bottom: 50px;
  }
}

@media (max-width: 390px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero-art {
    height: 370px;
  }

  .code-float {
    left: 12px;
    right: 12px;
    font-size: 9px;
  }

  .benefits {
    gap: 16px;
  }

  .free-band {
    padding: 25px;
  }

  .hero-notes {
    font-size: 9px;
  }

  .brand {
    font-size: 20px;
  }
}

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