@font-face { font-family: Caprasimo; src: url(/assets/Caprasimo-Regular.ttf); font-display: swap; }
@font-face { font-family: Figtree; src: url(/assets/Figtree-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(/assets/Figtree-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(/assets/Figtree-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --bg: #fbfaf7;
  --surface: #f1eeea;
  --text: #1c1714;
  --muted: #67625c;
  --accent: #ef6505;
  --accent-dark: #a24100;
  --divider: #1c171424;
  --serif: Caprasimo, "Hiragino Mincho ProN", "Yu Mincho", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 Figtree, "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }

header { padding: 20px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 26px var(--serif); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }

footer { margin-top: 96px; padding: 32px 0 48px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: inherit; }
footer span { margin-left: auto; }

.badge img { height: 54px; width: auto; }

/* Landing */
.landing { padding-top: 56px; }
.landing h1 { font-size: clamp(40px, 8vw, 68px); letter-spacing: 0.04em; text-align: center; }
.landing .badge { display: block; width: fit-content; margin: 36px auto 0; }

.shots {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 40px 24px; margin: 0 -24px;
}
.shots img {
  width: 260px; flex: none; scroll-snap-align: center;
  border-radius: 36px; border: 6px solid var(--text);
  box-shadow: 0 24px 48px -24px #1c171466;
}
/* Centered when they fit, scrollable from the first one when they don't. */
.shots img:first-child { margin-left: auto; }
.shots img:last-child { margin-right: auto; }

.message { max-width: 640px; margin: 32px auto 0; font-size: 18px; line-height: 2.1; }
.message p { margin: 0 0 1.6em; }
.message ul { list-style: "- "; padding: 0 0 0 2.5em; margin: 0 0 1.6em; border-left: 3px solid var(--accent); }

/* Laptops: copy and download on the left, fanned phones on the right. */
@media (min-width: 960px) {
  .landing {
    display: grid; column-gap: 48px; align-items: start; padding-top: 80px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "title shots" "message shots" "badge shots";
  }
  .landing h1 { grid-area: title; font-size: 56px; text-align: left; }
  .landing .badge { grid-area: badge; margin: 36px 0 0; }
  .message { grid-area: message; max-width: none; margin: 28px 0 0; font-size: 17px; line-height: 2; }
  .message p, .message ul { margin-bottom: 1.2em; }
  .shots { grid-area: shots; align-self: center; overflow: visible; padding: 0; margin: 0; gap: 0; }
  /* Sized to the column: 40% + 48% + 40% minus two 18% overlaps leaves 8% for the tilt. */
  .shots img { width: 40%; flex: none; border-radius: 32px; }
  .shots img:nth-child(1) { transform: translateY(40px) rotate(-8deg); margin-right: -18%; }
  .shots img:nth-child(2) { width: 48%; z-index: 1; box-shadow: 0 40px 64px -24px #1c171480; }
  .shots img:nth-child(3) { transform: translateY(40px) rotate(8deg); margin-left: -18%; }
}

/* Text pages */
.page h1 { font-size: 40px; margin: 40px 0 8px; }
.page h2 { font-size: 22px; margin: 40px 0 8px; }
.page .lead { color: var(--muted); }

form { display: grid; gap: 18px; margin-top: 32px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, textarea {
  font: inherit; font-weight: 400; color: inherit;
  background: var(--surface); border: 1px solid transparent; border-radius: 16px; padding: 12px 16px;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 180px; resize: vertical; }
button {
  font: 600 17px Figtree, sans-serif; color: #fff; background: var(--accent);
  border: 0; border-radius: 999px; padding: 14px 28px; cursor: pointer; justify-self: start;
}
.hp { position: absolute; left: -9999px; }
.notice { display: none; background: var(--surface); border-radius: 16px; padding: 16px 20px; margin-top: 24px; }
.notice:target { display: block; }

/* Recipe */
.recipe .brewer { width: 88px; height: 88px; border-radius: 50%; background: #f7f6f5; padding: 5px; margin-top: 24px; }
.recipe h1 { font-size: 36px; margin: 14px 0 8px; }
.recipe .by { font-weight: 600; }
.recipe .source { display: inline-block; font-size: 15px; }
.recipe .note { color: #4b4742; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: 26px; padding: 16px 8px; text-align: center; margin: 24px 0 32px; }
.stats img { width: 34px; height: 34px; margin: 0 auto 4px; }
.stats small { display: block; color: var(--muted); font-size: 13px; }
.stats b { font: 20px var(--serif); }
.steps-head { font-size: 22px; }
.steps { list-style: none; padding: 0; margin: 12px 0 0; }
.steps li { display: grid; grid-template-columns: 52px 1fr auto; gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.steps time { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps b { font-weight: 600; }
.steps .to { color: var(--muted); font-size: 15px; }
.steps p { grid-column: 2 / 4; margin: 2px 0 0; color: #4b4742; font-size: 15px; }
.get { background: var(--surface); border-radius: 26px; padding: 28px; margin-top: 40px; text-align: center; }
.get h2 { font-size: 24px; margin-bottom: 20px; }
.get .qr { width: 180px; margin: 0 auto 20px; }
.get .qr svg { display: block; border-radius: 16px; }
.get .badge { display: inline-block; }
