/*
Theme Name: Golfnet.ie
Theme URI: https://golfnet.ie/
Author: Golfnet.ie
Author URI: https://golfnet.ie/
Description: Golfnet.ie — Irish open golf, live scores, handicap (WHS) guidance and golf betting. DB-first live-data theme: WP-Cron pulls two feeds (Live Golf Data API for tournaments/scores and the SpinBetter odds gateway for betting prices) into wp_golf_* tables; templates only ever read the database, never fetch on page load. See README.md for the install checklist and API wiring.
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golfnet
Tags: sports, golf, live-scores, betting
*/

/* =========================================================================
 * Golfnet.ie — theme root stylesheet
 * The site markup (Nav, footer, page templates) is styled inline per the
 * design build; this file establishes the shared foundation: web fonts, the
 * brand palette as custom properties, base resets and a few global rules.
 * Design tokens are drawn from the Golfnet.ie design build.
 * ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&display=swap');

:root {
  /* Brand greens */
  --gn-ink:          #12301e;  /* primary text / dark section bg */
  --gn-green:        #40916c;  /* primary accent */
  --gn-green-light:  #95d5b2;  /* accent on dark backgrounds */
  --gn-green-bright: #6cc24a;  /* highlight / "live" */

  /* Text */
  --gn-text:         #12301e;
  --gn-text-muted:   #3a4a40;
  --gn-text-soft:    #4a5a50;
  --gn-text-faint:   #64756a;
  --gn-on-dark:      #c8d6cc;  /* body text on --gn-ink */
  --gn-on-dark-faint:#8fa596;

  /* Surfaces & lines */
  --gn-bg:           #ffffff;
  --gn-border:       #e3e9e0;
  --gn-border-soft:  #eef2ec;

  /* Type */
  --gn-font-sans:  'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --gn-font-serif: 'Newsreader', Georgia, serif;

  /* Layout */
  --gn-maxw:   1240px;
  --gn-radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--gn-font-sans);
  color: var(--gn-text);
  background: var(--gn-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--gn-font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: pretty;
}

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

a { color: var(--gn-green); text-decoration: none; }
a:hover { color: var(--gn-ink); text-decoration: underline; }

/* Shared eyebrow/label treatment used across sections */
.gn-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gn-green);
}

/* Section container */
.gn-container { max-width: var(--gn-maxw); margin: 0 auto; padding: 0 24px; }

/* Accessibility helper */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
 * Editable page content — used wherever an editorial content field (typed
 * through wp_editor in the Page edit screen) gets echoed into a "Golfnet —
 * X" template. Semantic h2/h3/p/a/ul/blockquote tags are styled here instead
 * of via inline styles, because inline styles don't survive a WYSIWYG editor
 * round-trip — whatever Inga types (headings, links, lists, bold) picks up
 * this look automatically. Values match the long-running $gn_h2/$gn_h3/$gn_p
 * convention already used across the regional-guide-style pages.
 * ---------------------------------------------------------------------- */
.gnp-content h2 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--gn-ink);
}
.gnp-content h3 {
  font-size: 23px;
  letter-spacing: -0.01em;
  margin: 30px 0 12px;
  color: var(--gn-ink);
}
.gnp-content h3:first-child { margin-top: 0; }
.gnp-content p {
  font-family: var(--gn-font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--gn-text-muted);
  margin: 0 0 18px;
}
.gnp-content p:last-child { margin-bottom: 0; }
.gnp-content a { color: var(--gn-green); font-weight: 600; }
.gnp-content strong { color: var(--gn-ink); }
.gnp-content ul, .gnp-content ol {
  font-family: var(--gn-font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--gn-text-muted);
  margin: 0 0 18px;
  padding-left: 22px;
}
.gnp-content li { margin: 0 0 9px; }
.gnp-content blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--gn-green-bright);
}

/* Dark-background variant — for hero intros over the green gradient band.
   A plain inline color on the wrapper isn't enough: .gnp-content p above is
   a class+tag rule, so it beats inherited color by specificity regardless of
   what the wrapper's inline style says. */
.gnp-content--dark, .gnp-content--dark p, .gnp-content--dark li {
  color: var(--gn-on-dark);
}
.gnp-content--dark a { color: var(--gn-green-light); }
.gnp-content--dark strong, .gnp-content--dark h2, .gnp-content--dark h3 { color: #fff; }

/* WordPress alignment/caption defaults */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--gn-text-faint); }
