/* Coffee with the King mockup stylesheet */

:root {
  --cream: #f4eee4;
  --cream-deep: #ebe3d4;
  --paper: #faf6ef;
  --espresso: #2c1b12;
  --espresso-deep: #1a100c;
  --ink: #3a2a20;
  --ink-soft: #5c4a3c;
  --gold: #b8944a;
  --gold-soft: #c9ae72;
  --gold-deep: #8f6f2e;
  --rule: rgba(44, 27, 18, 0.12);
  --card: #fffcf7;
  --shadow: 0 12px 40px rgba(44, 27, 18, 0.08);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --body: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 42rem;
  --page: 72rem;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--espresso);
  color: var(--cream);
  padding: 0.5rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header sitting on the hero */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.15rem 6vw 0.8rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  color: #f4eee4;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--gold-soft);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  background-color: var(--espresso-deep);
  background-image:
    linear-gradient(180deg, rgba(16, 10, 8, 0.38) 0%, rgba(16, 10, 8, 0.22) 38%, rgba(16, 10, 8, 0.55) 100%),
    url("images/hero-still.jpg");
  background-size: cover;
  background-position: center 40%;
  padding: 8.5rem 1.5rem 5.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5rem;
  background: linear-gradient(180deg, transparent, var(--cream));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.hero-logo {
  margin: 0 auto 1.6rem;
  width: min(420px, 82vw);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.4));
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #f7f1e6;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-hook {
  margin: 0 auto 1rem;
  max-width: 28em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: #f3ead8;
}

.hero-sub {
  margin: 0 auto 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(244, 238, 228, 0.82);
}

.hero-rule {
  display: block;
  width: 3.2rem;
  height: 1px;
  margin: 0 auto 1.75rem;
  background: var(--gold-soft);
  border: 0;
}

.hero-cta {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border: 1px solid rgba(201, 174, 114, 0.7);
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(26, 16, 12, 0.28);
  backdrop-filter: blur(6px);
}

.hero-cta:hover,
.hero-cta:focus {
  color: var(--espresso-deep);
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* Shared layout */
.section {
  padding: 4.5rem 1.4rem;
}

.section-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.section-inner.wide {
  max-width: var(--page);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section h2 {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  line-height: 1.05;
  color: var(--espresso);
}

.section p {
  margin: 0 0 1.05rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* How it started */
.started {
  background: var(--cream);
  padding-top: 3.5rem;
}

.started p {
  color: var(--ink);
}

.story-toggle {
  margin-top: 1.6rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.story-toggle > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--espresso);
}

.story-toggle > summary::-webkit-details-marker {
  display: none;
}

.story-toggle > summary::before {
  content: "+  ";
  color: var(--gold-deep);
  font-weight: 500;
}

.story-toggle[open] > summary::before {
  content: "−  ";
}

.story-toggle .full-story {
  margin-top: 1.2rem;
  padding: 0 0 0.4rem;
}

.full-story p + p {
  margin-top: 1.05rem;
}

/* The Practice */
.practice {
  background:
    linear-gradient(180deg, var(--cream-deep) 0%, #e7dcc8 100%);
  padding-top: 4.75rem;
  padding-bottom: 5rem;
}

.practice-intro {
  max-width: var(--measure);
  margin: 0 auto 2.4rem;
}

.practice-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 52rem;
  margin: 0 auto;
}

.step {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 27, 18, 0.06);
  overflow: hidden;
}

.step-top {
  padding: 1.45rem 1.5rem 0.3rem;
}

.step-num {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--espresso);
}

.step-summary {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.step-body {
  padding: 0.85rem 1.5rem 0.35rem;
}

.step-body .step-text {
  margin-top: 0;
}

.step-text p {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.step-text p:last-child {
  margin-bottom: 0.3rem;
}

.verse {
  margin: 0.9rem 1.5rem 1.45rem;
  padding: 0.95rem 0 0.2rem 1.15rem;
  border-left: 2px solid var(--gold);
}

.verse p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--espresso);
}

.verse cite {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.lord {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

/* Backstory */
.backstory {
  background: var(--paper);
  padding-top: 5rem;
  padding-bottom: 4.5rem;
}

.backstory-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.confession {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--cream);
  border-radius: 12px;
  border-left: 2px solid var(--gold);
}

.confession p {
  margin: 0;
  font-size: 1.05rem;
}

.signature {
  margin: 2.1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--espresso);
}

/* Contact */
.contact {
  background: var(--espresso);
  color: var(--cream);
  padding: 4.4rem 1.4rem 3.6rem;
  text-align: center;
}

.contact h2 {
  color: var(--cream);
}

.contact .eyebrow {
  color: var(--gold-soft);
}

.contact-inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.contact .contact-copy {
  max-width: 32rem;
  margin: 0 auto 1.8rem;
  color: rgba(244, 238, 228, 0.86);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--espresso-deep);
  border: 1px solid var(--gold);
}

.btn-gold:hover,
.btn-gold:focus {
  background: var(--gold-soft);
  color: var(--espresso-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 238, 228, 0.35);
  cursor: default;
}

.contact .guide-note {
  margin: 1.15rem auto 0;
  max-width: 28rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: rgba(244, 238, 228, 0.62);
}

.site-footer {
  background: var(--espresso-deep);
  color: rgba(244, 238, 228, 0.55);
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.footer-logo {
  display: block;
  width: min(200px, 60vw);
  margin: 0 auto 0.9rem;
  opacity: 0.85;
}

@media (min-width: 820px) {
  .practice-grid {
    /* Keep a comfortable reading measure; two columns would crowd the full text */
    max-width: 46rem;
  }

  .step-top,
  .step-body {
    padding-left: 1.85rem;
    padding-right: 1.85rem;
  }

  .verse {
    margin-left: 1.85rem;
    margin-right: 1.85rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    padding-top: 0.9rem;
    gap: 0.7rem;
  }

  .site-nav {
    justify-content: center;
    gap: 0.3rem 1rem;
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 5.2rem;
    padding-bottom: 4.2rem;
  }

  .section {
    padding: 3.4rem 1.15rem;
  }

  .step-top,
  .step-body {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .verse {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
    padding-left: 0.95rem;
  }

  .verse p {
    font-size: 1.12rem;
  }
}

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