/* North 27 LLC — north27studio.com
   Palette and type per claude/colour_system.md + claude/visual_identity.md.
   Ornament may be loud. Type must be quiet. A field must be quieter than both.
   One filled block per screen, and it is the contact action. */

:root {
  --ground-top: #2d1d49;
  --ground-mid: #24173a;
  --ground-bot: #1d132f;

  --headline: #e2cfa5;
  --label: #d8a750;
  --gold: #fbb02d;
  --sky: #89c2d9;
  --body: rgba(239, 233, 221, 0.82);
  --body-strong: #efe9dd;
  --soft: rgba(239, 233, 221, 0.52);

  --action: #c9184a;
  --action-rim: rgba(232, 68, 108, 0.5);

  --card: rgba(255, 255, 255, 0.035);
  --card-line: rgba(226, 207, 165, 0.14);
  --hair: rgba(226, 207, 165, 0.1);

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 34rem;
  --wide: 60rem;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ground-bot);
  background-image: linear-gradient(180deg, var(--ground-top) 0%, var(--ground-mid) 55%, var(--ground-bot) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--body);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.62;
  min-height: 100vh;
}

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

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { display: block; }

section { padding: 3.25rem 0; }
section + section { border-top: 1px solid var(--hair); }

.measure { max-width: var(--measure); }

/* ---------- masthead ---------- */

.masthead {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--hair);
}

.masthead-in {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border-bottom: none;
  color: var(--headline);
}

.wordmark svg { display: block; flex: none; }

.wordmark span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a:focus { color: var(--headline); border-bottom-color: var(--label); }

nav a[aria-current="page"] { color: var(--label); border-bottom-color: var(--label); }

/* ---------- type ---------- */

.kicker {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 1.1rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 6.2vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--headline);
  margin: 0 0 1.25rem;
  max-width: 30ch;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 3.2vw, 1.75rem);
  line-height: 1.25;
  color: var(--headline);
  margin: 0 0 1rem;
  max-width: 32ch;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78125rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 0.6rem;
}

.lede {
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.52;
  color: var(--body-strong);
  max-width: 40ch;
}

p { margin: 0 0 1.15rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--sky); text-decoration: none; border-bottom: 1px solid rgba(137, 194, 217, 0.35); }
a:hover, a:focus { border-bottom-color: var(--sky); }

strong { color: var(--body-strong); font-weight: 600; }

ul.plain { margin: 0 0 1.15rem; padding-left: 1.1rem; max-width: var(--measure); }
ul.plain li { margin-bottom: 0.5rem; }
ul.plain li::marker { color: var(--label); }

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 6px;
  padding: 1.4rem 1.4rem 1.5rem;
}

.card p { margin-bottom: 0; font-size: 1rem; max-width: none; }

/* four cards read better as a 2x2 than as a row of three with an orphan */
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- facts table ---------- */

dl.facts {
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hair);
}

dl.facts > div {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: 0.5rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hair);
}

dl.facts dt {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  padding-top: 0.2rem;
}

dl.facts dd { margin: 0; color: var(--body-strong); }

@media (max-width: 34rem) {
  dl.facts > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- the one fill ---------- */

.action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--action);
  border: 1px solid var(--action-rim);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  color: var(--body-strong);
  font-family: var(--sans);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 1.5rem;
}

.action:hover, .action:focus { color: #fff; border-color: rgba(232, 68, 108, 0.85); }
.action svg { display: block; flex: none; }

/* ---------- legal documents ---------- */

.legal { padding-top: 2.75rem; padding-bottom: 1rem; }

/* A label frames everything under it: the parent header must outrank its
   subheads. Section = large serif; subhead = small uppercase label. */
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--headline);
  max-width: 30ch;
  margin: 0 0 0.9rem;
  padding-top: 2.75rem;
  position: relative;
}

/* a deliberate short tick rather than a rule that stops at a ragged width */
.legal h2::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 0;
  width: 2.75rem;
  height: 1px;
  background: var(--label);
  opacity: 0.55;
}

.legal h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.71875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--label);
  margin: 1.75rem 0 0.5rem;
}

.legal p, .legal ul.plain { font-size: 1rem; }

.stamp {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 2rem;
}

.note {
  border-left: 2px solid var(--label);
  padding: 0.15rem 0 0.15rem 1.1rem;
  margin: 1.5rem 0;
  color: var(--body-strong);
}

.toc { margin: 2.25rem 0 0; }
.toc ol {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.2rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.9;
}
.toc li::marker { color: var(--soft); }
.toc a { border-bottom: none; color: var(--body); }
.toc a:hover { color: var(--headline); }

@media (max-width: 34rem) { .toc ol { columns: 1; } }

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

footer {
  border-top: 1px solid var(--hair);
  padding: 2.5rem 0 3.25rem;
  margin-top: 1rem;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

footer p, footer ul {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.75;
  margin: 0;
  max-width: 26rem;
  color: var(--soft);
}

footer ul { list-style: none; padding: 0; }
footer a { color: var(--body); border-bottom: none; }
footer a:hover { color: var(--headline); }

.entity {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--soft);
  letter-spacing: 0.02em;
}

/* ---------- accessibility ---------- */

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--ground-bot);
  border: 1px solid var(--label);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- product pages ---------- */

/* a product's own logo, shown as supplied on its own background */
.product-logo {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  border-radius: 6px;
  margin: 0 0 2rem;
}

ol.plain { margin: 0 0 1.15rem; padding-left: 1.3rem; max-width: var(--measure); }
ol.plain li { margin-bottom: 0.5rem; }
ol.plain li::marker { color: var(--label); font-family: var(--sans); font-size: 0.8125rem; }

/* ---------- home: one quiet screen ---------- */

body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.home main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.home-mark { display: block; margin: 0 0 2rem; }

body.home h1 { margin-bottom: 0.75rem; }
body.home .lede { margin-bottom: 1.5rem; }
.home-status { margin: 2.5rem 0 0; color: var(--label); }

.home-foot { margin-top: 0; padding: 1.5rem 0 2rem; }
.home-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  max-width: none;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ---------- company: verification details, kept secondary ---------- */

.registry p {
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--soft);
  margin-bottom: 0.6rem;
}
.registry p:first-child {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}
.registry a { color: var(--body); border-bottom: none; }
