/* Ti2A.dev
   Editorial-catalogue layout: a dark near-black page, one amber accent,
   projects as a numbered tracklist. No cards, no pill chips — hierarchy
   comes from type, rules and whitespace. */

:root {
  color-scheme: dark;
  --bg: oklch(15% 0.005 95);
  --text: oklch(93% 0.008 95);
  --muted: oklch(72% 0.012 95);
  --faint: oklch(60% 0.012 95);
  --rule: oklch(28% 0.008 95);
  --amber: oklch(80% 0.145 82);
  --hover: oklch(19% 0.006 95);

  --font: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", ui-monospace, Consolas, monospace;
  --measure: 72rem;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: oklch(97.5% 0.004 95);
    --text: oklch(20% 0.012 80);
    --muted: oklch(38% 0.014 80);
    --faint: oklch(45% 0.014 80);
    --rule: oklch(86% 0.01 95);
    --amber: oklch(48% 0.125 58);
    --hover: oklch(94.5% 0.005 95);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  accent-color: var(--amber);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--amber);
  color: var(--bg);
  padding: 0.4rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 1rem; }

a { color: inherit; }

/* --- header: brand left, nav right, thin rule --- */

.top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 6vw;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand::after { content: " _"; color: var(--amber); }

nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
nav a {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
nav a:hover { color: var(--amber); }
nav a.lang { color: var(--amber); }

main { width: min(var(--measure), calc(100% - 12vw)); margin: 0 auto; }

/* --- hero: oversized serif, generous air --- */

.hero { padding: 7rem 0 5rem; max-width: 52rem; }
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.4rem;
}
h1 {
  font-weight: 400;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}
.lead { font-size: 1.25rem; color: var(--muted); margin: 0; max-width: 40rem; }

/* --- sections: numbered rows, rules between --- */

section { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

h2 {
  font-weight: 400;
  font-size: 1rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin: 0 0 0.4rem;
}
h2::before { content: "/ "; color: var(--amber); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 1rem;
}
.section-head p { margin: 0; color: var(--faint); max-width: 36rem; font-size: 0.92rem; font-family: var(--sans); }

.rows { list-style: none; margin: 0; padding: 0; }

.row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1.2rem;
  padding: 1.6rem 0.6rem;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.rows .row:first-child { border-top: 0; }
.row:hover { background: var(--hover); }

.row-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--amber);
  padding-top: 0.45rem;
  font-variant-numeric: tabular-nums;
}

h3 {
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
h3 a { text-decoration: none; }
h3 a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.client { font-family: var(--sans); font-size: 0.95rem; color: var(--faint); font-weight: 400; }

.summary { margin: 0; max-width: 44rem; }
.result { margin: 0.5rem 0 0; max-width: 44rem; color: var(--muted); }
.result span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-right: 0.5rem;
}

.tags {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  margin: 0.9rem 0 0;
  letter-spacing: 0.02em;
}

.row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  text-align: right;
  padding-top: 0.4rem;
  white-space: nowrap;
}
.row-meta a { color: var(--amber); text-decoration: none; border-bottom: 1px solid transparent; }
.row-meta a:hover { border-bottom-color: var(--amber); }

.status { text-transform: uppercase; letter-spacing: 0.08em; }
.status::before { content: "● "; font-size: 0.6rem; vertical-align: 0.15em; }
.status-ongoing { color: var(--amber); }
.status-shipped { color: var(--faint); }
.status-paused { color: var(--faint); }
.status-paused::before { content: "○ "; }

.stars { color: var(--amber); }

.row-links { margin: 0.9rem 0 0; display: flex; gap: 1.4rem; }
.row-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--amber) 45%, transparent);
}
.row-links a:hover { border-bottom-color: var(--amber); }

/* --- about: text left, stack as a plain line --- */

.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; margin-top: 1.4rem; }
.about > p { margin: 0; font-size: 1.15rem; max-width: 34rem; }
.stack-box { display: flex; flex-direction: column; gap: 0.6rem; }
.stack-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 2;
  color: var(--muted);
}
.stack li { display: inline; }
.stack li:not(:last-child)::after { content: " /"; color: var(--rule); }

/* --- contact: oversized links, one per line --- */

.contact { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.contact li { border-top: 1px solid var(--rule); }
.contact li:last-child { border-bottom: 1px solid var(--rule); }
.contact a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0.4rem;
  font-family: var(--mono);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  text-decoration: none;
}
.contact a::after { content: "→"; color: var(--amber); }
.contact a:hover { color: var(--amber); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 6vw 2.4rem;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .hero { padding: 4rem 0 3rem; }
  .top { flex-direction: column; gap: 0.5rem; }
  .section-head { display: block; }
  .section-head p { margin-top: 0.5rem; }
  .row { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.3rem 0.2rem; }
  .row-num { padding: 0; }
  .row-meta { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 0; gap: 0.9rem; }
  .about { display: block; }
  .about > p { margin-bottom: 1.6rem; }
  .contact a { font-size: 1.05rem; }
}

@media (forced-colors: active) {
  .row, .contact li, footer { border-color: CanvasText; }
  .status-ongoing, .stars, .row-num { color: LinkText; }
}

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