/* Cumberland Laboratories — apex site
   Palette and type follow the brand artwork:
   ink #1c1b18 · paper #f5f3ee · EB Garamond → Georgia, letterspaced caps */

:root {
  --ink: #1c1b18;
  --paper: #f5f3ee;
  --muted: rgba(28, 27, 24, 0.62);
  --rule: rgba(28, 27, 24, 0.28);
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f3ee;
    --paper: #1c1b18;
    --muted: rgba(245, 243, 238, 0.62);
    --rule: rgba(245, 243, 238, 0.30);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

section p,
ul.work li,
ul.refusals li {
  text-align: justify;
  hyphens: auto;
}

/* ---- Masthead ---- */

.masthead {
  text-align: center;
  margin-bottom: 4.5rem;
}

.mark {
  width: 72px;
  height: 72px;
  color: var(--ink);
  margin-bottom: 2.25rem;
}

.masthead h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* recenters letterspaced caps */
  text-transform: uppercase;
  line-height: 1.2;
}

.rule-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.9rem auto;
  width: min(19rem, 80%);
}

.rule-ornament span {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.rule-ornament i {
  width: 6px;
  height: 6px;
  background: var(--ink);
  transform: rotate(45deg);
}

.wordmark-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  text-transform: uppercase;
  opacity: 0.9;
}

.tagline {
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Body sections ---- */

section { margin-bottom: 3.25rem; }

.lede {
  font-size: 1.3rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

section p + p { margin-top: 1.1rem; }

h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

ul.work,
ul.refusals {
  list-style: none;
}

ul.work li,
ul.refusals li {
  margin-bottom: 1.15rem;
}

strong { font-weight: 600; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--ink); }

/* ---- Footer ---- */

footer {
  margin-top: 4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

footer .fine {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- Small screens ---- */

@media (max-width: 480px) {
  main { padding-top: 3.5rem; }
  .masthead h1 { font-size: 1.45rem; letter-spacing: 0.32em; text-indent: 0.32em; }
  .wordmark-sub { font-size: 0.8rem; letter-spacing: 0.5em; text-indent: 0.5em; }
  .lede { font-size: 1.18rem; }
}
