/* Elements layer: reset and bare element styles. No classes. */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0; /* site-wide rule: no rounded corners anywhere */
}

* {
  margin: 0;
}

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

body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink);
  background-color: var(--c-paper);
  /* soft off-centre radial tint lifting the top-right corner */
  background-image: radial-gradient(
    90rem 62rem at 106% -10%,
    rgba(233, 168, 32, 0.13),
    transparent 62%
  );
  background-attachment: fixed;
  /* clearance for the fixed 18+ bar */
  padding-bottom: 3.25rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--c-purple);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 9vw, 8rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.25rem);
}

h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
}

h4 {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

p,
li {
  max-width: 68ch;
}

a {
  color: var(--c-purple);
  font-weight: 600;
  text-decoration-color: var(--c-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-gold-deep);
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--s-3) var(--s-2);
  border-bottom: 1px dashed var(--c-line-soft);
}

th {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--c-ink-soft);
}

button {
  font: inherit;
  cursor: pointer;
}

address {
  font-style: normal;
}

details > summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-purple);
  padding: var(--s-3) 0;
  list-style-position: outside;
}

details[open] > summary {
  color: var(--c-gold-deep);
}

::selection {
  background: var(--c-gold);
  color: var(--c-purple-deep);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
