/* The Green Tour — modern rebuild
   Identity: Scandinavian golf trip, friends + competition, since 1998.
   Palette: deep fairway green + warm sand + parchment, with a single forged-iron accent.
*/

:root {
  --green-900: #15321e;
  --green-800: #1d4429;
  --green-700: #2f6b3f;
  --green-500: #4f8f5a;
  --green-300: #b6d3a3;
  --sand-100: #f4ecd9;
  --sand-200: #e8dcbf;
  --sand-300: #d6c594;
  --paper:    #faf7ef;
  --ink:      #1a1a1a;
  --muted:    #5a5a55;
  --rule:     #d8d2c2;
  --accent:   #b46a2e;   /* forged-iron / leather grip */

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gap: clamp(1rem, 2vw, 1.75rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--green-900);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.25; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 239, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand svg { width: 28px; height: 28px; }
.brand strong { font-weight: 600; }
.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a.is-active {
  color: var(--green-700);
  border-color: var(--green-700);
}
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 0.85rem; font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 1rem clamp(1rem, 4vw, 2rem);
    border-bottom: 1px solid var(--rule);
    gap: 0.75rem;
  }
  .nav-toggle { display: inline-block; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../images/hero-pond.jpg') center/cover no-repeat;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,50,30,0.25) 0%, rgba(21,50,30,0.55) 60%, rgba(21,50,30,0.85) 100%);
  z-index: -1;
}
.hero .container {
  padding-top: 6rem;
  padding-bottom: 3.5rem;
  width: 100%;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--sand-300); }
.hero p.lede {
  max-width: 50ch;
  font-size: 1.1rem;
  margin: 1rem 0 1.8rem;
  color: rgba(255,255,255,0.9);
}
.hero .stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 1.3rem;
}
.hero .stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 400;
}
.hero .stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-300);
  margin-top: 0.35rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform .15s, background .2s, color .2s;
}
.btn-primary {
  background: var(--paper); color: var(--green-900);
}
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost:hover { background: #fff; color: var(--green-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ----- Sections ----- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--sand-100); }
.section-dark { background: var(--green-900); color: var(--sand-100); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--sand-300); }
.section-dark a { color: var(--sand-300); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 70ch;
}
.section-head.split {
  grid-template-columns: 1fr 1fr;
  align-items: end;
  max-width: none;
  gap: 2.5rem;
}
@media (max-width: 720px) {
  .section-head.split { grid-template-columns: 1fr; }
}

/* ----- Two-column intro ----- */
.intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.intro img {
  border-radius: 2px;
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.intro .body p { margin: 0 0 1rem; color: var(--muted); }
.intro .body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  float: left;
  line-height: 0.9;
  padding: 0.25rem 0.6rem 0 0;
  color: var(--green-700);
}
@media (max-width: 800px) {
  .intro { grid-template-columns: 1fr; }
}

/* ----- Tours timeline ----- */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.tour-card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.25rem;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.tour-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(21,50,30,0.45);
}
.tour-card .year {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--green-800);
}
.tour-card .winner {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.2rem;
  font-weight: 600;
}
.tour-card .venue {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.tour-card .arrow {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
}

/* ----- Players ----- */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.player {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-top: 1px solid var(--rule);
}
.player .avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--sand-200);
}
.player h3 { font-size: 1.05rem; margin-bottom: 0.1rem; }
.player .nick {
  display: block;
  font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin-bottom: 0.3rem;
}
.player p { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; }

/* ----- Gallery ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 0.6rem;
}
.gallery figure { margin: 0; overflow: hidden; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery figure:hover img { transform: scale(1.04); }
.g1 { grid-column: span 6; grid-row: span 2; }
.g2 { grid-column: span 3; grid-row: span 1; }
.g3 { grid-column: span 3; grid-row: span 1; }
.g4 { grid-column: span 4; grid-row: span 1; }
.g5 { grid-column: span 4; grid-row: span 1; }
.g6 { grid-column: span 4; grid-row: span 1; }
@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g1, .g2, .g3, .g4, .g5, .g6 { grid-column: span 1; grid-row: span 1; }
  .g1 { grid-column: span 2; grid-row: span 2; }
}

/* ----- Courses ----- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.course {
  border: 1px solid var(--rule);
  padding: 1.1rem 1.2rem;
  background: #fff;
}
.course h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.course .years {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-700); font-weight: 600;
}

/* ----- Champions ----- */
.champion-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.champion-list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.champion-list .yr {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--sand-300);
}
.champion-list .who {
  font-size: 1.1rem;
  color: #fff;
}
.champion-list .who small {
  display: block; color: rgba(255,255,255,0.6);
  font-size: 0.85rem; margin-top: 0.2rem;
}
.champion-list .venue {
  font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sand-300);
}
@media (max-width: 600px) {
  .champion-list li { grid-template-columns: 60px 1fr; }
  .champion-list .venue { grid-column: 2; margin-top: 0.3rem; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer h4 {
  color: #fff; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 600;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.site-footer .colophon {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
}
@media (max-width: 720px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ----- Page hero (sub-pages) ----- */
.page-hero {
  background: var(--green-900);
  color: var(--sand-100);
  padding: 7rem 0 3.5rem;
  border-bottom: 8px solid var(--accent);
}
.page-hero .eyebrow { color: var(--sand-300); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { max-width: 60ch; color: rgba(255,255,255,0.8); margin-top: 1rem; }

/* ----- Article body ----- */
.article {
  max-width: 70ch;
  margin: 0 auto;
}
.article p { color: var(--muted); margin: 0 0 1.1rem; }
.article h2 { margin-top: 2.5rem; }
.article blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--green-800);
}

/* utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ----- Countdown ----- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}
.cd-cell {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.4rem 1rem;
  text-align: center;
}
.cd-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--green-800);
  font-weight: 500;
}
.cd-label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-note { margin-top: 1.2rem; }
@media (max-width: 600px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Hotnews list ----- */
.hotnews-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: 1.4rem;
}
.hotnews-list li {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--accent);
}
.hotnews-list .hn-author {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-900);
  font-weight: 500;
  margin-right: 0.6rem;
}
.hotnews-list .hn-date {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hotnews-list p {
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}
.hotnews-list.big li { padding: 1.4rem 1.6rem; }

.hotnews-form-note {
  margin-top: 3rem;
  padding: 1.6rem 1.8rem;
  background: var(--sand-100);
  border: 1px dashed var(--rule);
}
.hotnews-form-note ul { color: var(--muted); }

/* ----- Champions cards ----- */
.champ-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.champ-card {
  background: #fff;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.champ-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(21,50,30,0.45);
}
.champ-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--sand-200);
}
.champ-card .champ-body { padding: 1.1rem 1.3rem 1.4rem; }
.champ-card h3 { margin: 0 0 0.2rem; }
.champ-card .champ-titles {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0.2rem 0 0.7rem;
}
.champ-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ----- PDF list ----- */
.pdf-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
}
.pdf-list li {
  background: #fff;
  border: 1px solid var(--rule);
}
.pdf-list a {
  display: block;
  padding: 0.9rem 1.1rem;
  font-weight: 500;
  color: var(--green-800);
}
.pdf-list a::before {
  content: "📄  ";
  margin-right: 0.3rem;
}
.pdf-list a:hover { background: var(--sand-100); color: var(--accent); }

/* ----- Livescore status ----- */
.livescore-status {
  background: var(--sand-100);
  border-left: 4px solid var(--green-700);
  padding: 1.6rem 1.8rem;
}
.livescore-status p { color: var(--muted); }
.embed-codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.embed-codes article {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1rem;
}
.embed-codes h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--green-800);
}
.embed-codes code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ----- Countdown section spacing ----- */
.countdown-section { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
