/* Norvani Holdings · site.css
   Paper, ink and one vermilion line. Newsreader for reading, Fragment Mono for the annotations. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 300 560;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 560;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("/assets/fonts/fragment-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f3ec;
  --paper-2: #efebe2;
  --ink: #1f1d1a;
  --ink-2: #57534c;
  --ink-3: #8a857c;
  --rule: #dcd6ca;
  --rule-2: #c7c0b2;
  --accent: #d4542c;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.4vw, 64px);
  --gap: clamp(16px, 2vw, 32px);
  --max: 1440px;
  --header: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --hero-size: clamp(2.9rem, 12.2vw, 11.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --paper-2: #1c1b18;
    --ink: #ece8df;
    --ink-2: #b4afa5;
    --ink-3: #7f7a71;
    --rule: #34312c;
    --rule-2: #4a463f;
    --accent: #f07a50;
  }
}

@view-transition {
  navigation: auto;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 20px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Paper grain, printed on top of everything at a whisper. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  body::after {
    opacity: 0.07;
    filter: invert(1);
  }
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font: 0.75rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ─── Links ──────────────────────────────────────────────────────────────── */

.link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.08em;
}

@media (prefers-reduced-motion: no-preference) {
  .link:hover {
    animation: underline 0.75s var(--ease);
  }
}

@keyframes underline {
  0% {
    background-size: 100% 1px;
    background-position: 100% 100%;
  }
  48% {
    background-size: 0 1px;
    background-position: 100% 100%;
  }
  52% {
    background-size: 0 1px;
    background-position: 0 100%;
  }
  100% {
    background-size: 100% 1px;
    background-position: 0 100%;
  }
}

.arrow::after,
.ext::after,
.down::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.4em;
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
  transition: transform 0.45s var(--ease);
}

.ext {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9 9 3M4 3h5v5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E");
}
.arrow {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10M7 2l4 4-4 4' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E");
}
.down {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M2 7l4 4 4-4' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E");
}

.ext:hover::after {
  transform: translate(0.12em, -0.12em);
}
.arrow:hover::after {
  transform: translateX(0.2em);
}
.down:hover::after {
  transform: translateY(0.18em);
}

/* ─── Header and menu ────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  view-transition-name: site-header;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--rule);
  opacity: 0;
}

@supports (animation-timeline: scroll()) {
  .site-header::after {
    animation: appear linear both;
    animation-timeline: scroll(root);
    animation-range: 0 120px;
  }
}

.is-scrolled .site-header::after {
  opacity: 1;
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.07em;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 430;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 40;
}

.wordmark .dot {
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  border-radius: 50%;
  background: var(--accent);
}

.nav {
  display: flex;
  gap: clamp(22px, 2.8vw, 44px);
}

.nav a {
  position: relative;
  padding-block: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav a:hover,
.nav a.is-current {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 0.72rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-button span {
  display: grid;
  gap: 4px;
}

.menu-button span::before,
.menu-button span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

@media (max-width: 760px) {
  :root {
    --header: 56px;
  }
  .nav {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
}

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
}

.menu:popover-open,
.menu.is-open {
  display: flex;
  flex-direction: column;
}

@supports (transition-behavior: allow-discrete) {
  @media (prefers-reduced-motion: no-preference) {
    .menu {
      opacity: 0;
      translate: 0 -10px;
      transition:
        opacity 0.35s var(--ease),
        translate 0.5s var(--ease),
        overlay 0.5s allow-discrete,
        display 0.5s allow-discrete;
    }
    .menu:popover-open {
      opacity: 1;
      translate: 0 0;
    }
    @starting-style {
      .menu:popover-open {
        opacity: 0;
        translate: 0 -10px;
      }
    }
  }
}

.menu::backdrop {
  background: transparent;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
}

.menu-close {
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 0.72rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-links {
  display: grid;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
}

.menu-links a .mono {
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.menu-foot {
  margin-top: auto;
  padding-top: 32px;
  color: var(--ink-2);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: clamp(40px, 6vh, 80px);
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.hero-title {
  margin-top: clamp(36px, 7vh, 96px);
  font-size: var(--hero-size);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.042em;
  font-variation-settings: "opsz" 72;
}

.hero-title .l {
  display: block;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.hero-body {
  margin-top: clamp(48px, 8vh, 104px);
  align-items: end;
  row-gap: 56px;
}

.hero-lead {
  grid-column: 1 / span 5;
  padding-bottom: 6px;
}

.hero-plate {
  grid-column: 7 / span 6;
}

.lead {
  max-width: 30em;
  font-size: clamp(1.22rem, 1.55vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.006em;
  font-variation-settings: "opsz" 28;
  text-wrap: pretty;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 32px;
}

.hero-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* On wide screens the drawing rises to sit beside the second line of the title. */
@media (min-width: 961px) {
  .hero-body {
    margin-top: calc(var(--hero-size) * -0.9 + 40px);
  }
  .hero-lead {
    align-self: start;
    margin-top: calc(var(--hero-size) * 0.9 + 8px);
  }
}

@media (max-width: 960px) {
  .hero-lead,
  .hero-plate {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title .l {
    animation: settle 1.5s var(--ease) both;
  }
  .hero-title .l + .l {
    animation-delay: 0.12s;
  }
  .hero-top,
  .hero-body {
    animation: rise 1.2s var(--ease) 0.4s both;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(0.16em);
    letter-spacing: -0.012em;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ─── Plates: the drawings and their captions ────────────────────────────── */

.plate-frame {
  position: relative;
  aspect-ratio: 4 / 3;
}

.plate-frame canvas,
.plate-frame .glyph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.js .plate-frame .glyph {
  visibility: hidden;
}

.crop {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--ink-3);
  pointer-events: none;
}
.crop.tl {
  top: 0;
  left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}
.crop.tr {
  top: 0;
  right: 0;
  border-top-width: 1px;
  border-right-width: 1px;
}
.crop.bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
.crop.br {
  bottom: 0;
  right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.plate-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.plate-index {
  color: var(--ink-2);
  white-space: nowrap;
}

.plate-text {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-2);
  font-style: italic;
}

.plate-text b {
  margin-right: 0.35em;
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
}

html:not(.js) .plate-toggle,
html:not(.js) .copy {
  display: none;
}

.plate-toggle {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}

.plate-toggle:hover {
  color: var(--ink);
}

@media (max-width: 520px) {
  .plate-caption {
    grid-template-columns: 1fr auto;
  }
  .plate-text {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Static drawings (built into the page). */
.glyph .g-main,
.glyph .g-thin,
.glyph .g-faint,
.glyph .g-dash,
.glyph .g-accent {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.glyph .g-main {
  stroke-width: 1.5;
}
.glyph .g-thin,
.glyph .g-faint,
.glyph .g-dash {
  stroke-width: 1;
}
.glyph .g-thin {
  opacity: 0.5;
}
.glyph .g-faint {
  opacity: 0.26;
}
.glyph .g-dash {
  opacity: 0.42;
  stroke-dasharray: 5 6;
}
.glyph .g-accent {
  stroke: var(--accent);
  stroke-width: 1.25;
}
.glyph .g-label {
  fill: var(--ink-2);
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: 0.08em;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(88px, 12vh, 168px);
}

.section-head {
  align-items: end;
}

.section-label {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  margin-bottom: clamp(36px, 6vh, 72px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.section-label span {
  color: var(--ink-3);
}

.display-l {
  grid-column: 1 / span 7;
  font-size: clamp(2.5rem, 5.8vw, 6rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.038em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}

.display-l em {
  font-style: italic;
  letter-spacing: -0.028em;
}

.section-intro {
  grid-column: 9 / span 4;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (max-width: 960px) {
  .display-l,
  .section-intro {
    grid-column: 1 / -1;
  }
  .section-intro {
    margin-top: 24px;
    max-width: 34em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 70%;
    }
  }
}

/* ─── Work ───────────────────────────────────────────────────────────────── */

.work {
  margin-top: clamp(56px, 9vh, 112px);
  align-items: start;
}

.work-plate {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header) + 40px);
}

.products {
  grid-column: 7 / span 6;
  padding: 0;
  list-style: none;
}

@media (max-width: 960px) {
  .work-plate {
    display: none;
  }
  .products {
    grid-column: 1 / -1;
  }
}

.product {
  border-top: 1px solid var(--rule);
  transition: opacity 0.5s var(--ease);
}

.product:last-child {
  border-bottom: 1px solid var(--rule);
}

.product-inner {
  padding-block: clamp(32px, 4.6vh, 52px);
}

@media (hover: hover) and (min-width: 961px) {
  .products:has(.product:hover) .product:not(:hover) {
    opacity: 0.4;
  }
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-2);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.status.new::before {
  background: var(--accent);
}

.status.soon::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink-3);
}

.product-name {
  margin-top: 20px;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  line-height: 1;
  font-weight: 340;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72;
}

.product-kind {
  margin-top: 12px;
  color: var(--ink-2);
}

.product-text {
  margin-top: 22px;
  max-width: 33em;
  text-wrap: pretty;
}

.product-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin-top: 24px;
  color: var(--ink-2);
}

.product-meta dt {
  color: var(--ink-3);
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
}

.product-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.glyph-mini {
  display: none;
}

@media (max-width: 960px) {
  .glyph-mini {
    display: block;
    max-width: 420px;
    margin-top: 28px;
  }
  .glyph-mini .glyph {
    width: 100%;
    height: auto;
  }
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .glyph-mini .g-main {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: draw linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 45%;
      }
    }
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ─── Approach ───────────────────────────────────────────────────────────── */

.principles {
  margin-top: clamp(56px, 9vh, 112px);
  padding: 0;
  row-gap: 56px;
  list-style: none;
}

.principle {
  grid-column: span 4;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.principle-n {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-3);
}

.principle h3 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.08;
  font-weight: 380;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 60;
}

.principle p {
  margin-top: 18px;
  max-width: 30em;
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (max-width: 960px) {
  .principle {
    grid-column: 1 / -1;
  }
}

/* ─── Domains ────────────────────────────────────────────────────────────── */

.domains {
  margin-top: clamp(56px, 9vh, 112px);
  row-gap: 56px;
  align-items: start;
}

.domains-text {
  grid-column: 1 / span 5;
}

.domains-text p {
  max-width: 30em;
  font-size: 1.22rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.domains-text p + p {
  margin-top: 18px;
}

.reg {
  grid-column: 7 / span 6;
}

.reg-title {
  margin-bottom: 14px;
  color: var(--ink-2);
}

.reg-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.reg-list li {
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

.reg-list li:target {
  background: var(--paper-2);
}

.reg-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  padding: 18px 0 19px;
}

.reg-name {
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 36;
}

.reg-sub {
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.reg-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 16px;
  height: 16px;
  background: var(--ink-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10M7 2l4 4-4 4' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10M7 2l4 4-4 4' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.45s var(--ease), background 0.3s;
}

.reg-list a:hover .reg-go {
  transform: translateX(6px);
  background: var(--accent);
}

.reg-more {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .domains-text,
  .reg {
    grid-column: 1 / -1;
  }
}

/* ─── Contact ────────────────────────────────────────────────────────────── */

.contact-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px 28px;
  margin-top: clamp(48px, 8vh, 96px);
}

.mail-big {
  font-size: clamp(1.7rem, 7.2vw, 6.6rem);
  line-height: 1.02;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.032em;
  font-variation-settings: "opsz" 72;
  overflow-wrap: anywhere;
}

.mail-big .link {
  background-size: 100% max(1px, 0.018em);
  padding-bottom: 0.04em;
}

.copy {
  padding: 9px 13px 8px;
  border: 1px solid var(--rule-2);
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.copy:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}

.contact-note {
  margin-top: 22px;
  color: var(--ink-2);
}

.facts {
  margin-top: clamp(48px, 7vh, 88px);
  row-gap: 36px;
}

.facts > div {
  grid-column: span 3;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.facts dt {
  color: var(--ink-3);
}

.facts dd {
  margin-top: 12px;
  font-size: 1.06rem;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .facts > div {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .facts > div {
    grid-column: 1 / -1;
  }
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: 44px calc(44px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer-grid {
  row-gap: 32px;
  align-items: start;
}

.footer-brand {
  grid-column: 1 / span 5;
}

.footer-brand .wordmark {
  color: var(--ink);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 26em;
}

.footer-nav {
  grid-column: 7 / span 3;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-address {
  grid-column: 10 / span 3;
}

@media (max-width: 960px) {
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-nav,
  .footer-address {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .footer-nav,
  .footer-address {
    grid-column: 1 / -1;
  }
}

/* ─── Document pages (registrar information, privacy) ────────────────────── */

.doc {
  padding-top: clamp(28px, 5vh, 64px);
  padding-bottom: clamp(96px, 15vh, 196px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.crumbs a:hover {
  color: var(--ink);
}

.doc-title {
  margin-top: clamp(40px, 8vh, 96px);
  font-size: clamp(2.7rem, 7.4vw, 7.6rem);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}

.doc-lead {
  margin-top: clamp(28px, 5vh, 48px);
  max-width: 34em;
}

.doc-body {
  margin-top: clamp(56px, 9vh, 112px);
  align-items: start;
}

.toc {
  grid-column: 1 / span 3;
  position: sticky;
  top: calc(var(--header) + 40px);
}

.toc-title {
  margin-bottom: 12px;
  color: var(--ink-3);
}

.toc ol {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  transition: color 0.3s;
}

.toc a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink-3);
  transition: background 0.3s, box-shadow 0.3s;
}

.toc a:hover,
.toc a.is-current {
  color: var(--ink);
}

.toc a.is-current::before {
  background: var(--accent);
  box-shadow: none;
}

.doc-content {
  grid-column: 5 / span 7;
  max-width: 42em;
}

.doc-content section {
  scroll-margin-top: 12px;
}

.doc-content section + section {
  margin-top: clamp(64px, 10vh, 112px);
}

.doc-content h2 {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.06;
  font-weight: 360;
  letter-spacing: -0.026em;
  font-variation-settings: "opsz" 60;
}

.doc-content h2 .mono {
  color: var(--ink-3);
}

.doc-content h3 {
  margin: 30px 0 10px;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.doc-content p + p {
  margin-top: 16px;
}

.doc-content a:not(.plain) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

.doc-content ul,
.doc-content ol {
  padding-left: 1.2em;
}

.doc-content li {
  margin: 12px 0;
  padding-left: 0.3em;
}

.doc-content li::marker {
  color: var(--ink-3);
}

.doc-content strong {
  font-weight: 500;
}

.doc-facts {
  display: grid;
  grid-template-columns: minmax(150px, max-content) 1fr;
  gap: 12px 28px;
  padding-top: 6px;
}

.doc-facts dt {
  padding-top: 0.3em;
  color: var(--ink-3);
}

.updated {
  margin-top: clamp(64px, 10vh, 112px);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
}

@media (max-width: 960px) {
  .toc {
    position: static;
    grid-column: 1 / -1;
    margin-bottom: 56px;
  }
  .doc-content {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .doc-facts {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .doc-facts dd {
    margin-bottom: 14px;
  }
}

/* ─── Not found ──────────────────────────────────────────────────────────── */

.missing {
  min-height: calc(100svh - var(--header) - 160px);
  display: grid;
  align-content: center;
  padding-block: 64px;
}

.missing .glyph {
  width: min(520px, 100%);
  height: auto;
  margin-bottom: 32px;
}

/* ─── The ruler on the left edge (wide screens) ──────────────────────────── */

.ruler {
  display: none;
}

@media (min-width: 1360px) {
  @supports (animation-timeline: scroll()) {
    .ruler {
      display: block;
      position: fixed;
      top: var(--header);
      bottom: 0;
      left: 0;
      z-index: 30;
      width: 22px;
      pointer-events: none;
      background:
        repeating-linear-gradient(to bottom, var(--rule-2) 0 1px, transparent 1px 64px) 0 0 / 14px 100% no-repeat,
        repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 8px) 0 0 / 7px 100% no-repeat;
    }
    .ruler::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 22px;
      height: 1px;
      background: var(--accent);
      animation: ruler linear both;
      animation-timeline: scroll(root);
    }
  }
}

@keyframes ruler {
  to {
    transform: translateY(calc(100vh - var(--header) - 1px));
  }
}

/* ─── Page transitions ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: vt-out 0.3s var(--ease) both;
  }
  ::view-transition-new(root) {
    animation: vt-in 0.55s var(--ease) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media print {
  .site-header,
  .ruler,
  .menu,
  body::after {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
