/* North Pole Supply Co. */

:root {
  --navy-950: #08101f;
  --navy-900: #0c1730;
  --navy-800: #13213f;
  --navy-700: #1f3260;
  --snow: #f8f6f1;
  --snow-2: #efeee8;
  --white: #ffffff;
  --ink: #13213f;
  --ink-soft: #46536e;
  --on-dark-soft: #c3cbdb;
  --red: #c4162f;
  --red-deep: #8f0f24;
  --gold: #e2b04f;
  --gold-soft: #f3d898;
  --gold-deep: #7d520d;
  --line: #e1ddd2;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.section-snow :focus-visible,
.section-about :focus-visible,
.gift-tag :focus-visible { outline-color: var(--red-deep); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--gold);
  color: var(--navy-900);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */

.site-header {
  background: var(--navy-900);
  color: var(--snow);
  border-bottom: 1px solid rgba(226, 176, 79, 0.18);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-main {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.wordmark-sub {
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--on-dark-soft);
  transition: color 0.2s, background-color 0.2s;
}
.nav-list a:hover { color: var(--snow); background: rgba(255, 255, 255, 0.07); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--snow);
  background:
    radial-gradient(ellipse 70% 55% at 50% 108%, rgba(226, 176, 79, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--navy-700), transparent 75%),
    var(--navy-900);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(56px, 10vw, 112px);
  padding-bottom: clamp(64px, 11vw, 128px);
}

.hero-mark {
  width: clamp(112px, 22vw, 148px);
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.75rem);
  max-width: 14ch;
}

.lede {
  margin-top: 20px;
  max-width: 34ch;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--on-dark-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost {
  color: var(--snow);
  border: 1.5px solid rgba(248, 246, 241, 0.45);
}
.btn-ghost:hover { border-color: var(--snow); background: rgba(255, 255, 255, 0.06); }

/* Falling snow: two tiled layers that slide down one tile per loop. */

.snow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  animation: sway 9s ease-in-out infinite alternate;
}

.snow::before,
.snow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  will-change: transform;
}

.snow::before {
  top: -260px;
  background-image:
    radial-gradient(circle at 20px 30px, rgba(255,255,255,.85) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 110px 140px, rgba(255,255,255,.7) 0 1.2px, transparent 2px),
    radial-gradient(circle at 200px 60px, rgba(255,255,255,.8) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 60px 210px, rgba(255,255,255,.6) 0 1px, transparent 1.8px),
    radial-gradient(circle at 170px 230px, rgba(255,255,255,.75) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 240px 170px, rgba(255,255,255,.55) 0 1px, transparent 1.8px);
  background-size: 260px 260px;
  animation: fall-a 16s linear infinite;
}

.snow::after {
  top: -400px;
  opacity: 0.6;
  background-image:
    radial-gradient(circle at 70px 80px, rgba(255,255,255,.9) 0 2.2px, transparent 3.2px),
    radial-gradient(circle at 300px 260px, rgba(255,255,255,.8) 0 2px, transparent 3px),
    radial-gradient(circle at 190px 350px, rgba(255,255,255,.7) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 350px 40px, rgba(255,255,255,.75) 0 2px, transparent 3px);
  background-size: 400px 400px;
  animation: fall-b 24s linear infinite;
}

@keyframes fall-a { to { transform: translateY(260px); } }
@keyframes fall-b { to { transform: translateY(400px); } }
@keyframes sway { from { transform: translateX(-12px); } to { transform: translateX(12px); } }

/* Candy-cane divider */

.candy-stripe {
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, var(--snow) 12px 24px);
}

/* Sections */

.section { padding: clamp(64px, 10vw, 112px) 0; }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }

.section h2 { font-size: clamp(2rem, 4.6vw, 3rem); }

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.eyebrow-light { color: var(--gold); }

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  padding: 26px 24px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(19, 33, 63, 0.04), 0 18px 40px -28px rgba(19, 33, 63, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(19, 33, 63, 0.04), 0 26px 48px -28px rgba(19, 33, 63, 0.45);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(226, 176, 79, 0.35);
}
.card-icon svg { width: 26px; height: 26px; }

.card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-deep);
}

.card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); }

/* About */

.section-about {
  background: var(--snow-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.about-art {
  width: 96px;
  color: var(--red);
  opacity: 0.9;
}

.about-copy { max-width: 640px; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p:last-child {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
  .about-art { width: 180px; justify-self: center; }
}

/* Contact */

.section-contact {
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(226, 176, 79, 0.16), transparent 70%),
    var(--navy-900);
}

.contact-inner { display: flex; justify-content: center; }

.gift-tag {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: clamp(36px, 6vw, 56px) clamp(20px, 6vw, 64px) clamp(36px, 6vw, 56px) clamp(46px, 9vw, 96px);
  background: var(--snow);
  color: var(--ink);
  clip-path: polygon(36px 0, 100% 0, 100% 100%, 36px 100%, 0 50%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* The tag's punched hole */
.gift-tag::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--navy-900);
  box-shadow: 0 0 0 3px var(--gold);
}

.gift-tag h2 { margin-bottom: 14px; }
.contact-text { color: var(--ink-soft); margin-bottom: 22px; }

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 4.2vw, 1.9rem);
  font-weight: 600;
  color: var(--red-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
  white-space: nowrap;
}
.contact-email:hover { color: var(--ink); }

/* Footer */

.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-soft);
  padding: 44px 0 52px;
  text-align: center;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-copy { color: var(--snow); font-family: var(--serif); font-size: 1.05rem; }
.footer-note { max-width: 60ch; font-size: 0.9rem; }

/* Small screens */

@media (max-width: 520px) {
  .header-inner { justify-content: center; }
  .nav-list a { padding: 6px 10px; font-size: 0.9rem; }
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snow, .snow::before, .snow::after { animation: none; }
  .card, .btn, .nav-list a { transition: none; }
  .card:hover { transform: none; }
}
