/* ============================================================
   Hyperia Studios — style.css
   Lightweight, dependency-free. System fonts only.
   ============================================================ */

:root {
  --paper: #fbfbf9;
  --ink: #17181c;
  --muted: #62656e;
  --line: #e4e4e0;
  --accent: #2742cc;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

svg { display: block; }

.container { width: min(920px, 90%); margin-inline: auto; }

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16em;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

p { color: var(--ink); }

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 34em;
  margin-top: 1.75rem;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand-mark { width: 22px; height: 22px; }

.nav-right { display: flex; align-items: center; gap: 1.8rem; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--line);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.1rem;
  transition: color 0.15s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(5rem, 14vh, 9rem) 0; }

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.75rem;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.btn:hover { background: #000; }

.text-link {
  color: var(--ink);
  font-weight: 550;
  font-size: 0.98rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.15s;
}
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 10vh, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

/* ---------- Work links ---------- */
.work-list { border-top: 1px solid var(--line); }

.work-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: baseline;
  gap: 2.25rem;
  padding: 2.25rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.work-row h3 {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.work-row p { color: var(--muted); font-size: 0.98rem; }

.work-row .arrow {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color 0.15s, transform 0.15s;
}

.work-row:hover h3 { color: var(--accent); }
.work-row:hover .arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ---------- About ---------- */
.about-text { max-width: 40em; }
.about-text p + p { margin-top: 1.25rem; }

/* ---------- Contact ---------- */
#contact p { color: var(--muted); }

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-links { display: none; }

  .work-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.6rem;
  }
  .work-row p { grid-column: 1 / -1; }
}

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