/* ============================================================
   Unvoiced.io — styles.css
   Editorial, quiet, confident. Rekimoto-paper meets terminal.
   Consolidated from Claude Design handoff (colors_and_type.css
   + Homepage.html inline styles) with responsive + form additions.
   ============================================================ */

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Tokens --- */
:root {
  /* Color */
  --ink: #0a0a0a;
  --dark: #1f1f1f;
  --muted: #6b6b6b;
  --hint: #bfbfbf;
  --cream-2: #edeae3;
  --cream-1: #f8f6f0;
  --sky: #6fa7b8;
  --sky-dk: #3f7a8c;

  /* Semantic */
  --fg: var(--dark);
  --fg-strong: var(--ink);
  --fg-muted: var(--muted);
  --fg-hint: var(--hint);
  --fg-accent: var(--sky-dk);
  --bg: var(--cream-1);
  --bg-alt: var(--cream-2);
  --rule: var(--hint);
  --accent: var(--sky-dk);
  --accent-lg: var(--sky);

  /* Type */
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --mono: "DotGothic16", "Menlo", "Courier New", monospace;

  /* Tracking */
  --track-label: 0.16em;
  --track-cta: 0.18em;
  --track-group: 0.12em;

  /* Motion */
  --fade-in: 600ms ease-out;
  --hover: 100ms ease-out;

  /* Rules */
  --rule-weight: 0.5px;
}

/* --- Base --- */
html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--sky);
  color: var(--bg);
}

a {
  text-decoration: none;
  border: 0;
  color: inherit;
}

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

/* --- Page scaffold --- */
.page {
  min-height: 100vh;
  padding: 40px 48px 24px;
}

.col {
  max-width: 680px;
  margin: 0 auto;
}

/* --- Nav --- */
.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 20px;
}

.nav__mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sky-dk);
  cursor: pointer;
}

.nav__items {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--dark);
  display: flex;
  align-items: baseline;
}

.nav__items a {
  color: var(--dark);
  cursor: pointer;
  transition: color var(--hover);
}

.nav__items a:hover {
  color: var(--sky-dk);
}

.nav__sep {
  color: var(--hint);
  margin: 0 0.8em;
}

/* --- Hero --- */
.hero {
  padding-top: 100px;
  padding-bottom: 0;
}

.meta-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sky-dk);
  margin-bottom: 36px;
}

.h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 32px 0;
}

.h1 span {
  font-weight: 400;
  display: block;
}

.sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  color: var(--dark);
  margin: 0 0 28px 0;
}

.positioning {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--dark);
  margin: 0 0 40px 0;
  border: 0;
  padding: 0;
}

.positioning .hl {
  background-image: linear-gradient(to top, var(--sky) 0, var(--sky) 2px, transparent 2px);
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
}

.pullquote {
  border-left: 2px solid var(--sky);
  padding-left: 20px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--dark);
  margin: 0;
}

.pullquote__attrib {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sky-dk);
  padding-left: 22px;
  margin-top: 12px;
}

/* When the pullquote sits after body paragraphs (e.g. under § 001),
   give it extra breathing room so it reads as a closing flourish
   rather than the next paragraph. */
.pullquote--after-body {
  margin-top: 40px;
}

/* When an h2 follows a pullquote it opens a new movement within the same
   section — more air than a paragraph break, less than a section break. */
.pullquote + .h2 {
  margin-top: 64px;
}

/* --- Section framing --- */
.section {
  padding-top: 96px;
  border-top: var(--rule-weight) solid var(--hint);
  margin-top: 120px;
}

.section--first {
  margin-top: 140px;
}

.section-marker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 40px;
  display: flex;
  gap: 24px;
}

.section-marker__num {
  color: var(--sky-dk);
}

.section-marker__name {
  color: var(--muted);
}

/* --- Headings --- */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 40px 0;
}

.h2 span {
  font-style: normal;
}

.h2--focus {
  font-weight: 500;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.h2--focus span {
  font-weight: 400;
  display: block;
}

.h2--large {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* --- Body copy ---
   All 17px body-size text shares font-size + line-height so paragraphs,
   project hooks, and person bios read as one voice. Vertical rhythm
   (margins) stays context-specific where a tighter pairing is needed. */
p.body,
.project__hook,
.person__bio {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark);
}

p.body {
  margin: 0 0 28px 0;
}

p.body span {
  font-style: normal;
}

p.body:last-child {
  margin-bottom: 0;
}

/* --- Projects --- */
.group-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--track-group);
  color: var(--sky-dk);
  margin-top: 56px;
  margin-bottom: 28px;
}

/* First group-label in a section sits directly under the section-marker;
   no extra top gap needed. */
.section-marker + .group-label {
  margin-top: 0;
}

.project {
  padding-bottom: 36px;
  display: block;
  cursor: default;
  color: inherit;
}

a.project {
  cursor: pointer;
}

.project__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.project__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  transition: color var(--hover);
}

a.project:hover .project__name {
  color: var(--sky-dk);
}

.project__status {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

.project__hook {
  color: var(--muted);
  margin: 8px 0 0 0;
}

/* --- People --- */
.people__lede {
  margin-bottom: 56px;
}

.person {
  max-width: 680px;
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
}

.person:last-child {
  margin-bottom: 0;
}

.person__figure {
  margin: 0;
}

.person__frame {
  width: 160px;
  height: 200px;
  overflow: hidden;
  background: var(--cream-2) center / cover no-repeat;
  border: 0.5px solid var(--hint);
  filter: saturate(0.85);
}

.person__frame--sato {
  background-image: url("images/sato-ozawa.avif");
  background-size: 140%;
  background-position: 50% 38%;
}

.person__frame--jun {
  background-image: url("images/jun-rekimoto.avif");
  background-size: 180%;
  background-position: 50% 32%;
}

.person__body {
  min-width: 0;
}

.person__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 6px;
}

.person__role {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sky-dk);
  margin-bottom: 16px;
}

.person__bio {
  margin: 0 0 12px 0;
}

.person__bio span {
  font-style: normal;
}

.person__credits {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.8;
  color: var(--muted);
}

.person__social {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.person__social a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color var(--hover);
}

.person__social a:hover {
  color: var(--sky-dk);
}

/* --- Contact form (design register) --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin-top: 40px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--dark);
  background: transparent;
  border: 0;
  border-bottom: 0.5px solid var(--hint);
  padding: 8px 0;
  outline: none;
  resize: vertical;
  transition: border-color var(--hover);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--sky-dk);
}

.contact-form textarea {
  min-height: 120px;
  line-height: 1.6;
}

.contact-submit {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--track-cta);
  color: var(--sky-dk);
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
  transition: color var(--hover);
}

.contact-submit:hover {
  color: var(--ink);
}

.form-msg {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--muted);
  margin-top: 24px;
  opacity: 0;
  transition: opacity var(--hover);
}

.form-msg.show {
  opacity: 1;
  color: var(--sky-dk);
}

/* --- Footer --- */
.footer {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  border-top: var(--rule-weight) solid var(--hint);
  padding-top: 28px;
  margin-top: 140px;
}

.footer__row {
  display: flex;
  justify-content: space-between;
}

.footer__accent {
  color: var(--sky-dk);
}

/* Subordinate tagline row below the identity line.
   Same mono type as the rest of the footer, slightly wider tracking
   and lighter colour so it reads as a signature, not a legal credit. */
.footer__tagline {
  margin-top: 12px;
  color: var(--hint);
  letter-spacing: 0.2em;
}

/* --- Motion --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(4px);
    transition:
      opacity var(--fade-in),
      transform var(--fade-in);
  }

  .fade-in.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Responsive
   The design is desktop-first (680px column, 48px gutter).
   Below 720px we tighten gutters and reflow people cards.
   ============================================================ */

@media (max-width: 720px) {
  .page {
    padding: 24px 20px 16px;
  }

  .hero {
    padding-top: 64px;
  }

  .h1 {
    font-size: 44px;
  }

  .h2 {
    font-size: 36px;
  }

  .h2--focus {
    font-size: 28px;
  }

  .h2--large {
    font-size: 44px;
  }

  .sub,
  .positioning,
  .pullquote {
    font-size: 19px;
  }

  .pullquote + .h2 {
    margin-top: 48px;
  }

  .section {
    padding-top: 64px;
    margin-top: 80px;
  }

  .section--first {
    margin-top: 96px;
  }

  .person {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .person__frame {
    width: 140px;
    height: 175px;
  }

  .footer {
    margin-top: 96px;
  }

  .footer__row {
    flex-direction: column;
    gap: 8px;
    line-height: 1.8;
  }
}

@media (max-width: 420px) {
  .nav__items {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .h1 {
    font-size: 36px;
  }

  .h2--large {
    font-size: 36px;
  }

  .project__head {
    flex-wrap: wrap;
  }
}
