:root {
  --ink: #17221c;
  --muted: #5d6b62;
  --paper: #f6f1e6;
  --paper-deep: #ece3d2;
  --court: #0d6b4d;
  --court-dark: #084d38;
  --ball: #d8ee48;
  --clay: #cb6847;
  --line: rgba(23, 34, 28, 0.14);
  --shadow: 0 24px 70px rgba(31, 48, 38, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(216, 238, 72, 0.2), transparent 30rem),
    linear-gradient(135deg, var(--paper) 0%, #fbf8f1 48%, var(--paper-deep) 100%);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image: linear-gradient(rgba(13, 107, 77, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(13, 107, 77, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: var(--court-dark); }

.shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--court-dark);
  background: var(--ball);
  box-shadow: inset -5px -5px 0 rgba(8, 77, 56, 0.08);
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 800;
}

nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
nav a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
nav a:hover, nav a:focus { color: var(--court); text-decoration: underline; }

.hero {
  min-height: 66vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 8vw, 100px);
  padding: 70px 0 110px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--court);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 { margin: 0; font-size: clamp(3rem, 8vw, 6.8rem); max-width: 11ch; }
h2 { margin-top: 2.4em; font-size: clamp(1.75rem, 4vw, 2.7rem); }
h3 { margin-top: 1.8em; font-size: 1.3rem; }

.lede { max-width: 62ch; color: var(--muted); font-size: 1.12rem; }

.court-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: 32px;
  color: white;
  background: var(--court);
  box-shadow: var(--shadow);
}

.court-card::before,
.court-card::after {
  position: absolute;
  content: "";
  border: 2px solid rgba(255,255,255,0.75);
}

.court-card::before { inset: 32px; }
.court-card::after { top: 32px; bottom: 32px; left: 50%; }

.ball {
  position: absolute;
  z-index: 1;
  right: 13%;
  top: 17%;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--ball);
  box-shadow: 0 20px 32px rgba(0,0,0,0.2);
}

.ball::before,
.ball::after {
  position: absolute;
  inset: 10px -20px;
  content: "";
  border: 4px solid rgba(255,255,255,0.75);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(34deg);
}

.ball::after { transform: rotate(-34deg); }

.card-note {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 18px;
  background: rgba(8, 77, 56, 0.82);
  backdrop-filter: blur(12px);
}

.card-note strong { display: block; font-size: 1.15rem; }
.card-note span { color: rgba(255,255,255,0.72); font-size: 0.9rem; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 110px;
}

.link-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.link-card:hover, .link-card:focus {
  transform: translateY(-4px);
  border-color: var(--court);
  box-shadow: 0 16px 40px rgba(31,48,38,0.1);
}

.link-card strong { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.link-card span { color: var(--muted); font-size: 0.93rem; }

.document {
  max-width: 820px;
  margin: 56px auto 100px;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}

.document h1 { max-width: none; font-size: clamp(2.5rem, 7vw, 4.8rem); }
.document p, .document li { color: #34443a; }
.document li { margin-bottom: 0.55rem; }
.document .meta { color: var(--muted); font-size: 0.92rem; }
.notice { padding: 18px 20px; border-left: 4px solid var(--clay); background: rgba(203,104,71,0.08); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .site-header, footer { align-items: flex-start; flex-direction: column; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 48px 0 72px; }
  .court-card { min-height: 320px; }
  .link-grid { grid-template-columns: 1fr; padding-bottom: 72px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 650ms both; }
  .hero > *:last-child { animation-delay: 120ms; }
  .link-card { animation: rise 520ms both; }
  .link-card:nth-child(2) { animation-delay: 80ms; }
  .link-card:nth-child(3) { animation-delay: 160ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
