/* IKSIA — shared stylesheet. Plain CSS, no build step, no external fonts or
   trackers. Design language follows Apple's marketing sites: white-first,
   generous whitespace, large tight-tracked headings, pill buttons, soft grey
   cards, and a frosted-glass sticky header. Responsive by default; motion is
   limited to subtle transitions and is disabled for reduced-motion users. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-sunken: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --heading: #0b1d3a;
  --border: #d2d2d7;
  --hairline: rgba(0, 0, 0, 0.08);
  --navy: #012169;
  --navy-deep: #001447;
  --red: #e4002b;
  --red-deep: #b8001f;
  --safe: #1f8a57;
  --safe-bg: #e7f6ee;
  --caution: #b8740a;
  --caution-bg: #fdf0da;
  --excluded: #c23b32;
  --excluded-bg: #fbe9e7;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1080px;
  --max-width-prose: 700px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
}

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

/* Header — frosted glass, sticky, compact */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  background: color-mix(in srgb, var(--navy) 96%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 3px solid var(--red);
}

/* Subtle Southern Cross: a small cluster of white stars, top right, decorative only */
.site-header::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 12px;
  width: 64px;
  height: 28px;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 28'%3E%3Cg fill='white'%3E%3Cpolygon transform='translate(50 8) scale(0.85)' points='0,-5 1.234,-1.699 4.755,-1.545 1.997,0.649 2.939,4.045 0,2.1 -2.939,4.045 -1.997,0.649 -4.755,-1.545 -1.234,-1.699'/%3E%3Cpolygon transform='translate(60 17) scale(0.5)' points='0,-5 1.234,-1.699 4.755,-1.545 1.997,0.649 2.939,4.045 0,2.1 -2.939,4.045 -1.997,0.649 -4.755,-1.545 -1.234,-1.699'/%3E%3Cpolygon transform='translate(40 16) scale(0.5)' points='0,-5 1.234,-1.699 4.755,-1.545 1.997,0.649 2.939,4.045 0,2.1 -2.939,4.045 -1.997,0.649 -4.755,-1.545 -1.234,-1.699'/%3E%3Cpolygon transform='translate(57 4) scale(0.4)' points='0,-5 1.234,-1.699 4.755,-1.545 1.997,0.649 2.939,4.045 0,2.1 -2.939,4.045 -1.997,0.649 -4.755,-1.545 -1.234,-1.699'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.55;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: var(--header-h);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  min-height: 44px;
}

.brand:hover {
  color: #fff;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__mark-navy {
  fill: #fff;
}

.brand__mark-red {
  fill: var(--red);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand__tagline {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ffd6dc;
  margin-top: 0.15rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
  color: #fff;
}

.main-nav a[aria-current='page'] {
  opacity: 1;
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--red);
}

/* Hero */

.hero {
  padding-top: clamp(48px, 9vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero__text {
  text-align: center;
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(228, 0, 43, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.hero p.lede,
.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-wrap: pretty;
}

.hero__media {
  margin: 0;
  width: 100%;
  max-width: var(--max-width);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Buttons — pill shaped, 44px tap targets */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
}

/* Sections */

.section {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.section__head {
  max-width: var(--max-width-prose);
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.section__head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.section__head p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin: 0;
}

/* Photography */

.photo-band {
  margin: 0 0 clamp(40px, 6vw, 72px);
}

.photo-band img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.step {
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Category grid */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0.6rem 0 0.35rem;
}

.category-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Status badges — semantic, never the brand colour */

.status {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  line-height: 1.2;
}

.status--safe {
  color: var(--safe);
  background: var(--safe-bg);
}

.status--caution {
  color: var(--caution);
  background: var(--caution-bg);
}

.status--excluded {
  color: var(--excluded);
  background: var(--excluded-bg);
}

/* Quote — white card with a red rule */

.mission {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow);
}

.mission blockquote {
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 26ch;
  color: var(--heading);
  text-wrap: balance;
}

.mission cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Prose pages */

.prose-page main {
  padding-bottom: 24px;
}

.page-head {
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: 8px;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  max-width: none;
  margin-bottom: 0;
}

.prose {
  max-width: var(--max-width-prose);
  overflow-wrap: break-word;
  padding-top: 12px;
  padding-bottom: 24px;
}

.prose p {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--text);
}

.prose h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.notice {
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 1.5rem 0;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.55;
}

.todo {
  background: var(--caution-bg);
  color: var(--caution);
  border-radius: 6px;
  padding: 0.05em 0.4em;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th {
  background: var(--surface-sunken);
}

/* Gifts — festive quotes, then occasion cards */

.gifts-hero {
  text-align: center;
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.gifts-hero h1 {
  max-width: 17ch;
  margin: 0 auto 1.1rem;
}

.quote-strip {
  list-style: none;
  margin: 0 0 clamp(40px, 6vw, 64px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.quote-strip li {
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: 22px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--heading);
  text-wrap: balance;
}

.quote-strip li:first-child {
  grid-column: 1 / -1;
  background: var(--navy);
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  text-align: center;
}

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.occasion-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.occasion-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.occasion-card__body {
  padding: 20px 22px 24px;
}

.occasion-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.occasion-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.occasion-card__hint {
  margin-top: 0.7rem !important;
  font-size: 0.85rem !important;
  color: var(--navy) !important;
  font-weight: 600;
}

/* Blog — list cards and the post article */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-sunken);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card .eyebrow {
  align-self: flex-start;
  margin-bottom: 1rem;
}

.blog-card h2 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.blog-card h2 a {
  color: var(--heading);
}

.blog-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.blog-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--navy);
}

.post {
  padding-top: clamp(32px, 5vw, 56px);
}

.post h1 {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  margin: 0.5rem 0 1.25rem;
}

.post .meta {
  margin-bottom: 0.25rem;
}

.post .meta a {
  color: var(--navy);
  font-weight: 600;
}

/* Footer — light grey, small print, like a product footer */

.site-footer {
  background: var(--surface-sunken);
  border-top: 1px solid var(--hairline);
  margin-top: clamp(48px, 7vw, 88px);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem 2rem;
  padding-top: 32px;
  padding-bottom: 32px;
}

.site-footer strong {
  display: block;
  color: var(--heading);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.site-footer a:hover {
  color: var(--navy);
}

.not-found {
  text-align: center;
  padding: clamp(64px, 12vw, 120px) var(--gutter);
}

.not-found h1 {
  margin-bottom: 0.75rem;
}

.not-found p {
  color: var(--text-muted);
}

/* Tablet */

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Phone */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header::after {
    display: none;
  }

  .site-header__inner {
    justify-content: center;
    text-align: center;
  }

  .brand {
    margin: 0 auto;
  }

  .main-nav ul {
    justify-content: center;
    gap: 1.25rem;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

  .cta-row .btn {
    width: 100%;
    max-width: 320px;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}

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

  .steps > :last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Motion — respect reduced-motion, keep transitions subtle */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .step:hover,
  .category-card:hover,
  .occasion-card:hover,
  .blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
}
