/* jiojio Lab — workshop paper theme. No external requests. */
:root {
  --bg: #faf8f2;
  --surface: #ffffff;
  --text: #16140f;
  --text-2: #5c584e;
  --border: #e0dcd0;
  --dot: #d9d4c4;
  --accent: #d97757;
  --accent-hover: #c4613f;
  --accent-text: #a8482a;
  --on-accent: #0f0d09;
  --band-bg: #16140f;
  --band-text: #f3efe6;
  --band-text-2: #b9b4a6;
  --shadow: 0 1px 0 rgba(22, 20, 15, .04), 0 8px 24px -16px rgba(22, 20, 15, .25);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --surface: #1d1b18;
    --text: #f3efe6;
    --text-2: #aaa596;
    --border: #35322b;
    --dot: #2a2823;
    --accent-text: #e58a69;
    --band-bg: #1d1b18;
    --band-text: #f3efe6;
    --band-text-2: #aaa596;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.2px);
  background-size: 24px 24px;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.wordmark {
  font-family: var(--mono);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-lab { color: var(--accent-text); }
.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 2px;
}
.lang button {
  font: inherit;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1;
  min-height: 32px;
  padding: 0 10px;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 8px; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.link-quiet:hover { color: var(--accent-text); }

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 28px; height: 28px; color: var(--accent-text); }
.icon-check { width: 22px; height: 22px; margin-top: 3px; color: var(--accent-text); }

/* Typography helpers */
.eyebrow {
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.eyebrow-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Hero */
.hero { padding: 56px 0 64px; }
.hero h1 {
  margin-top: 16px;
  max-width: 14ch;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 750;
  text-wrap: balance;
  white-space: pre-line;
}
:lang(ja) .hero h1,
:lang(zh-Hans) .hero h1 { max-width: none; }
.lead {
  margin-top: 24px;
  max-width: 62ch;
  font-size: 1.125rem;
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 32px;
}

/* Sections */
.section { padding: 48px 0; }

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.card {
  padding: 22px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.card p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: .96875rem;
}

.steps {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}
.step {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: .875rem;
  color: var(--accent-text);
}
.step h3 {
  margin-top: 6px;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.step p { margin-top: 10px; color: var(--text-2); max-width: 36ch; }

/* Statement band */
.band {
  margin: 24px 0;
  padding: 64px 0;
  background: var(--band-bg);
  color: var(--band-text);
}
.band-title {
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 750;
  text-wrap: balance;
}
.band-title span { display: inline-block; }
.band-accent { color: var(--accent); }
.band-sub {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 1.125rem;
  color: var(--band-text-2);
}

/* Straight talk */
.checks { display: grid; gap: 18px; max-width: 720px; }
.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Contact */
.section-contact { padding-bottom: 72px; }
.mail-big {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(1.5rem, 7.2vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.mail-big:hover { color: var(--accent-text); }
.contact-line { margin-top: 24px; max-width: 52ch; font-size: 1.125rem; color: var(--text-2); }
.contact-loc {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .875rem;
  color: var(--text-2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: .875rem;
  color: var(--text-2);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 20px;
  padding-bottom: 28px;
}
.site-footer a { text-underline-offset: 4px; }
.site-footer a:hover { color: var(--accent-text); }

/* Narrow phones */
@media (max-width: 420px) {
  .btn-sm { padding: 0 12px; }
  .lang button { padding: 0 8px; }
}

/* Tablet and up */
@media (min-width: 640px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .header-row { flex-wrap: nowrap; }
  .hero { padding: 88px 0 96px; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card { padding: 26px 24px 28px; }
  .band { padding: 96px 0; }
}

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 32px; }
  .step { border-bottom: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
  .hero { padding: 112px 0 120px; }
}
