/* Sukkiri teaser. Static, no build step.
   Colours and type are the app's own (apps/web/src/tokens.css): salt, straw, clay,
   and the deep purple of a mawashi. Paper lies on a desk; the belt is purple. */

:root {
  --salt: #f7f4ec;
  --salt-bright: #fffdf8;
  --salt-dim: #ebe5d6;
  --straw: #d9bf85;
  --straw-pale: #e6d6ac;
  --straw-wash: #f3ead0;
  --straw-deep: #8a6f2f;
  --clay: #b4623f;
  --clay-deep: #8a4528;
  --clay-pale: #f0d9cb;
  --mawashi: #3a1d52;
  --mawashi-deep: #1b1222;
  --mawashi-soft: #6b4a86;
  --mawashi-pale: #cdb4e6;
  --belt-line: #52336d;
  --ink: #241a2b;
  --ink-soft: #655a6c;

  --sprite-ink: #1c2030;
  --sprite-light: #4a5278;
  --sprite-skin: #e8c9a0;
  --project-blue: #2f6fd0;
  --project-green: #2e8b57;
  --project-rose: #c74b7a;

  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-paper: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --font-brush: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Songti SC", "Noto Serif CJK JP", "Noto Serif JP",
    "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --gutter: clamp(16px, 5vw, 56px);
  --page: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  margin: 0;
  background: var(--salt-dim);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--mawashi); text-underline-offset: 0.18em; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- the belt: wordmark, pitch, and the inbox ---------- */

.belt {
  background: var(--mawashi);
  color: var(--salt);
  padding: 0 var(--gutter) clamp(40px, 7vw, 88px);
}
.belt-inner { max-width: var(--page); margin: 0 auto; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.wordmark {
  display: inline-flex; align-items: baseline; gap: 10px;
  color: var(--salt); text-decoration: none;
  font-family: var(--font-brush); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.02em; line-height: 1.2;
}
.wordmark small { font-family: var(--font-ui); font-weight: 400; font-size: 0.875rem; letter-spacing: 0; color: var(--mawashi-pale); }
.top-note { font-size: 0.875rem; color: var(--mawashi-pale); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(16px, 4vw, 48px);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); align-items: start; }
}

.pitch h1 {
  font-family: var(--font-paper);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.pitch-sub {
  margin-top: 22px;
  max-width: 34rem;
  font-family: var(--font-paper);
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.5;
  color: var(--mawashi-pale);
}

/* sign-up */
.signup { margin-top: 30px; max-width: 30rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup input[type="email"] {
  flex: 1 1 13rem; min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--belt-line); border-radius: 6px;
  background: var(--mawashi-deep); color: var(--salt);
}
.signup input::placeholder { color: var(--mawashi-pale); opacity: 0.7; }
.signup button {
  padding: 12px 18px;
  border: 0; border-radius: 6px;
  background: var(--straw); color: var(--mawashi-deep);
  font-weight: 600; cursor: pointer;
}
.signup button:hover { background: var(--straw-pale); }
.signup-fine { margin-top: 10px; font-size: 0.875rem; color: var(--mawashi-pale); }

/* ---------- the inbox demo ---------- */

.demo { min-width: 0; }
.demo-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--belt-line);
  font-size: 0.875rem; color: var(--mawashi-pale);
}
.demo-head strong { color: var(--salt); font-weight: 600; }
.demo-hint { font-size: 0.875rem; color: var(--mawashi-pale); margin-top: 14px; }

.sheets { display: grid; gap: 14px; }
.sheet {
  position: relative;
  background: var(--salt-bright);
  color: var(--ink);
  border-radius: 4px;
  padding: 16px 18px 16px;
  box-shadow: 0 1px 0 var(--straw-pale), 0 14px 26px -16px rgb(0 0 0 / 0.55);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.sheet.is-leaving { opacity: 0; transform: translateX(28px) rotate(1.2deg); }

.sheet-head { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--ink-soft); }
.sheet-from { font-weight: 600; color: var(--mawashi-soft); }
.sheet-topic { margin-left: auto; white-space: nowrap; }
.sheet-title { margin-top: 8px; font-family: var(--font-paper); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.sheet-body { margin-top: 6px; font-family: var(--font-paper); font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }
.sheet-source { margin-top: 8px; font-size: 0.875rem; color: var(--ink-soft); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.choices button {
  padding: 8px 14px;
  border: 1px solid var(--straw); border-radius: 999px;
  background: var(--straw-wash); color: var(--ink);
  cursor: pointer;
}
.choices button:hover { background: var(--straw-pale); }
.choices button.is-main { background: var(--mawashi); border-color: var(--mawashi); color: var(--salt); }
.choices button.is-main:hover { background: var(--mawashi-soft); border-color: var(--mawashi-soft); }

.filed {
  margin-top: 14px;
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid var(--clay-deep); border-radius: 4px;
  color: var(--clay-deep);
  font-family: var(--font-paper); font-weight: 600; font-size: 0.9375rem;
  transform: rotate(-2deg);
}

.sprite { flex: none; display: block; width: 32px; height: 32px; image-rendering: pixelated; }
.sprite-k { fill: var(--sprite-ink); }
.sprite-l { fill: var(--sprite-light); }
.sprite-s { fill: var(--sprite-skin); }
.sprite-c { fill: var(--project, var(--sprite-ink)); }
.glyph { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--straw-wash); color: var(--straw-deep); }
.glyph svg { width: 20px; height: 20px; display: block; }

/* the cleared inbox */
.cleared { text-align: center; padding: clamp(28px, 6vw, 56px) 0 8px; }
.cleared[hidden] { display: none; }
.cleared svg { width: 84px; height: 84px; }
.cleared-word { margin-top: 10px; font-family: var(--font-brush); font-weight: 900; font-size: clamp(2.4rem, 9vw, 3.75rem); line-height: 1.2; letter-spacing: 0.02em; color: var(--salt); }
.cleared-line { margin-top: 6px; font-family: var(--font-paper); font-size: 1.125rem; color: var(--mawashi-pale); }
.cleared button {
  margin-top: 20px; padding: 8px 14px;
  border: 1px solid var(--belt-line); border-radius: 999px;
  background: transparent; color: var(--salt); cursor: pointer;
}
.cleared button:hover { background: var(--belt-line); }
.cleared.is-fresh svg { animation: settle 0.5s ease-out both; }
@keyframes settle { from { transform: scale(0.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- the desk: what it does ---------- */

.desk { padding: clamp(44px, 7vw, 96px) var(--gutter); }
.desk-inner { max-width: var(--page); margin: 0 auto; }
.desk h2 {
  font-family: var(--font-paper); font-weight: 600;
  font-size: clamp(1.75rem, 3.8vw, 2.5rem); line-height: 1.12; letter-spacing: -0.01em;
  max-width: 22ch; text-wrap: balance;
}

.lands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 18px;
  margin-top: clamp(24px, 4vw, 40px);
}
.land {
  background: var(--salt-bright);
  border-radius: 4px;
  padding: 22px 22px 24px;
  box-shadow: 0 1px 0 var(--straw-pale), 0 10px 22px -14px rgb(58 29 82 / 0.35);
}
.land h3 { font-family: var(--font-paper); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; }
.land p { margin-top: 8px; font-family: var(--font-paper); font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }

.rules { border-top: 1px solid var(--straw); }
.rules ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 24px clamp(24px, 4vw, 48px);
  margin-top: clamp(24px, 4vw, 40px);
}
.rules li { padding-left: 16px; border-left: 3px solid var(--clay); }
.rules strong { display: block; font-family: var(--font-paper); font-weight: 600; font-size: 1.1875rem; }
.rules span { display: block; margin-top: 4px; color: var(--ink-soft); }

/* the name */
.name { background: var(--salt); border-top: 1px solid var(--straw-pale); border-bottom: 1px solid var(--straw-pale); }
.name-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 48px; align-items: center; }
@media (min-width: 760px) { .name-inner { grid-template-columns: auto minmax(0, 1fr); } }
.name .name-word { font-family: var(--font-brush); font-weight: 900; font-size: clamp(3rem, 11vw, 6rem); line-height: 1.1; color: var(--mawashi); letter-spacing: 0.02em; }
.name p { font-family: var(--font-paper); font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.55; max-width: 38rem; }
.name div p + p { margin-top: 10px; color: var(--ink-soft); font-size: 1.0625rem; }

/* ---------- footer ---------- */

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto;
  padding: 24px var(--gutter) 36px;
  font-size: 0.875rem; color: var(--ink-soft);
}
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--mawashi); }

@media (prefers-reduced-motion: reduce) {
  .sheet { transition: none; }
  .cleared.is-fresh svg { animation: none; }
}
