/* getseijaku.com · paper, ink and one vermilion seal. Same tokens as the extension (extension/ui.css). */
@font-face {
  font-family: "Shippori Mincho";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/shippori-mincho.woff2") format("woff2");
}

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --surface: #fbf9f4;
  --ink: #1f1e1b;
  --ink-2: #5e5a52;
  --ink-3: #8c877c;
  --line: #e2dbcd;
  --line-2: #d3cbbb;
  --shu: #b5452c;
  --grain: .5;
  --shadow: 0 1px 2px #1f1e1b0d, 0 30px 60px -36px #1f1e1b59;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --paper-2: #1c1b18;
    --surface: #1f1e1b;
    --ink: #ece7dc;
    --ink-2: #aba497;
    --ink-3: #7f796e;
    --line: #2e2c27;
    --line-2: #3b3833;
    --shu: #e07b5a;
    --grain: .25;
    --shadow: 0 1px 2px #0006, 0 30px 60px -30px #000c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Paper grain. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: var(--grain);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; } }

h1, h2, h3, p, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p { word-break: auto-phrase; font-feature-settings: "palt"; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 6px; }
svg { display: block; }
main { flex: 1; width: 100%; }

/* ---------- Header and footer ---------- */

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 22px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 26px; height: 26px; color: var(--ink); }
.logo.small { width: 18px; height: 18px; }
.wordmark { font: 500 20px/1 var(--serif); letter-spacing: .01em; }
.seal { font: 500 12px/1 var(--serif); color: var(--shu); letter-spacing: .15em; margin-top: 2px; }
.langs { display: flex; gap: 4px; font-size: 13px; color: var(--ink-3); }
.langs a, .langs span { padding: 6px 8px; border-radius: 8px; text-decoration: none; }
.langs a:hover { color: var(--ink); background: var(--paper-2); }
.langs [aria-current] { color: var(--ink); }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3);
}
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink-2); margin-right: auto; font-family: var(--serif); font-size: 16px; }
.foot-brand .seal { font-size: 11px; }

/* ---------- Home ---------- */

.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(32px, 8vh, 88px) var(--gutter) clamp(56px, 9vh, 96px);
}
.hero-enso { width: clamp(132px, 22vw, 208px); height: auto; aspect-ratio: 1; color: var(--ink); margin-bottom: clamp(28px, 5vh, 44px); }
.brush-path { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
@media (prefers-color-scheme: dark) { .hero-enso image { filter: invert(.9); } }
.kicker { font-size: 13px; letter-spacing: .08em; color: var(--ink-3); }
.hero h1 { font-size: clamp(42px, 7.4vw, 82px); line-height: 1.04; letter-spacing: -.02em; margin-top: 14px; }
.hero h1:lang(ja) { letter-spacing: .02em; line-height: 1.2; }
.lead { max-width: 33em; margin-top: 22px; font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-2); }
.cta-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500;
  box-shadow: 0 10px 24px -14px #1f1e1b99;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cta svg { width: 20px; height: 20px; }
a.cta:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -16px #1f1e1bb3; }
a.cta:active { transform: translateY(0); }
.cta.soon { background: transparent; color: var(--ink-2); border: 1px dashed var(--line-2); box-shadow: none; font-weight: 400; font-size: 15px; }
.cta-note { font-size: 14px; color: var(--ink-3); }
.reassure { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* Load-in: the ensō draws itself, then the words settle. */
@media (prefers-reduced-motion: no-preference) {
  .home .brush-path { animation: brush 1.7s cubic-bezier(.55, .05, .3, 1) .15s both; }
  .home .hero > :not(svg) { animation: rise .9s var(--ease) both; }
  .home .kicker { animation-delay: 1.15s !important; }
  .home .hero h1 { animation-delay: 1.25s !important; }
  .home .lead { animation-delay: 1.4s !important; }
  .home .cta-row { animation-delay: 1.55s !important; }
  .home .reassure { animation-delay: 1.65s !important; }
  .home .film { animation: rise 1.1s var(--ease) 1.7s both; }
}
@keyframes brush { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.film { padding: 0 var(--gutter); }
.frame {
  position: relative; max-width: 1040px; margin: 0 auto;
  border-radius: 18px; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.sound {
  position: absolute; right: 12px; top: 12px;
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  border: 1px solid #1f1e1b1a; background: #fbf9f4cc; color: #1f1e1b;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer;
  transition: background .2s var(--ease);
}
.sound:hover { background: #fbf9f4; }
.sound svg { width: 20px; height: 20px; }
.sound .waves { display: none; }
.sound[aria-pressed="true"] .waves { display: block; }
.sound[aria-pressed="true"] .x { display: none; }

.how { max-width: 1120px; margin: 0 auto; padding: clamp(72px, 12vh, 128px) var(--gutter) 0; }
.how h2, .quiet h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; text-align: center; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; }
.steps li { padding: 28px clamp(18px, 2.4vw, 32px) 8px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps li:last-child { padding-right: 0; }
.num { display: block; font: 500 34px/1 var(--serif); color: var(--shu); margin-bottom: 22px; }
.steps h3 { font-size: 22px; line-height: 1.25; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.still {
  max-width: 40em; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--line);
  text-align: center; color: var(--ink-2);
}

.quiet { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 680px; margin: 0 auto; padding: clamp(88px, 14vh, 140px) var(--gutter) clamp(88px, 14vh, 140px); }
.quiet-mark { width: 40px; height: 40px; color: var(--shu); margin-bottom: 26px; }
.quiet p { margin-top: 14px; color: var(--ink-2); }
.arrow { display: inline-block; margin-top: 18px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.arrow:hover { border-color: var(--ink); }
.arrow span { display: inline-block; transition: transform .25s var(--ease); }
.arrow:hover span { transform: translateX(3px); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; margin-top: 28px; }
  .steps li, .steps li:first-child, .steps li:last-child { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 20px; }
  .num { margin-bottom: 14px; font-size: 28px; }
  .sound { right: 8px; top: 8px; width: 34px; height: 34px; }
  .frame { border-radius: 12px; }
}
@media (max-width: 640px) {
  .has-square .frame { max-width: 520px; }
  .has-square .frame video { aspect-ratio: 1; }
}
@media (max-width: 480px) {
  .langs { font-size: 12px; }
  .langs a, .langs span { padding: 6px 5px; }
  .wordmark { font-size: 18px; }
  .seal { display: none; }
  .foot-brand .seal { display: inline; }
}

/* ---------- Privacy and 404 ---------- */

.prose { max-width: 680px; margin: 0 auto; padding: clamp(40px, 8vh, 80px) var(--gutter) 96px; }
.prose h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.1; }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose p { margin-top: 10px; color: var(--ink-2); }
.prose .updated { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.prose .contact { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose.center { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 18vh; }
.prose.center h1 { font-size: clamp(28px, 4vw, 38px); }
