/* Ryan Tanaka — selected-work hub
   Dark paper, cream type, one gold rule.
   Distinct from the five demo brands. */

:root {
  --paper: #11110F;
  --cream: #F4EFE6;
  --cream-soft: rgba(244, 239, 230, 0.64);
  --cream-faint: rgba(244, 239, 230, 0.38);
  --gold: #C4A46A;
  --gold-line: rgba(196, 164, 106, 0.45);
  --lift: rgba(0, 0, 0, 0.35);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.4rem, 5vw, 4.5rem);
  --max: 52rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -3.5rem;
  z-index: 10;
  background: var(--gold);
  color: var(--paper);
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  font-size: 0.85rem;
}
.skip:focus { top: 1rem; }

:focus { outline: none; }
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.mast,
#work,
.colophon {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.mast {
  padding: clamp(3.5rem, 12vh, 7.5rem) 0 2.6rem;
}

.kicker {
  margin: 0 0 1.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.rule {
  display: block;
  width: 4.5rem;
  height: 0;
  margin: 1.55rem 0 1.7rem;
  border: 0;
  border-top: 1px solid var(--gold);
}

.lede {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  font-weight: 400;
}

.note {
  margin: 0;
  max-width: 34rem;
  color: var(--cream-soft);
  font-size: 1rem;
}

.works {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.works li + li { margin-top: 0.7rem; }

.work {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1.35rem 1.5rem;
  align-items: center;
  padding: 1.15rem 1.15rem 1.15rem 1.05rem;
  color: inherit;
  text-decoration: none;
  background: rgba(244, 239, 230, 0.025);
  border: 1px solid rgba(244, 239, 230, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.work:hover,
.work:focus-visible,
.work.is-press {
  transform: translateY(-5px);
  background: rgba(244, 239, 230, 0.045);
  border-color: var(--gold-line);
  box-shadow: 0 18px 40px var(--lift);
}

.thumb {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  position: relative;
  overflow: hidden;
}

.thumb--mira { background: #F7F1E8; }
.thumb--mira::before {
  content: "";
  position: absolute;
  inset: 0 0 0 42%;
  background: #C47A7A;
}
.thumb--mira::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 18%;
  width: 22%;
  height: 64%;
  background: #1C1916;
}

.thumb--oak { background: #2A211C; }
.thumb--oak::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: #D3542C;
}
.thumb--oak::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 16%;
  width: 28%;
  height: 28%;
  background: #F4EDE3;
}

.thumb--north { background: #0E1A2B; }
.thumb--north::before {
  content: "";
  position: absolute;
  left: 16%;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: #C4A46A;
}
.thumb--north::after {
  content: "";
  position: absolute;
  right: 16%;
  top: 22%;
  width: 36%;
  height: 36%;
  border: 1px solid #C4A46A;
}

.thumb--relay { background: #F3F4F6; }
.thumb--relay::before {
  content: "";
  position: absolute;
  left: 16%;
  top: 22%;
  width: 58%;
  height: 9%;
  background: #2563EB;
  box-shadow: 0 16px 0 #111827, 0 32px 0 #D1D5DB;
}
.thumb--relay::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 16%;
  width: 22%;
  height: 22%;
  background: #2563EB;
}

.thumb--apex { background: #0B1220; }
.thumb--apex::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 22%;
  height: 1px;
  background: rgba(226, 232, 240, 0.35);
  box-shadow: 0 12px 0 rgba(226, 232, 240, 0.2), 0 24px 0 rgba(226, 232, 240, 0.12);
}
.thumb--apex::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 28%;
  bottom: 16%;
  height: 3px;
  background: #F59E0B;
}

.work-body { min-width: 0; }

.work-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.num {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.chip {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.work-line {
  display: block;
  margin-top: 0.4rem;
  color: var(--cream-soft);
  font-size: 0.98rem;
}

.open {
  align-self: center;
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.colophon {
  padding: 3.2rem 0 3.6rem;
  color: var(--cream-faint);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.colophon p { margin: 0; }

@media (max-width: 720px) {
  .work {
    grid-template-columns: 4.25rem 1fr;
    gap: 0.95rem 1rem;
    padding: 1rem 0.9rem;
  }
  .thumb {
    width: 4.25rem;
    height: 4.25rem;
    grid-row: 1 / 3;
  }
  .work-body { grid-column: 2; }
  .open {
    grid-column: 2;
    justify-self: start;
    margin-top: -0.15rem;
  }
  .work-name { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work,
  .work:hover,
  .work:focus-visible,
  .work.is-press {
    transition: none;
    transform: none;
  }
}
