:root {
  --ink: #1b1b1b;
  --paper: #f8f6f2;
  --warm: #ece8e1;
  --olive: #776e45;
  --body: #4c4b47;
  --soft: #b8b5ae;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--paper); transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 86px;
  padding: 0 clamp(20px, 4vw, 54px);
  color: white;
}
.brand { justify-self: center; }
.brand img { width: clamp(112px, 10vw, 132px); height: auto; filter: brightness(0) invert(1); }
.header-cta { justify-self: end; font-size: 10px; font-weight: 600; letter-spacing: .17em; text-decoration: none; text-transform: uppercase; }
.header-cta span { margin-left: 9px; }

.hero {
  position: relative;
  min-height: clamp(620px, 84vh, 780px);
  display: flex;
  align-items: end;
  overflow: hidden;
  color: white;
  background: #2d2a25;
}
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url("./assets/hero.jpg") center 48% / cover no-repeat; }
.hero-shade { background: linear-gradient(90deg, rgba(13,13,12,.55) 0%, rgba(13,13,12,.18) 52%, rgba(13,13,12,.07) 100%), linear-gradient(0deg, rgba(0,0,0,.28), transparent 48%); }
.hero-content { position: relative; z-index: 2; width: min(620px, calc(100% - 48px)); margin: 0 0 clamp(54px, 8vh, 84px) clamp(22px, 6vw, 82px); }
.hero h1, h2, h3 { font-family: Optima, "Times New Roman", Georgia, serif; font-weight: 400; }
.hero h1 { margin: 0; max-width: 470px; font-size: clamp(35px, 4.6vw, 61px); line-height: 1.08; letter-spacing: -.015em; }
.hero-copy { max-width: 380px; margin: 17px 0 27px; font-size: clamp(14px, 1.15vw, 16px); line-height: 1.72; color: rgba(255,255,255,.83); }
.button { display: inline-flex; gap: 15px; align-items: center; padding: 15px 20px; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s; }
.button:hover { color: var(--ink); background: var(--paper); }

.intro { padding: clamp(62px, 9vw, 106px) clamp(22px, 6vw, 80px); text-align: center; background: var(--warm); }
.intro h2 { margin: 0; font-size: clamp(27px, 3.2vw, 43px); line-height: 1.18; letter-spacing: -.015em; }
.intro-copy { max-width: 510px; margin: 18px auto 0; color: var(--body); font-size: clamp(13px, 1.05vw, 15px); line-height: 1.8; }

.feature-section { padding: clamp(46px, 7vw, 90px) clamp(22px, 6vw, 80px) clamp(62px, 9vw, 112px); background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4.5vw, 54px); }
.feature-image { position: relative; overflow: hidden; background-position: center; background-size: cover; aspect-ratio: 1 / 1.08; }
.feature-nami { background-image: url("./assets/nami.jpg"); }
.feature-matcha { background-image: url("./assets/matcha.jpg"); }
.feature-copy { max-width: 470px; margin-top: clamp(20px, 2.5vw, 29px); }
.feature-copy h3 { margin: 0; font-size: clamp(24px, 2.5vw, 33px); line-height: 1.2; letter-spacing: -.012em; }
.feature-copy p { max-width: 360px; margin: 12px 0 20px; color: var(--body); font-size: clamp(13px, 1vw, 14px); line-height: 1.75; }

.signup { padding: clamp(54px, 7vw, 90px) clamp(22px, 6vw, 80px); color: white; background: var(--ink); }
.signup-inner {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(310px, 620px);
  justify-content: space-between;
  align-items: center;
  gap: clamp(32px, 6vw, 70px);
}
.signup h2 { margin: 0; font-size: clamp(27px, 3vw, 41px); line-height: 1.17; letter-spacing: -.015em; }
.signup-copy > p { max-width: 360px; margin-top: 14px; color: rgba(255,255,255,.73); font-size: clamp(13px, 1vw, 14px); line-height: 1.75; }
.signup-form { width: 100%; }
.signup-form > label:first-of-type { display: block; margin-bottom: 11px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.signup-form input[type="email"] { width: 100%; padding: 15px 17px; color: var(--ink); background: var(--paper); border: 0; outline: 0; font: 16px Optima, Georgia, serif; }
.signup-form input[type="email"]::placeholder { color: #77736c; }
.signup-submit { display: flex; width: 100%; gap: 10px; justify-content: space-between; margin-top: 18px; padding: 15px 20px; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); font: 600 10px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s; }
.signup-submit:hover { color: var(--ink); background: var(--paper); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 15px; color: rgba(255,255,255,.63); font-size: 10px; line-height: 1.55; }
.consent input { margin: 2px 0 0; accent-color: var(--paper); }
.form-message { min-height: 20px; margin: 14px 0 0; font-size: 12px; }
.form-message.form-error { color: #d4706f; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(13,13,12,.55);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal-overlay.is-open { opacity: 1; }
.modal-card {
  width: min(380px, 100%);
  padding: clamp(34px, 5vw, 46px) clamp(26px, 4vw, 40px);
  text-align: center;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(13,13,12,.28);
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
.modal-overlay.is-open .modal-card { transform: translateY(0); }
.modal-mark { display: block; margin-bottom: 14px; font-size: 22px; line-height: 1; color: var(--olive); }
.modal-card h3 { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: -.012em; }
.modal-copy { margin: 11px 0 0; color: var(--body); font-size: 13px; line-height: 1.7; }
.modal-close { display: block; width: 100%; margin: 28px 0 0; padding: 14px 20px; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); font: 600 10px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s; }
.modal-close:hover { color: var(--ink); background: transparent; }
.modal-overlay[hidden] { display: none; }

footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 30px; padding: clamp(46px, 6vw, 72px) clamp(22px, 6vw, 80px); color: var(--paper); background: var(--ink); }
.footer-logo img { width: clamp(118px, 11vw, 145px); height: auto; }
footer p { margin: 0; color: var(--soft); font-size: 11px; line-height: 1.7; text-align: center; }
.footer-links { display: flex; justify-content: end; gap: 28px; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
footer a { text-decoration: none; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-image { aspect-ratio: 1 / .96; max-height: 640px; }
  .signup-inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 600px) {
  .site-header { grid-template-columns: 1fr auto; height: 70px; }
  .site-header > span { display: none; }
  .brand { justify-self: start; }
  .brand img { width: 108px; }
  .hero { min-height: 610px; }
  .hero-image { background-position: 56% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(13,13,12,.58), rgba(13,13,12,.10)), linear-gradient(0deg, rgba(0,0,0,.38), transparent 56%); }
  .hero-content { width: calc(100% - 44px); margin: 0 22px 64px; }
  .hero h1 { max-width: 320px; font-size: 39px; }
  .intro { text-align: left; }
  .intro-copy { margin: 15px 0 0; }
  .feature-section { padding-top: 30px; }
  .feature-copy { max-width: 100%; }
  .signup { padding-top: 58px; }
  footer { grid-template-columns: 1fr; align-items: start; }
  footer p { text-align: left; }
  .footer-links { justify-content: start; }
}

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