:root {
  --ink: #11110f;
  --ivory: #f3eee4;
  --paper: #ded6c8;
  --ash: #8c8983;
  --line: rgba(17, 17, 15, 0.22);
  --display: "Cinzel", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --page: min(1220px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1220px) / 2));
  color: var(--ink);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  border-bottom: 1px solid rgba(17,17,15,.11);
  backdrop-filter: blur(14px);
}
.brand-mini {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 13px;
  font-weight: 500;
}
.algiz { font-family: serif; font-size: 23px; line-height: 1; }
.nav { display: flex; gap: 32px; }
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 500;
}
.nav a:hover { opacity: .55; }

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 92px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--ivory);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 40px));
  margin: 48px auto 80px;
  text-align: center;
}
.hero-logo {
  width: min(465px, 67vw);
  margin: 22px auto 0;

}
.hero-rule {
  width: min(500px, 72vw);
  height: 5px;
  margin: 2px auto 20px;
  background: var(--ink);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 600;
}
.eyebrow-light { color: rgba(243,238,228,.64); }
.hero h1, h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .075em;
  font-weight: 500;
}
.hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}
.hero-copy {
  max-width: 590px;
  margin: 0 auto 28px;
  color: #45443f;
  font-size: clamp(16px, 1.6vw, 19px);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid currentColor;
  border-radius: 1px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--ivory); }
.button-light { background: var(--ivory); color: var(--ink); }

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(17,17,15,.15) .6px, transparent .6px),
    radial-gradient(rgba(17,17,15,.12) .4px, transparent .4px);
  background-position: 0 0, 5px 7px;
  background-size: 9px 9px, 11px 11px;
}
.water-lines {
  position: absolute;
  left: -10vw;
  right: -10vw;
  bottom: -60px;
  height: 200px;
  opacity: .13;
  background: repeating-linear-gradient(180deg, transparent 0 16px, var(--ink) 17px 18px, transparent 19px 27px);
  transform: skewY(-2deg);
  animation: water 16s ease-in-out infinite alternate;
}
@keyframes water { from { transform: translateX(-1.5%) skewY(-2deg); } to { transform: translateX(1.5%) skewY(-1deg); } }

.section-dark {
  background: var(--ink);
  color: var(--ivory);
}
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(50px, 8vw, 120px);
  padding: 120px max(24px, calc((100vw - 1220px) / 2));
  align-items: center;
}
.story h2, .gallery h2, .order h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}
.story-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 0 17px;
  color: rgba(243,238,228,.76);
  font-size: 17px;
}
.origin-lockup {
  margin-top: 48px;
  display: grid;
  gap: 8px;
  width: fit-content;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 13px;
}
.origin-lockup i { width: 48px; height: 1px; background: var(--paper); opacity: .55; }
.story-seal {
  width: min(470px, 100%);
  margin-left: auto;
}
.story-seal img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(243,238,228,.12);
}

.gallery {
  width: var(--page);
  margin: auto;
  padding: 118px 0 124px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 64px;
  align-items: end;
  margin-bottom: 54px;
}
.section-heading h2 { margin-bottom: 0; }
.section-note { margin: 0 0 7px; color: #5d5a54; font-size: 14px; }
.hat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.hat-card { grid-column: span 4; }
.hat-card-large { grid-column: span 8; }
.hat-card-wide { grid-column: span 12; }
.hat-photo {
  position: relative;
  overflow: hidden;
  background: #1a1a18;
  border: 1px solid rgba(17,17,15,.14);
}
.hat-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.hat-card-large .hat-photo img { height: 620px; }
.hat-card-wide .hat-photo img { height: 540px; object-position: 50% 45%; }
.hat-card:hover .hat-photo img { transform: scale(1.02); }
.hat-info { padding: 16px 2px 6px; border-bottom: 1px solid var(--line); }
.hat-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.hat-title h3 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 500;
  font-size: 17px;
}
.hat-price {
  font-family: var(--display);
  letter-spacing: .06em;
  font-size: 15px;
  white-space: nowrap;
}
.hat-price.sold {
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-family: var(--sans);
  font-weight: 600;
}
.hat-info p {
  margin: 8px 0 12px;
  color: #5d5a54;
  font-size: 14px;
  line-height: 1.5;
  max-width: 52ch;
}
.hat-tag {
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 9px;
  color: var(--ash);
}

.quote-band {
  min-height: 310px;
  padding: 64px 24px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--paper);
  border-block: 1px solid rgba(17,17,15,.08);
}
.quote-band p {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .105em;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1;
}
.quote-band > span {
  margin-top: 8px;
  color: #5d5a54;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 10px;
}
.quote-rune { font-family: serif; font-size: 38px; margin-bottom: 12px; }

.order {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 8vw, 110px);
  padding: 120px max(24px, calc((100vw - 1220px) / 2));
  background: var(--ink);
  color: var(--ivory);
}
.order-intro > p:not(.eyebrow) { color: rgba(243,238,228,.70); max-width: 520px; }
.order-details {
  margin-top: 44px;
  border-top: 1px solid rgba(243,238,228,.18);
}
.order-details div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(243,238,228,.18);
}
.order-details span { color: rgba(243,238,228,.46); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.order-details strong { font-size: 13px; font-weight: 500; }
.order-form { display: grid; gap: 18px; }
.field-grid { display: grid; gap: 18px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 8px; }
label > span {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10px;
  color: rgba(243,238,228,.68);
}
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(243,238,228,.26);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  outline: 0;
}
input, select { height: 50px; padding: 0 13px; }
textarea { padding: 13px; resize: vertical; }
select { background: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: rgba(243,238,228,.70); }
input::placeholder, textarea::placeholder { color: rgba(243,238,228,.30); }
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
}
.form-footer p { margin: 0; color: rgba(243,238,228,.42); font-size: 11px; max-width: 280px; }
.form-footer p.success { color: var(--paper); }

.footer {
  min-height: 170px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 42px max(24px, calc((100vw - 1220px) / 2));
  background: #090909;
  color: var(--ivory);
  border-top: 1px solid rgba(243,238,228,.10);
}
.footer-mark {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(243,238,228,.28);
  border-radius: 50%;
}
.footer > div:nth-child(2) { display: grid; gap: 4px; }
.footer strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; font-size: 13px; }
.footer span, .footer-origin { color: rgba(243,238,228,.54); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.footer-legal {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(243,238,228,.08);
  color: rgba(243,238,228,.54);
  text-transform: uppercase; letter-spacing: .14em; font-size: 9px;
}
.footer-legal a { color: rgba(243,238,228,.72); text-decoration: none; }
.footer-legal a:hover { color: var(--ivory); }

@media (max-width: 820px) {
  :root { --page: calc(100vw - 32px); }
  .site-header { height: 64px; padding-inline: 16px; }
  .brand-mini span:last-child { display: none; }
  .nav { gap: 18px; }
  .nav a { font-size: 10px; }
  .hero { padding-top: 74px; }
  .hero-logo { width: min(400px, 82vw); }
  .hero-rule { width: min(430px, 88vw); }
  .story, .order { grid-template-columns: 1fr; padding: 84px 20px; }
  .story-seal { width: min(390px, 88vw); margin: 12px auto 0; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .gallery { padding-block: 84px; }
  .hat-card, .hat-card-large, .hat-card-wide { grid-column: span 12; }
  .hat-photo img, .hat-card-large .hat-photo img, .hat-card-wide .hat-photo img { height: 440px; }
  .field-grid.two { grid-template-columns: 1fr; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .footer { grid-template-columns: 52px 1fr; }
  .footer-origin { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .water-lines { animation: none; }
  .button { transition: none; }
}
