:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --ink: #18231d;
  --muted: #657066;
  --line: #d9d5c8;
  --fairway: #668b5b;
  --deep-green: #243d2f;
  --sand: #d6b46d;
  --water: #527f9c;
  --flag: #b54c36;
  --white: #fffdf8;
  --shadow: 0 18px 48px rgba(24, 35, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(24, 35, 29, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(24, 35, 29, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.home-hero {
  min-height: 34vh;
  display: grid;
  align-content: end;
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--line);
}

.kicker,
.label,
.meta-pill,
.quick-link,
.nav-link,
.back-link {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kicker {
  margin: 0 0 8px;
  color: var(--flag);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3rem, 9vw, 7.4rem);
  line-height: 0.88;
  font-weight: 900;
}

.lede {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.45;
}

.hole-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 24px 0 0;
}

.hole-card {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(24, 35, 29, 0.08);
}

.hole-card:focus-visible,
.nav-link:focus-visible,
.back-link:focus-visible,
.quick-link:focus-visible {
  outline: 3px solid rgba(181, 76, 54, 0.5);
  outline-offset: 3px;
}

.hole-card img {
  width: 100%;
  height: 122px;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--line);
}

.card-body {
  padding: 14px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hole-title {
  font-size: 1.38rem;
  font-weight: 900;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf6;
  color: var(--deep-green);
  font-size: 0.78rem;
  font-weight: 800;
}

.strategy-snippet {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.hole-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.hole-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.hole-number {
  margin: 0;
  color: var(--flag);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hole-heading {
  margin-top: 4px;
}

.picture-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.picture-panel img {
  width: 100%;
  height: auto;
  background: #e3e8d5;
}

.picture-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.strategy-panel {
  padding: 2px 0 0;
}

.headline-note {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3.4vw, 3.15rem);
  line-height: 1.04;
  font-weight: 900;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stat {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.value {
  display: block;
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1.08;
}

.strategy-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.strategy-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.strategy-item dd {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.36;
}

.hole-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.nav-link {
  display: grid;
  min-height: 74px;
  align-content: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--deep-green);
  color: var(--white);
  text-decoration: none;
}

.nav-link.next {
  text-align: right;
}

.nav-direction {
  display: block;
  opacity: 0.78;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-hole {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
  font-weight: 900;
}

.quick-jump {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 14px;
  padding-bottom: 4px;
}

.quick-link {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.quick-link.active {
  background: var(--flag);
  border-color: var(--flag);
  color: var(--white);
}

@media (max-width: 780px) {
  .site-shell {
    width: min(100% - 22px, 680px);
    padding-top: 18px;
  }

  .home-hero {
    min-height: 28vh;
  }

  .hole-layout {
    grid-template-columns: 1fr;
  }

  .picture-panel {
    order: -1;
  }

  .hole-header {
    align-items: start;
    flex-direction: column-reverse;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 0;
  }
}

@media (max-width: 460px) {
  .hole-grid {
    grid-template-columns: 1fr;
  }

  .hole-nav {
    grid-template-columns: 1fr;
  }

  .nav-link.next {
    text-align: left;
  }
}
