:root {
  --paper: #f3efe6;
  --paper-2: #e7e0d2;
  --ink: #1c1916;
  --muted: #5c564e;
  --line: rgba(28, 25, 22, 0.14);
  --flag: #e23b2f;
  --flag-dark: #a32018;
  --green: #1e4a34;
  --white: #fbf8f2;
  --shadow: 0 20px 50px rgba(28, 25, 22, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: min(1360px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 430;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: #f3c2ba; color: var(--ink); }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 620;
  color: var(--flag-dark);
}
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.mark svg { display: block; }
.nav { display: flex; gap: 16px; align-items: center; flex: 1; }
.nav a {
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 620;
  color: var(--muted);
}
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle, .icon-btn, .bag {
  border: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle { display: none; }
.bag { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; }
.bag-count {
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 99px;
  background: var(--flag);
  color: white;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
}

.search-panel[hidden] { display: none; }
.search-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 40;
}
.search-panel input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  outline: none;
  font-size: 1.2rem;
}
.search-hit {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.search-hit strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 560; }
.top { position: sticky; }
.top .search-panel { position: absolute; }

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f6f1e6;
  background: #1a2420;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 12, 0.88) 0%, rgba(8, 14, 12, 0.55) 42%, rgba(8, 14, 12, 0.12) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  max-width: 860px;
}
.display {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(3.4rem, 7.4vw, 6.6rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.lede { font-size: 1.22rem; max-width: 38rem; color: var(--ink); }
.hero .lede, .hero .def { color: #f3ece1; }
.hero .kicker { color: #f3c2b6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.def {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero .def { border-color: rgba(255, 255, 255, 0.28); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  font-weight: 600;
}
.btn-flag { background: var(--flag); border-color: var(--flag); color: white; }
.btn-flag:hover { background: var(--flag-dark); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: #f4efe6; color: #1c1916; border-color: #f4efe6; }
.btn-paper:hover { background: white; }
.btn-ghost { color: #f4efe6; border-color: rgba(244, 239, 230, 0.75); background: transparent; }
.btn-ghost:hover { background: #f4efe6; color: #1c1916; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.band, .section { border-bottom: 1px solid var(--line); }
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #14241c;
  color: #f4efe6;
}
.stat {
  padding: 26px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat span { display: block; margin-top: 6px; color: #c9d4cc; font-size: 0.92rem; }

.reel {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  height: 240px;
  background: #1a2420;
}
.reel a { position: relative; display: block; overflow: hidden; min-width: 0; }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.reel a:hover img { transform: scale(1.06); }
.page-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: #14241c;
  color: #f6f1e6;
  overflow: hidden;
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 14, 12, 0.88), rgba(8, 14, 12, 0.15) 60%);
}
.page-banner-copy { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto 36px; }
.page-banner .kicker { color: #f3c2b6; }
.page-banner .lede { color: #f3ece1; max-width: 40rem; margin-top: 12px; }
.page-banner .page-title { max-width: 16ch; }

.reel span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: white;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.section { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h2, .page-title {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.04em;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.doors, .grid-3, .grid-4, .course-grid, .goods-grid { display: grid; gap: 16px; }
.doors { grid-template-columns: 1.4fr 1fr 0.8fr; }
.grid-3, .course-grid { grid-template-columns: repeat(3, 1fr); }
.grid-4, .goods-grid { grid-template-columns: repeat(4, 1fr); }
.door, .paper-card, .course-card, .product-card, .trip-card {
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  display: block;
}
.door { padding: 22px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; position: relative; overflow: hidden; }
.door-photo {
  color: white;
  border: 0;
  background:
    linear-gradient(to top, rgba(8, 12, 10, 0.88), rgba(8, 12, 10, 0.15)),
    var(--photo) center / cover no-repeat;
}
.door-photo .kicker { color: #f3c2b6; }
.door-photo p { color: rgba(255, 255, 255, 0.88); }
.door h3, .course-card h3, .product-card h3, .trip-card h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  font-size: 1.85rem;
  line-height: 1;
}
.door:hover, .course-card:hover, .product-card:hover, .trip-card:hover { border-color: var(--ink); }

.frame { aspect-ratio: 5/4; background: #243028; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.course-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 0;
  color: white;
  background: #1a2420;
}
.course-card .frame { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.course-card:hover img { transform: scale(1.05); }
.course-card .pad {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(8, 12, 10, 0.92) 10%, rgba(8, 12, 10, 0.2) 70%, transparent);
  padding: 84px 16px 16px;
}
.course-card .kicker { color: #f3c2b6; }
.course-card h3, .course-card p { color: white; }
.course-grid-feature { grid-template-columns: 1fr 1fr; }
.course-grid-feature .course-card { min-height: 460px; }
.shot { aspect-ratio: 4/3; background: #1c2822; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-lg { aspect-ratio: 1; }
.planner-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.product-card .pad, .trip-card .pad { padding: 14px 14px 16px; }
.product-card p { color: var(--muted); margin-top: 6px; }
.course-card p { margin-top: 6px; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.prose { max-width: 68ch; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 1.4em 0 0.35em; }
.prose h3 { font-size: 1.45rem; margin: 1.2em 0 0.3em; }
.prose p, .prose li { font-size: 1.05rem; }
.prose p + p { margin-top: 0.85em; }
.prose ul, .prose ol { margin: 0.6em 0 0; padding-left: 1.15em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--flag-dark); }
.prose pre { overflow: auto; background: var(--white); border: 1px solid var(--line); padding: 14px 16px; font-size: 0.92rem; }
.prose code { font-size: 0.92em; }
.page-hero { padding: 48px 0 20px; }
.page-hero .lede { margin-top: 14px; }

.scorecard { width: 100%; border-collapse: collapse; background: var(--white); }
.scorecard th, .scorecard td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.scorecard th { background: var(--green); color: #f4f0e6; font-weight: 580; letter-spacing: 0.04em; font-size: 0.82rem; text-transform: uppercase; }
.scorecard td:first-child { font-weight: 620; white-space: nowrap; }

.filters { display: grid; gap: 12px; margin: 18px 0 22px; }
.filters-row, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
input[type="search"], input[type="text"], input[type="email"], select, textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 46px;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.count-line { color: var(--muted); margin-bottom: 12px; }

.detail { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.detail-hero {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 10px;
}
.detail-hero:has(> .frame:only-child) { grid-template-columns: 1fr; }
.detail-hero .frame { aspect-ratio: 16/10; border-radius: 2px; }
.detail-hero .frame-side { aspect-ratio: auto; }
.detail-hero .frame-side img { height: 100%; object-position: center 68%; }
.facts { width: 100%; }
.note, .callout {
  background: #f7e7e2;
  border: 1px solid rgba(226, 59, 47, 0.25);
  padding: 14px 16px;
  margin: 16px 0;
}
.callout { background: var(--white); border-color: var(--line); }

.plate {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 20%, #fff, transparent 45%),
    linear-gradient(160deg, #f7f1e6, #e4d8c4);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.plate svg { width: min(70%, 220px); height: auto; }
.price { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -0.03em; }
.product-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
.specs { margin-top: 16px; }

.cart-line {
  display: grid;
  grid-template-columns: 1.4fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; }
.totals { margin-top: 18px; display: grid; gap: 6px; max-width: 360px; margin-left: auto; }
.totals div { display: flex; justify-content: space-between; gap: 20px; }
.checkout { display: grid; grid-template-columns: 1fr 0.8fr; gap: 28px; margin-top: 22px; }
.form { display: grid; gap: 10px; }
label span { display: block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.error { color: var(--flag-dark); font-size: 0.92rem; }

.quote-band { padding: 72px 0; background: var(--ink); color: var(--paper); }
.quote-band blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.quote-band figcaption { margin-top: 16px; color: #cfc6b8; }

.site-footer { background: #141210; color: #efeae2; padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer a { color: #efeae2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legal { margin-top: 28px; color: #b7b0a6; font-size: 0.88rem; max-width: 78ch; }
.legal p + p { margin-top: 10px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legal-links a { text-decoration: underline; text-underline-offset: 3px; }


.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { padding: 28px; border: 1px dashed var(--line); background: var(--white); }
.crumbs { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.glossary dt { font-family: var(--serif); font-size: 1.25rem; }
.glossary dd { margin: 0 0 8px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.stack { display: grid; gap: 16px; }

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

@media (max-width: 980px) {
  .hero::after { background: linear-gradient(to top, rgba(8, 14, 12, 0.9) 18%, rgba(8, 14, 12, 0.28) 70%); }
  .hero { min-height: 88vh; }
  .hero-copy { padding-top: 34vh; }
  .reel { grid-template-columns: 1fr 1fr; height: auto; }
  .reel a { height: 160px; }
  .reel a:first-child { grid-column: 1 / -1; height: 220px; }
  .detail-hero, .hero, .doors, .grid-3, .course-grid, .course-grid-feature, .detail, .product-layout, .checkout, .split, .two, .foot-grid, .glossary, .planner-fields {
    grid-template-columns: 1fr;
  }
  .grid-4, .goods-grid, .stat-row { grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 22px 18px;
    gap: 12px;
  }
  body.nav-open .nav { display: flex; }
  .top-actions { margin-left: 0; }
  .section-head { flex-direction: column; align-items: start; }
}

@media (max-width: 640px) {
  .stat-row, .grid-4, .goods-grid { grid-template-columns: 1fr; }
  .top { gap: 10px; padding: 12px; }
  .wrap { width: min(1180px, calc(100% - 28px)); }
  .display { font-size: 3.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
  .frame img { transition: none; }
}
