:root {
  --cal: #F7F1E7;
  --paper: #FFFBF5;
  --tinta: #1F2A37;
  --tinta-soft: #3B4654;
  --muted: #5B6572;
  --line: #E6DCCB;
  --terracota: #B54A27;
  --terracota-dark: #973B1D;
  --azulejo: #23558C;
  --naranja: #EFA03A;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

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

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

body {
  margin: 0;
  background: var(--cal);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}

h2 { font-size: clamp(30px, 5vw, 44px); }
h3 { font-size: 21px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.hand {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  color: var(--terracota);
  margin: 0 0 6px;
}

.hand-light { color: var(--naranja); }

.fine { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.fine-light { color: rgba(247, 241, 231, 0.82); }

/* Header */

.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--cal);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(20, 25, 35, 0.35);
}

.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; text-shadow: 0 1px 10px rgba(20, 25, 35, 0.4); }
.top nav a:not(.nav-cta) { display: none; }

.nav-cta {
  background: rgba(247, 241, 231, 0.16);
  border: 1px solid rgba(247, 241, 231, 0.55);
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (min-width: 720px) {
  .top { padding: 22px 32px; }
  .top nav a:not(.nav-cta) { display: inline; }
}

/* Hero */

.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: var(--cal);
  background: var(--tinta);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 37% 40%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 25, 35, 0.35) 0%, rgba(20, 25, 35, 0) 22%),
    linear-gradient(to top, rgba(20, 25, 35, 0.86) 0%, rgba(20, 25, 35, 0.55) 38%, rgba(20, 25, 35, 0) 68%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 44px;
}

.hero h1 {
  font-size: clamp(46px, 11vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero h1 span { display: block; color: var(--naranja); font-style: italic; font-weight: 400; }

.lede {
  font-size: 18px;
  line-height: 1.55;
  max-width: 34rem;
  margin: 18px 0 24px;
  color: rgba(247, 241, 231, 0.94);
}

@media (min-width: 860px) {
  .hero-copy { padding: 0 32px 72px; }
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(20, 25, 35, 0.35) 0%, rgba(20, 25, 35, 0) 20%),
      linear-gradient(to right, rgba(20, 25, 35, 0.78) 0%, rgba(20, 25, 35, 0.5) 40%, rgba(20, 25, 35, 0) 70%),
      linear-gradient(to top, rgba(20, 25, 35, 0.5) 0%, rgba(20, 25, 35, 0) 40%);
  }
  .lede { font-size: 20px; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracota);
  color: #FFF7F0;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--terracota-dark); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .nav-cta:focus-visible, .top nav a:focus-visible {
  outline: 3px solid var(--naranja);
  outline-offset: 3px;
}

.btn-light { background: var(--cal); color: var(--azulejo); }
.btn-light:hover { background: #FFFFFF; }

/* Moments */

.moments { padding: 84px 0 76px; }

.intro { color: var(--tinta-soft); max-width: 36rem; margin: 14px 0 34px; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card:nth-child(3n+2) { transform: rotate(-0.6deg); }
.card:nth-child(3n) { transform: rotate(0.5deg); }

.place {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azulejo);
}

.phrase {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  color: var(--terracota);
  margin-top: 4px;
}

.means { color: var(--muted); font-size: 15px; }

/* About */

.about { background: var(--paper); border-block: 1px solid var(--line); padding: 84px 0; }

.about-grid { display: grid; gap: 36px; align-items: center; }

.about-img { width: 100%; max-width: 440px; border-radius: 20px; }

.about p:not(.hand) { color: var(--tinta-soft); margin: 14px 0 0; max-width: 36rem; }
.about h2 { margin-bottom: 4px; }

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 420px 1fr; gap: 64px; }
  .about-img { transform: rotate(-1.5deg); }
}

/* How it works */

.how { padding: 84px 0 92px; }

.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

.steps li { border-top: 2px solid var(--tinta); padding-top: 18px; }

.num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--terracota);
  margin-bottom: 10px;
}

.steps p { color: var(--tinta-soft); margin: 10px 0 0; }

.science {
  margin-top: 56px;
  background: var(--tinta);
  color: var(--cal);
  border-radius: 20px;
  padding: 28px 26px;
  max-width: 760px;
}

.science h3 { color: var(--naranja); }
.science p { margin: 10px 0 0; color: rgba(247, 241, 231, 0.88); }

/* Closing call to action */

.cta { background: var(--azulejo); color: var(--cal); padding: 88px 0 92px; text-align: center; }
.cta h2 { max-width: 16ch; margin: 0 auto 28px; }
.hand-cta { color: var(--naranja); font-size: 40px; }

/* Footer */

.foot { background: var(--tinta); color: rgba(247, 241, 231, 0.75); font-size: 14px; padding: 30px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.wordmark-small { font-size: 19px; color: var(--cal); text-shadow: none; margin-right: auto; }

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