/* CNESF Sporting Clays Classic
   Edit colors, type, and layout here. */

:root {
  --bg: #ffffff;
  --ink: #1a1c16;
  --muted: #5e5b53;
  --line: #d5dde6;
  --paper: #ffffff;
  --wash: #f3f7fb;
  --header: #eaf3fb;
  --navy: #001642;
  --navy-text: #ffffff;
  --shadow: 0 0 0 1px rgba(26, 28, 22, 0.06), 0 1px 2px -1px rgba(26, 28, 22, 0.06), 0 2px 4px 0 rgba(26, 28, 22, 0.04);
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  outline: 1px solid rgba(26, 28, 22, 0.1);
  outline-offset: -1px;
}

a { color: inherit; }

h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 500; font-family: var(--display); }
h1 { color: var(--navy); }
p { text-wrap: pretty; }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 50;
  background: var(--navy);
  color: var(--navy-text);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--header);
}
.header-inner,
.footer-inner,
.wrap {
  width: min(1152px, calc(100% - 40px));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 56px;
  width: auto;
  outline: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--navy-text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--navy-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.btn:hover { filter: brightness(1.08); }
.btn-outline {
  background: #d6d6d6;
  color: var(--ink);
}
.btn-outline:hover { filter: brightness(0.96); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero */
.hero { padding: 80px 0 32px; }
.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.lede {
  max-width: 36rem;
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}
.hero-date {
  margin: 24px 0 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.hero-meta {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-photo { padding-bottom: 64px; }
.hero-photo img,
.frame img {
  width: 100%;
  object-fit: cover;
}
.frame {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero-photo img { aspect-ratio: 16 / 9; }

/* Event split */
.event-block {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding: 80px 0;
}
.event-grid {
  display: grid;
  gap: 48px;
}
.event-grid h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.event-grid .body {
  margin-top: 24px;
  color: var(--muted);
}
.day-sheet {
  background: var(--bg);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.day-sheet h3 { font-size: 1.25rem; }
.day-sheet ol {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.day-sheet li {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.day-sheet li:first-child { border-top: 0; padding-top: 0; }
.day-sheet .time {
  width: 80px;
  flex-shrink: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.day-sheet .detail { color: var(--muted); }
.venue {
  display: flex;
  gap: 8px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.venue svg { flex-shrink: 0; margin-top: 2px; }

/* Included */
.included { padding: 80px 0; }
.included-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.included img { aspect-ratio: 2 / 1; object-fit: cover; }
.included-grid > div > ul { list-style: none; margin: 24px 0 0; padding: 0; }
.included-grid > div > ul > li + li { margin-top: 24px; }
.included h3 { font-size: 1.25rem; }
.included p {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.prize-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.prize-list li {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}
.prize-list li + li { margin-top: 4px; }
.prize-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
}

/* Entries */
.entries {
  border-block: 1px solid var(--line);
  background: var(--wash);
  padding: 64px 0;
}
.entries h2 { font-size: 1.875rem; }
.entries .hint {
  max-width: 36rem;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.entry-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.entry {
  background: var(--paper);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.entry .label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry .price {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 1.875rem;
}
.entry .note {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.entry .note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Close */
.close { padding: 80px 0; }
.close-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.close h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.close p {
  max-width: 28rem;
  margin-top: 16px;
  color: var(--muted);
}
.close img { aspect-ratio: 2 / 1; }

/* Register page */
.page {
  width: min(768px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
}
.page h1 {
  margin-top: 12px;
  font-size: clamp(2.25rem, 5vw, 3rem);
}
.page .intro {
  margin-top: 24px;
  color: var(--muted);
}

.location {
  margin-top: 40px;
}
.location h2 {
  font-size: 1.5rem;
}
.location-name {
  margin: 16px 0 0;
  font-weight: 500;
}
.location-address {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.location-links {
  margin: 12px 0 0;
  font-size: 0.875rem;
}
.location-links a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.embed-frame {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.embed-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}
.map-frame iframe {
  height: 320px;
}

.help {
  margin-top: 32px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}
.help a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-frame {
  margin-top: 24px;
}
.form-frame iframe {
  height: 2441px;
  background: #fff;
}


/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--header);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.125rem;
}
.footer-brand svg { width: 20px; height: 20px; }
.legal {
  max-width: 28rem;
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }

@media (min-width: 640px) {
  .header-inner,
  .footer-inner,
  .wrap { width: min(1152px, calc(100% - 64px)); }
  .page { width: min(768px, calc(100% - 64px)); }
  .entry-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .event-grid { grid-template-columns: 7fr 5fr; gap: 64px; }
  .included-grid,
  .close-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .entry-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
