/* ============================================
   Itano — shared styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..700,0..100,0..1&family=Inter+Tight:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #FAF7F1;
  --bg-tint: #F4EFE4;
  --ink: #1A1A1A;
  --ink-muted: #5C5A55;
  --ink-soft: #8A8780;
  --accent: #8B3F2A;
  --rule: #E5DECE;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  --max-width: 640px;
  --gutter: 1.75rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Nav ---------- */
nav {
  width: 100%;
  padding: 1.75rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ---------- Main ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--gutter) 6rem;
}

/* ---------- Home: Hero ---------- */
.hero {
  margin-bottom: 4.5rem;
  animation: fadeUp 0.8s ease-out;
}

.hero h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-weight: 300;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ---------- Sections ---------- */
section {
  margin-bottom: 3.5rem;
  animation: fadeUp 0.8s ease-out;
}

.hero { animation-delay: 0s; }
section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.3s; }
section:nth-of-type(4) { animation-delay: 0.4s; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  display: block;
}

.bio p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 38em;
}

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

/* ---------- Work list ---------- */
.work-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.work-list li {
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  font-size: 0.98rem;
}

.work-list .year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  flex-shrink: 0;
  min-width: 5rem;
}

.work-list .role {
  color: var(--ink);
  line-height: 1.45;
}

.work-list .role .org {
  color: var(--ink-muted);
}

/* ---------- Currently ---------- */
.currently {
  padding: 1.75rem;
  background: var(--bg-tint);
  border-radius: 4px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.55rem;
  position: relative;
}

.dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

.currently p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact a {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Footer ---------- */
footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p, footer a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}

footer .footer-links {
  display: flex;
  gap: 1.25rem;
}

footer a:hover {
  color: var(--accent);
}

/* ---------- Legal pages ---------- */
.legal h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.legal .meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 3rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.legal p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.1rem;
  max-width: 40em;
}

.legal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}

.legal a:hover {
  border-color: var(--accent);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
  :root { --gutter: 1.25rem; }
  nav { padding: 1.25rem var(--gutter); }
  main { padding: 2.5rem var(--gutter) 4rem; }
  .hero { margin-bottom: 3.5rem; }
  .work-list li {
    flex-direction: column;
    gap: 0.25rem;
  }
  .work-list .year { min-width: 0; }
}
