/* ==========================================================================
   Fonts — self-hosted (was fonts.googleapis.com + fonts.gstatic.com)
   Newsreader keeps its variable optical-size axis: at the hero's 68px the
   static instance is visibly wider and chunkier, and changes the line breaks.
   Both families are SIL Open Font License 1.1 — see assets/fonts/OFL.md
   ========================================================================== */

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/libre-franklin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/libre-franklin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/newsreader-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/newsreader-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

/* ==========================================================================
   rorz.net — Rorz Network
   Design tokens
   ========================================================================== */

:root {
  /* Color */
  --ground:        #0e1118;
  --cream:         #f2efe6;
  --body:          rgba(242, 239, 230, .65);
  --muted:         rgba(242, 239, 230, .55);
  --faint:         rgba(242, 239, 230, .52);  /* .45 failed AA at 11-12px */
  --rule-heavy:    rgba(242, 239, 230, .75);
  --rule-section:  rgba(242, 239, 230, .22);
  --rule-row:      rgba(242, 239, 230, .16);
  --row-hover:     rgba(242, 239, 230, .04);
  --accent:        oklch(.78 .13 250);
  --accent-hover:  oklch(.86 .11 250);
  --accent-email:  oklch(.8 .12 250);

  /* Type */
  --display: 'Newsreader', Georgia, serif;
  --text:    'Libre Franklin', system-ui, sans-serif;

  /* Spacing */
  --pad-x:   40px;   /* section horizontal padding */
  --inset:   26px;   /* left inset for content in the two-column area */
  --label-w: 150px;  /* label track */
  /* One shared measure for the About column. The handoff specifies 52ch and
     58ch, but `ch` is per-font, so those render 663px and 519px — the right
     edges disagree by 144px. A single px measure keeps both paragraphs in the
     readable 45-75ch band (lead ~49ch, body ~69ch) and flush on both sides. */
  --measure: 38.75rem;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html { background: var(--ground); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--cream);
  font-family: var(--text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

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

/* full-bleed rows: draw the ring inside so it can't be clipped */
.site-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

h1, h2, p { margin: 0; }

.page {
  max-width: 1120px;
  margin: 0 auto;
}

/* Uppercase label recipe */
.masthead,
.index__label,
.footer {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ==========================================================================
   Masthead
   ========================================================================== */

.masthead {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px var(--pad-x);
  border-bottom: 2px solid var(--rule-heavy);
  font-size: 0.75rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark__mark {
  display: block;
  flex: none;
}

/* the type keeps its own baseline relationship; the mark centres on the pair */
.wordmark__type {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.wordmark__name {
  font-family: var(--display);
  font-size: 1.375rem;
  letter-spacing: -.04em;
  text-transform: none;
}

.wordmark__dot { color: var(--accent); }

.wordmark__suffix {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: rgba(242, 239, 230, .5);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 56px var(--pad-x) 46px;
  border-bottom: 1px solid var(--rule-section);
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  max-width: 20ch;
  text-wrap: pretty;
  animation: rorzRise .8s var(--ease) both;
}

.hero__title em { color: var(--accent); }

.hero__sub {
  margin-top: 26px;
  max-width: 44ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--body);
  animation: rorzRise .8s .12s var(--ease) both;
}

@keyframes rorzRise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Two-column index (label track | content)
   ========================================================================== */

.index {
  display: grid;
  grid-template-columns: var(--label-w) minmax(0, 1fr);
}

.index__label {
  padding: 26px 20px 26px var(--pad-x);
  border-right: 1px solid var(--rule-section);
  color: var(--muted);
}

.index__label--last { padding-bottom: 44px; }

/* ==========================================================================
   Site rows
   ========================================================================== */

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

.site-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px var(--pad-x) 20px var(--inset);
  border-bottom: 1px solid var(--rule-row);
  color: inherit;
  transition: background .2s ease;
}

a.site-row:hover {
  background: var(--row-hover);
  color: inherit;
}

.site-row__num {
  font-size: 0.75rem;
  color: var(--faint);
}

/* Each logo is a tile carrying its own background colour, so the box tracks the
   artwork's aspect exactly — any mismatch would show as bars of page ground. */
.site-row__logo {
  flex: none;
  display: block;
  width: 124px;
  aspect-ratio: 124 / 64;
}

.site-row__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-row__text {
  flex: 1;
  min-width: 0;
}

.site-row__name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 400;
}

.site-row__desc {
  margin: 6px 0 0;
  max-width: 52ch;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--body);
}

.site-row__link {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: 26px var(--pad-x) 32px var(--inset);
  border-bottom: 1px solid var(--rule-section);
}

.about__lead {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: 1.4375rem;
  line-height: 1.45;
  max-width: var(--measure);
}

.about__body {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--body);
  max-width: var(--measure);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 26px var(--pad-x) 44px var(--inset);
}

.contact__handle {
  font-family: var(--display);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  color: var(--accent-email);
}

.contact__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: 0.75rem;
  color: rgba(242, 239, 230, .6);
}

/* padding (not gap) carries the 5px rhythm so each link clears 24px of
   pointer target — WCAG 2.2 AA 2.5.8 */
.contact__links a {
  color: inherit;
  padding: 5px 0;
}
.contact__links a:hover { color: var(--cream); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  border-top: 2px solid var(--rule-heavy);
  color: var(--faint);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  :root {
    --pad-x: 24px;
    --inset: 24px;
  }

  /* Body copy meets the 16px mobile floor (WCAG-adjacent readability guidance,
     `readable-font-size`). The handoff specifies 13px; that holds on desktop,
     where reading distance is longer. Labels, numerals and link text are UI
     chrome rather than body copy and keep their specified sizes. */
  .hero__sub,
  .site-row__desc,
  .about__body { font-size: 1rem; }

  /* Labels become small headings above their content */
  .index { grid-template-columns: 1fr; }

  .index__label {
    padding: 28px var(--pad-x) 12px;
    border-right: 0;
  }

  .index__label--last { padding-bottom: 12px; }

  .hero { padding: 44px var(--pad-x) 38px; }

  .site-row__logo { width: 96px; }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact__links {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-row {
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-row__text {
    order: 3;
    flex: 1 0 100%;
  }

  .site-row__link { margin-left: auto; }

  .site-row__name { font-size: 1.375rem; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__sub { animation: none; }

  *, *::before, *::after {
    transition-duration: .01ms !important;
  }
}
