/* Usimaki.com shared styles. Plain CSS, no build step. */

:root {
  --paper: #f6f4ee;
  --surface: #ffffff;
  --ink: #1b241f;
  --muted: #5a665f;
  --line: #dcd8cc;
  --accent: #1f5a3d;
  --accent-ink: #ffffff;
  --water: #2378a3;
  --tint: #e9efe6;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121815;
    --surface: #1a221e;
    --ink: #e8ece6;
    --muted: #a3ada6;
    --line: #2e3a33;
    --accent: #7cc79a;
    --accent-ink: #0f1512;
    --water: #6db9de;
    --tint: #1d2822;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem;
}
.skip:focus { left: 0; z-index: 10; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.01em; color: var(--ink); text-decoration: none;
}
.brand svg { width: 1.7rem; height: 1.7rem; }
.nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.98rem;
  padding: 0.25rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Type */

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.9rem;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin-top: 1.2rem; }

/* Sections */

.hero { padding: 4.5rem 0 4rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }

section { padding: 3.5rem 0; }
section.band { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin-top: 0.8rem; }

.actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-block; padding: 0.75rem 1.3rem; border-radius: 6px;
  font-weight: 600; text-decoration: none; border: 1.5px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--accent); }
.btn:hover { filter: brightness(1.1); }

/* Cards */

.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .num {
  font-family: var(--mono); font-size: 0.8rem; color: var(--water);
  display: block; margin-bottom: 0.8rem;
}

.project {
  display: grid; gap: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  color: inherit; text-decoration: none;
}
@media (min-width: 48rem) { .project { grid-template-columns: 1fr 1fr; } }
.project-art { background: var(--tint); padding: 1.5rem; display: grid; place-items: center; }
.project-body { padding: 2rem; display: flex; flex-direction: column; gap: 0.9rem; justify-content: center; }
.project-body p { color: var(--muted); }
.project:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.more { color: var(--accent); font-weight: 600; }

.status {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  font-size: 0.82rem; font-weight: 600; padding: 0.25rem 0.7rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  background: var(--paper);
}
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--water); }

/* Diagram */

.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.diagram svg { width: 100%; }
.d-line { stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-body { fill: var(--tint); stroke: var(--ink); stroke-width: 2; }
.d-wheel { fill: var(--ink); }
.d-hose { stroke: var(--accent); fill: none; stroke-width: 5; stroke-linecap: round; }
.d-water { stroke: var(--water); fill: none; stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.d-fill-water { fill: var(--water); }
.d-fill-accent { fill: var(--accent); }
.d-thin { stroke: var(--muted); fill: none; stroke-width: 1; stroke-dasharray: 4 4; }
.d-label { font-family: var(--sans); font-size: 13px; fill: var(--muted); }
.d-label-strong { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--ink); }

/* Spec table */

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { width: 13rem; font-weight: 600; color: var(--muted); }

/* Steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.steps .dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--muted); margin-top: 0.45rem; }
.steps .done .dot { background: var(--accent); border-color: var(--accent); }
.steps .now .dot { background: var(--water); border-color: var(--water); }
.steps strong { display: block; }
.steps span.note { color: var(--muted); font-size: 0.95rem; }

figure { margin: 0; }
figure img { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.7rem; }

.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } }

.contact-line { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2rem); margin-top: 1rem; overflow-wrap: anywhere; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
