:root {
  --ink: #111;
  --muted: #6b6b6b;
  --rule: #d9d9d9;
  --paper: #fff;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.mark { display: block; color: var(--ink); }
.mark path { stroke: currentColor; }

/* Landing */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 16px;
}

.hero .mark {
  width: clamp(120px, 22vw, 184px);
  height: auto;
  animation: rise 900ms cubic-bezier(.2,.7,.2,1) both;
}

.wordmark {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 4.6vw, 40px);
  letter-spacing: .32em;
  /* balance the trailing letter-spacing so the text centres optically */
  padding-left: .32em;
  line-height: 1.2;
  text-transform: uppercase;
  animation: rise 900ms 120ms cubic-bezier(.2,.7,.2,1) both;
}

.rule {
  width: 48px;
  height: 1px;
  margin: 32px auto;
  background: var(--ink);
  border: 0;
  animation: grow 900ms 300ms cubic-bezier(.2,.7,.2,1) both;
}

.tagline {
  margin: 0;
  max-width: 34ch;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 900ms 380ms cubic-bezier(.2,.7,.2,1) both;
}

/* Home: hero plus group companies */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home .hero {
  flex: none;
  padding: 72px 16px 56px;
}

.group {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 72px;
  animation: rise 900ms 460ms cubic-bezier(.2,.7,.2,1) both;
}

.group h2 {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card a {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: border-color 250ms;
}

.card a:hover, .card a:focus-visible { border-color: var(--ink); }
.card a:focus-visible { outline-offset: 4px; }

.card .mark { width: 36px; height: auto; flex: none; margin-top: 2px; }

.card .body { display: flex; flex-direction: column; min-width: 0; }

.card .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.3;
}

.card .desc { margin-top: 6px; font-size: 15px; }
.card .meta { margin-top: 14px; font-size: 12px; color: var(--muted); }

.card .url {
  margin-top: 2px;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.card a:hover .url { text-decoration-thickness: 2px; }

/* Mark spokes: each card's mini mark shows only its own spoke in ink.
   Hovering or focusing a card fades the big mark down to that card's spoke. */

.mark .spoke { transition: stroke 300ms; }
.mark .spoke.off { stroke: var(--rule); }

body:has(.card:is(:hover, :focus-within)) .hero .spoke { stroke: var(--rule); }

body:has(.card[data-prong="n"]:is(:hover, :focus-within)) .hero [data-prong="n"],
body:has(.card[data-prong="ne"]:is(:hover, :focus-within)) .hero [data-prong="ne"],
body:has(.card[data-prong="se"]:is(:hover, :focus-within)) .hero [data-prong="se"],
body:has(.card[data-prong="s"]:is(:hover, :focus-within)) .hero [data-prong="s"],
body:has(.card[data-prong="sw"]:is(:hover, :focus-within)) .hero [data-prong="sw"],
body:has(.card[data-prong="nw"]:is(:hover, :focus-within)) .hero [data-prong="nw"] { stroke: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* Footer */

.footer {
  border-top: 1px solid var(--rule);
  padding: 24px 16px 28px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

.footer p { margin: 0; }
.footer .sep { margin: 0 .6em; color: var(--rule); }

@media (max-width: 640px) {
  .footer .sep { display: none; }
  .footer span.item { display: block; }
}

/* Document pages (privacy, 404) */

.topbar {
  border-bottom: 1px solid var(--rule);
  padding: 20px 16px;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.topbar .mark { width: 40px; height: auto; }

.topbar span {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.doc {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 16px 72px;
}

.doc h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
}

.doc .updated {
  margin: 0 0 40px;
  font-size: 13px;
  color: var(--muted);
}

.doc h2 {
  margin: 40px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }

.doc address { font-style: normal; }
