/* ==========================================================================
   CERAUN SKIN — Editorial Design System (getceraun.com)
   Palette:
     Raw Limestone (Primary Canvas): #EFECE6
     Warm Setting Plaster:           #D9C5B8
     Weathered Greige:               #BDB5AA
     Brushed Putty:                  #D8D2C7
     Basalt Ink (Structural Ink):    #232520
     Oxidized Ochre (Subtle Accent): #B87333
   ========================================================================== */

:root {
  --limestone: #EFECE6;
  --plaster: #D9C5B8;
  --greige: #BDB5AA;
  --putty: #D8D2C7;
  --ink: #232520;
  --ink-soft: #4B4A44;
  --ochre: #B87333;
  --ochre-deep: #985B23;
  --paper-bright: #F7F4EE;

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --container-max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--limestone);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--limestone);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--limestone);
  padding: 12px 18px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(239, 236, 230, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--putty);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 44px;
  gap: 3px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.25s var(--ease);
}

.brand-lockup:hover {
  opacity: 0.78;
}

.brand-primary {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-right: -0.26em;
}

.brand-sublabel {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.header-link:hover {
  color: var(--ochre-deep);
  border-bottom-color: var(--ochre);
}

/* ==========================================================================
   Hero Section (Mobile-First Above-the-Fold Flow)
   ========================================================================== */
.hero-section {
  background-color: var(--limestone);
  padding: 28px 0 44px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero-copy-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-bottom: 14px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-body {
  font-size: clamp(0.96875rem, 1.3vw, 1.0625rem);
  line-height: 1.66;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 26px;
}

/* Email Capture Form */
.capture-wrap {
  width: 100%;
  max-width: 480px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background-color: var(--paper-bright);
  border: 1px solid var(--greige);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.4;
  border-radius: 0;
  appearance: none;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.email-input::placeholder {
  color: #6E6B64;
}

.email-input:focus {
  outline: none;
  border-color: var(--ink);
  background-color: #FFFFFF;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  background-color: var(--ink);
  border: 1px solid var(--ink);
  color: var(--limestone);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background-color: var(--ochre);
  border-color: var(--ochre);
  color: #FFFFFF;
}

.submit-btn:disabled {
  opacity: 0.68;
  cursor: wait;
}

.form-error {
  margin-top: 10px;
  min-height: 20px;
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--ochre-deep);
}

.form-error:empty {
  display: none;
}

/* Confirmation State */
.confirmation-box {
  padding: 20px 22px;
  background-color: var(--paper-bright);
  border-left: 2px solid var(--ochre);
  border-top: 1px solid var(--putty);
  border-right: 1px solid var(--putty);
  border-bottom: 1px solid var(--putty);
}

.confirmation-box[hidden] {
  display: none;
}

.confirmation-text {
  font-size: 0.96875rem;
  line-height: 1.62;
  color: var(--ink);
}

.confirmation-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ochre);
  transition: color 0.2s ease;
}

.confirmation-link:hover {
  color: var(--ochre-deep);
}

/* Media Frames (Strict 4:5 Editorial Aspect Ratio) */
.hero-media-stage {
  background-color: var(--plaster);
  padding: 16px;
}

.media-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--putty);
}

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-img-hero {
  object-position: center center;
}

.media-img-editorial {
  object-position: 62% center;
}

/* ==========================================================================
   Editorial Section (Warm Setting Plaster Breathing Room)
   ========================================================================== */
.editorial-section {
  background-color: var(--plaster);
  border-top: 1px solid var(--putty);
  padding: 56px 0 64px;
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.editorial-media-stage {
  background-color: var(--limestone);
  padding: 16px;
}

.editorial-copy-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.editorial-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.editorial-body {
  font-size: clamp(0.96875rem, 1.3vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.88;
  max-width: 44ch;
  margin-bottom: 28px;
}

.editorial-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.editorial-cta:hover {
  color: var(--ochre-deep);
  border-bottom-color: var(--ochre-deep);
}

/* ==========================================================================
   Privacy Policy View (/privacy)
   ========================================================================== */
.privacy-view {
  background-color: var(--limestone);
  padding: 40px 0 72px;
}

.privacy-view[hidden],
.view-landing[hidden] {
  display: none;
}

.privacy-inner {
  max-width: 720px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--putty);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  color: var(--ochre-deep);
  border-bottom-color: var(--ochre);
}

.privacy-eyebrow {
  margin-top: 28px;
}

.privacy-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

.privacy-updated {
  font-size: 0.84375rem;
  color: var(--ink-soft);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--putty);
  margin-bottom: 32px;
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.privacy-block h2 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.privacy-block p {
  font-size: 0.96875rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ochre);
}

.text-link:hover {
  color: var(--ochre-deep);
}

.privacy-footer-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--putty);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--limestone);
  border-top: 1px solid var(--putty);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-block: 22px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--ochre-deep);
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Editorial Desktop)
   ========================================================================== */
@media (min-width: 640px) {
  .container {
    padding-inline: 36px;
  }

  .form-row {
    flex-direction: row;
    gap: 0;
  }

  .email-input {
    border-right: none;
  }

  .hero-media-stage,
  .editorial-media-stage {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    padding-block: 20px;
  }
}

@media (min-width: 960px) {
  .container {
    padding-inline: 56px;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand-primary {
    font-size: 1.375rem;
  }

  /* Composed asymmetric desktop editorial split */
  .hero-section {
    padding: 64px 0 88px;
  }

  .hero-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px;
  }

  .hero-copy-wrap {
    padding-right: 16px;
  }

  .hero-media-stage {
    padding: 28px;
  }

  .editorial-section {
    padding: 96px 0 108px;
  }

  .editorial-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
  }

  .editorial-media-stage {
    padding: 28px;
  }

  .editorial-copy-wrap {
    padding-left: 24px;
  }

  .privacy-view {
    padding: 64px 0 96px;
  }
}

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