/* Soryumi Co. — Shoku's washi paper, black ink and hanko seal, on the web. */

:root {
  --paper: #faf5ee;
  --paper-deep: #f1eadf;
  --card: #f4eee5;
  --ink: #1c1a17;
  --ink-2: #4d4842;
  --ink-3: #8a847b;
  --line: rgba(28, 26, 23, 0.12);
  --seal: #c4261c;
  --radius: 18px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15120f;
    --paper-deep: #1d1915;
    --card: #1f1b17;
    --ink: #f5f2ed;
    --ink-2: #c9c1b5;
    --ink-3: #8f877c;
    --line: rgba(245, 242, 237, 0.14);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--seal); }

img { max-width: 100%; display: block; }

.wrap {
  width: min(680px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: var(--ink);
  text-decoration: none;
}

.site-nav { display: flex; gap: 22px; }
.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover { color: var(--ink); }

/* Type — serif titles, as in the app. */

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  margin: 0 0 18px;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin: 48px 0 12px;
}

h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 8px;
}

p { margin: 0 0 16px; color: var(--ink-2); }
.lede { font-size: 21px; line-height: 1.45; color: var(--ink-2); }

ul { padding-left: 0; list-style: none; margin: 0 0 18px; }
ul li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 10px;
  color: var(--ink-2);
}
ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--seal);
}

strong { color: var(--ink); font-weight: 650; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* Hero */

.hero { padding: 48px 0 24px; }

.hero-mark {
  width: 84px;
  height: 84px;
  margin: 0 0 22px;
}

/* Buttons — ink capsules, paper text. */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.button:hover { opacity: 0.88; }

.button.quiet {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.button.disabled {
  background: var(--paper-deep);
  color: var(--ink-3);
  cursor: default;
}
.button.disabled:hover { opacity: 1; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }

/* Cards — a sheet of paper on the paper. */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 14px;
}

/* Legal pages */

.legal .effective {
  font-weight: 650;
  color: var(--ink);
}
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal p, .legal li { font-size: 16.5px; }

/* Footer */

.site-footer {
  margin-top: 72px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.site-footer .links a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.site-footer a { color: var(--ink-2); }

@media (max-width: 480px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav { gap: 16px; }
}

/* The Shoku page */

.app .wrap-wide { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }

.app .hero {
  text-align: center;
  padding: 56px 0 0;
}
.app .hero .hero-mark { margin: 0 auto 22px; width: 96px; height: 96px; }
.app .hero h1 { font-size: clamp(48px, 9vw, 76px); line-height: 1; }
.app .hero .lede { max-width: 30ch; margin: 0 auto 10px; font-size: clamp(19px, 2.6vw, 24px); }
.app .hero .actions { justify-content: center; margin: 26px 0 0; }

/* Four up under the hero: the three tabs and the passport. */
.trio {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 72px 0 0;
}
.trio .card { margin: 0; }
.trio h3 { margin: 0 0 6px; }
.trio p { margin: 0; font-size: 15px; }

/* Feature blocks: words only, two to a row, generous air between. */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 56px;
  padding: 64px 0 8px;
}
.feature {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.feature .words { max-width: 46ch; }
.feature .words p { font-size: 17px; line-height: 1.5; margin: 0; }
.feature h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 10px; }

@media (max-width: 980px) { .trio { grid-template-columns: 1fr 1fr; } }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .trio { grid-template-columns: 1fr; }
}
