@font-face { font-family: "Jost"; src: url("/assets/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #e4ddd7;
  --paper: #f6f3ef;
  --ink: #1b1a19;
  --muted: #4f4a45;
  --gutter: clamp(20px, 3.9vw, 56px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: "Jost", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: #000; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* header + footer overlay the hero */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); font-size: 14px; letter-spacing: 0.08em; }
.bar a { text-decoration: none; }
.top { position: absolute; inset: 0 0 auto 0; height: 76px; z-index: 2; }
.wordmark { font-size: 20px; letter-spacing: 0.34em; margin-right: -0.34em; text-decoration: none; color: var(--ink); }
.bottom { position: absolute; inset: auto 0 0 0; min-height: 64px; z-index: 2; font-size: 13px; letter-spacing: 0.02em; color: #3b3732; gap: 8px 24px; flex-wrap: wrap; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.hero picture, .hero img.bag { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img.bag { object-fit: cover; object-position: 50% 50%; }

.copy { position: absolute; z-index: 2; left: 66.6%; top: 50%; transform: translateY(-50%); width: min(380px, 28vw); display: flex; flex-direction: column; gap: 22px; }
h1 { margin: 0; text-wrap: balance; font-weight: 500; font-size: clamp(40px, 3.6vw, 56px); line-height: 1.02; letter-spacing: -0.01em; }
.sub { margin: 0; font-size: 18px; }
form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
label { font-size: 13px; letter-spacing: 0.06em; }
input[type="email"] { font: inherit; font-size: 16px; height: 52px; padding: 0 16px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 0; width: 100%; }
button { font: inherit; font-size: 16px; font-weight: 500; height: 52px; border: 0; background: var(--ink); color: var(--paper); letter-spacing: 0.04em; cursor: pointer; border-radius: 0; }
button:hover { background: #000; }
.note { margin: 0; font-size: 14px; color: var(--muted); }
.legal { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

.bag-cut { display: none; }

/* phones and narrow tablets: one continuous ground, cut-out bag, text below */
@media (max-width: 900px) {
  .hero { min-height: 0; overflow: visible; background: var(--ground); }
  .hero picture { display: none; }
  .top { position: relative; height: 64px; justify-content: center; background: transparent; }
  .top .side { display: none; }
  .wordmark { font-size: 15px; }
  .bag-cut { display: block; height: min(38vh, 330px); min-height: 240px; width: auto; margin: 20px auto 0; filter: drop-shadow(0 22px 26px rgba(60, 45, 30, .20)); }
  .copy { position: static; transform: none; width: auto; max-width: 520px; margin: 0 auto; padding: 36px 24px 8px; gap: 16px; }
  h1 { font-size: 36px; }
  .sub { font-size: 16px; }
  input[type="email"] { background: var(--paper); }
  .bottom { position: static; padding: 28px 24px 32px; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--muted); }
}

/* text pages */
.page { background: var(--paper); min-height: 100vh; }
.page .top { position: relative; background: var(--ground); justify-content: center; }
.page main { max-width: 680px; margin: 0 auto; padding: 48px 24px 80px; }
.page h1 { font-size: 36px; margin-bottom: 24px; }
.page h2 { font-size: 18px; font-weight: 500; margin: 32px 0 8px; }
.page p { margin: 0 0 12px; }

@media (prefers-reduced-motion: no-preference) {
  .copy { animation: rise .7s .15s ease-out both; }
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
}
