/* ============================================================
   BLUE SKY JOURNEYS · An Afternoon With Viking
   Editorial invitation · burgundy / cream / charcoal
   ============================================================ */

:root {
  /* Palette */
  --burgundy: #8B1A2B;
  --burgundy-dark: #6E1421;
  --burgundy-tint: #F3E4E4;
  --gold: #B8935A;
  --gold-tint: #EFE7D8;

  --cream: #F5F0E6;
  --cream-soft: #FAF6EC;
  --cream-deep: #EBE3D2;
  --paper: #FFFFFF;

  --ink: #1B1B1B;
  --ink-2: #3D3A36;
  --ink-3: #6B665E;
  --line: #D9D2C1;

  /* Type */
  --display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:   0.78rem;
  --text-sm:   0.9rem;
  --text-base: 1.0625rem; /* 17px */
  --text-lg:   1.2rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.75rem;
  --text-5xl:  5rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  /* Effects */
  --shadow-soft: 0 20px 50px -20px rgba(23, 12, 10, 0.15);
  --shadow-card: 0 24px 60px -25px rgba(23, 12, 10, 0.28);
  --radius: 4px;
  --radius-lg: 10px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--burgundy); text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--burgundy-dark); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
input, select, textarea, button { font: inherit; color: inherit; }

/* Utility */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.section { padding: var(--sp-12) 0; }
@media (max-width: 720px) {
  .section { padding: var(--sp-10) 0; }
  .wrap { padding: 0 var(--sp-5); }
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}
.eyebrow.burgundy { color: var(--burgundy); }
.italic { font-style: italic; }
.burgundy { color: var(--burgundy); }
.center { text-align: center; }

.rule {
  height: 1px;
  background: var(--burgundy);
  border: 0;
  margin: var(--sp-3) 0 var(--sp-5);
  opacity: 0.75;
}
.rule.short { width: 64px; }
.rule.short.center { margin-left: auto; margin-right: auto; }

.display-1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, var(--text-5xl));
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display-2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, var(--text-3xl));
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.subhead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, var(--text-xl));
  font-weight: 500;
  line-height: 1.3;
  margin-top: var(--sp-2);
}
.lede {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--ink-2);
}
.lede.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all 200ms ease;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 48px;
}
.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--burgundy-dark); color: var(--cream); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(139, 26, 43, 0.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-lg { padding: 18px 40px; font-size: 1rem; min-height: 56px; }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; min-height: 40px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.95);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(139, 26, 43, 0.15);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--burgundy);
}
.brand-lockup:hover { opacity: 0.85; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.brand-tag { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.bsj-header-logo {
  display: block;
  height: 60px;
  width: auto;
  border-radius: 6px;
}
@media (max-width: 620px) {
  .header-inner { padding: var(--sp-3) var(--sp-4); }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.15rem; }
  .bsj-header-logo { height: 46px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 720px;
  padding: var(--sp-10) 0 var(--sp-12);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(240deg, rgba(245,240,230,0.98) 0%, rgba(245,240,230,0.85) 32%, rgba(245,240,230,0.15) 62%, rgba(23,10,15,0.28) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  justify-content: flex-end;
}
.invitation-card {
  max-width: 620px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  padding: clamp(var(--sp-6), 4vw, var(--sp-10));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
}
@media (max-width: 820px) {
  .hero-inner { justify-content: center; }
}
.viking-mast { margin-bottom: var(--sp-5); }
.viking-logo-img {
  height: 68px;
  width: auto;
  display: block;
  mix-blend-mode: multiply; /* melts white bg into cream card */
}
.viking-logo-img.sm { height: 44px; }

.event-block {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(245, 240, 230, 0.7);
  border-left: 3px solid var(--burgundy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.event-when {
  font-family: var(--display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}
.event-divider { color: var(--burgundy); }
.event-where {
  display: flex;
  flex-direction: column;
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.event-where strong { color: var(--ink); font-weight: 600; font-size: var(--text-base); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.rsvp-deadline {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--line);
  font-size: var(--text-sm);
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.rsvp-deadline strong { color: var(--burgundy); }

@media (max-width: 720px) {
  .hero { min-height: 0; padding: var(--sp-8) 0 var(--sp-10); }
  .invitation-card { padding: var(--sp-6) var(--sp-5); }
  .hero-scrim { background: linear-gradient(180deg, rgba(245,240,230,0.85) 0%, rgba(245,240,230,0.95) 40%, rgba(245,240,230,1) 100%); }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ============================================================
   PHOTO STRIPS
   ============================================================ */
.strip { padding: 0; background: var(--ink); }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.strip-grid figure { aspect-ratio: 4/3; overflow: hidden; margin: 0; }
.strip-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms ease; }
.strip-grid figure:hover img { transform: scale(1.04); }
@media (max-width: 720px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   TWO-COLUMN LAYOUT (Discover, Why Viking)
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}
.two-col.reverse .col-media { order: 1; }
.two-col.reverse .col-copy { order: 2; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: var(--sp-8); }
  .two-col.reverse .col-media { order: 0; }
}

.portrait {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
}
.portrait.tall { aspect-ratio: 3/4; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--ink-3);
  background: var(--paper);
  font-style: italic;
}
.discover .portrait { aspect-ratio: 5/6; }

/* Discover list */
.discover-list {
  margin-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.discover-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--sp-3);
  align-items: start;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.discover-list li:last-child { border-bottom: 0; }
.discover-list .mark {
  color: var(--burgundy);
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
}
.discover-list strong { font-size: var(--text-lg); font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }
.discover-list p { font-size: var(--text-base); color: var(--ink-2); margin: 0; }

/* ============================================================
   PERKS
   ============================================================ */
.perks { background: var(--cream-soft); }
.perks-intro { text-align: center; max-width: 640px; margin: 0 auto var(--sp-8); }
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 820px) {
  .perks-grid { grid-template-columns: 1fr; }
}
.perk-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.perk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--burgundy); }
.perk-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  color: var(--burgundy);
  display: grid;
  place-items: center;
}
.perk-icon svg { width: 100%; height: 100%; }
.perk-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--ink);
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}
.perk-card p { color: var(--ink-2); font-size: var(--text-base); }

/* ============================================================
   WHY VIKING PILLARS
   ============================================================ */
.viking-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.viking-pillars > div { display: flex; flex-direction: column; gap: 2px; }
.pillar-count {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--burgundy);
  font-weight: 600;
  line-height: 1;
}
.viking-pillars span:not(.pillar-count) { font-size: var(--text-sm); color: var(--ink-2); }
.viking-pillars em { font-style: italic; color: var(--ink-3); }
@media (max-width: 620px) {
  .viking-pillars { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ============================================================
   RSVP FORM
   ============================================================ */
.rsvp-section {
  background: linear-gradient(180deg, var(--cream-soft) 0%, var(--cream-deep) 100%);
}
.rsvp-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--sp-6), 4vw, var(--sp-10));
  box-shadow: var(--shadow-card);
}
.rsvp-header { text-align: center; margin-bottom: var(--sp-8); }
.rsvp-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.field-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-3); font-size: 0.78rem; }
.field input, .field select, .field textarea, .field-checks input {
  font-family: var(--body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--burgundy);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(139, 26, 43, 0.14);
}
.field input:invalid:not(:placeholder-shown),
.field select:invalid:not([data-touched="false"]) {
  /* subtle only after interaction */
}

.field-checks { border: 0; padding: 0; margin: 0; }
.checks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-2); }
.check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-soft);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
  font-size: var(--text-base);
}
.check:hover { border-color: var(--burgundy); background: var(--paper); }
.check input { width: 18px; height: 18px; accent-color: var(--burgundy); flex-shrink: 0; }
.check em { color: var(--ink-3); font-size: 0.85rem; margin-left: 4px; }
@media (max-width: 480px) { .checks-grid { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }

.form-footer { margin-top: var(--sp-4); display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.form-footer .btn { width: 100%; max-width: 380px; }
.form-hint { font-size: 0.82rem; color: var(--ink-3); text-align: center; max-width: 480px; line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #05102D;
  color: var(--cream);
  padding: var(--sp-10) 0 var(--sp-5);
}
.site-footer .wrap { display: flex; flex-direction: column; gap: var(--sp-8); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-6);
}
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--cream); }
.footer-brand .brand-mark { width: 44px; height: 44px; }
.bsj-footer-logo {
  display: block;
  height: 96px;
  width: auto;
}
.why-viking .lede + .lede { margin-top: var(--sp-4); }
.footer-title { font-family: var(--display); font-size: 1.4rem; font-weight: 500; color: var(--cream); }
.footer-sub { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245, 240, 230, 0.6); margin-top: 2px; }
.footer-contact { font-size: var(--text-sm); line-height: 1.9; }
.footer-contact a { color: var(--cream); border-bottom: 1px solid transparent; transition: border-color 180ms ease; }
.footer-contact a:hover { color: var(--cream); border-bottom-color: var(--cream); }
.footer-label { color: rgba(245, 240, 230, 0.55); margin-right: 6px; }
.footer-viking { text-align: right; }
.footer-viking .viking-logo-img { margin-left: auto; background: var(--cream); padding: 8px 12px; border-radius: 4px; mix-blend-mode: normal; }

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 230, 0.12);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: 0.82rem;
  color: rgba(245, 240, 230, 0.55);
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; text-align: center; gap: var(--sp-5); }
  .footer-brand { justify-content: center; }
  .footer-viking { text-align: center; }
  .footer-viking .viking-logo-img { margin: 0 auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   FADE-IN ON SCROLL
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
