:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --paper-deep: #e9e1d0;
  --ink: #183b29;
  --ink-soft: #516257;
  --accent: #9d6b3f;
  --line: rgba(24, 59, 41, 0.18);
  --shadow: 0 24px 70px rgba(44, 54, 43, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.92), transparent 34rem),
    linear-gradient(150deg, var(--paper), #f8f5ee 52%, var(--paper-deep));
  line-height: 1.65;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(157, 107, 63, 0.65);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid rgba(157, 107, 63, 0.38);
  outline-offset: 4px;
  border-radius: 2px;
}

.landing-page {
  display: grid;
  grid-template-rows: 1fr auto;
}

.landing {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(100% - 2rem, 58rem);
  margin: 0 auto;
  padding: 4rem 0 2rem;
  text-align: center;
}

.coin {
  --glint-x: 50%;
  --glint-y: 38%;
  position: relative;
  width: min(100%, 32rem, calc(100vh - 13rem));
  aspect-ratio: 506 / 507;
  border-radius: 50%;
  transform-style: preserve-3d;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 30px rgba(29, 49, 35, 0.12));
}

.coin::after {
  position: absolute;
  inset: 1.5%;
  border-radius: 50%;
  background: radial-gradient(
    circle at var(--glint-x) var(--glint-y),
    rgba(255, 249, 217, 0.5) 0,
    rgba(255, 244, 201, 0.16) 17%,
    transparent 43%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateZ(1px);
}

.intro {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  letter-spacing: 0.025em;
}

.page-header {
  width: min(100% - 2rem, 48rem);
  margin: 0 auto;
  padding: 2rem 0 0;
}

.brand-link {
  display: inline-block;
}

.brand-link img {
  display: block;
  width: 9rem;
  height: auto;
  mix-blend-mode: multiply;
}

.legal-page {
  width: min(100% - 2rem, 48rem);
  margin: 2rem auto 4rem;
}

.legal-page article {
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 2.5rem;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
}

p,
ul,
address {
  margin: 0 0 1.15rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

address {
  font-style: normal;
}

.site-footer {
  padding: 1.5rem 1rem 2rem;
  color: var(--ink-soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 36rem) {
  .landing {
    padding-top: 2rem;
  }

  .coin {
    width: min(100%, 30rem, calc(100vh - 12rem));
  }

  .legal-page {
    margin-top: 1.25rem;
  }

  .legal-page article {
    border-right: 0;
    border-left: 0;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .coin {
    cursor: pointer;
    will-change: transform;
  }

  .coin .brand-logo {
    transition: filter 650ms ease;
  }

  .coin::after {
    transition: opacity 700ms ease;
  }

  .coin.is-active .brand-logo {
    filter: drop-shadow(0 30px 38px rgba(29, 49, 35, 0.18));
  }

  .coin.is-active::after {
    opacity: 0.72;
  }

  .coin.is-struck::after {
    animation: coin-glint 850ms ease-out;
  }
}

@keyframes coin-glint {
  0% {
    opacity: 0.72;
  }

  36% {
    opacity: 1;
  }

  100% {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 160ms ease;
  }
}
