/* ALBRS — shared styles for every page */

:root {
  --bg: #0a0a0a;
  --cream: #ece5da;
  --muted: #6f6b64;
  --line: #1c1c1b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--muted); text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--cream); }

/* ---------- header ---------- */

header { padding: 28px 32px; }

.brand {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream);
}

/* ---------- layout ---------- */

/* home: the mark and headline centred as one group */
body.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  padding: 40px 34px 64px;
}

/* content pages: masthead, then copy running down the page */
body.page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 34px 80px;
}

/* ---------- the mark ---------- */

.panel { width: min(400px, 76vw); }        /* home, full size */
.mark { width: 132px; }                    /* content pages, masthead size */
.panel svg, .mark svg { width: 100%; height: auto; display: block; }

.guide { fill: none; stroke: var(--cream); opacity: 0.13; }
.guide.key { opacity: 0.2; }

.ring {
  fill: none;
  stroke-linecap: butt;
  transition: stroke 2400ms ease;
}

/* Innermost shape holds its colour while everything around it turns over */
.ring.constant { stroke: var(--cream); }

/* Stroke weights are in user units, so the smaller mark needs heavier lines */
.panel .guide { stroke-width: 0.6; }
.panel .ring  { stroke-width: 1.5; }
.mark .guide  { stroke-width: 1.1; }
.mark .ring   { stroke-width: 3; }

/* ---------- headings ---------- */

/* The headline carries the palette: it re-tints with each study */
.intro { max-width: 32ch; text-align: center; }

.intro h1,
.title {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.6;
  text-align: center;
  transition: color 1600ms ease;
}

.title { margin: 30px 0 6px; }
.title.alone { margin-bottom: 46px; }      /* when no date line follows */

.updated {
  margin: 0 0 60px;
  text-align: center;
  color: #4a4842;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- body copy ---------- */

/* Left aligned — centred legal text is unreadable */
.prose { max-width: 68ch; width: 100%; }
.prose.narrow { max-width: 62ch; }

.prose h2 {
  margin: 44px 0 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

.prose h2:first-of-type { margin-top: 0; }

.prose p, .prose li { color: #a7a29a; font-size: 15px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--cream); border-bottom: 1px solid var(--line); }
.prose a:hover { border-bottom-color: var(--muted); }

.prose h3 {
  margin: 22px 0 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

.lede { margin: 0 0 34px; }

/* The email address on the contact page — set at headline scale, not buried in
   copy. Scoped to the link so the postal block below doesn't inherit any of it. */
a.address {
  display: inline-block;
  margin: 0 0 40px;
  font-size: clamp(21px, 4.4vw, 32px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--cream);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: border-color 300ms ease, color 300ms ease;
}

.prose a.address { border-bottom: 1px solid var(--line); }
a.address:hover { color: var(--cream); border-bottom-color: var(--muted); }

/* A postal address: the lines are one block, not separate paragraphs */
div.address { margin: 0 0 24px; }

.prose div.address p {
  margin: 0;
  line-height: 1.45;
}

/* Anything still needing your details */
.todo { color: #b08a4a; border-bottom: 1px dotted #6b5a34; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 24px 32px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-links { display: flex; gap: 26px; }

@media (max-width: 640px) {
  .footer-inner { justify-content: center; text-align: center; }
}
