/*
 * gf-base.css — fonts, tokens and reset for the golf theme.
 * Loads before gf-components.css. Tokens follow spec §4; edit values here only.
 */

/* ---------- Fonts (self-hosted, spec §4 / §12) ---------- */
@font-face { font-family: Inter; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/dm-mono-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: Anuphan; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/anuphan-thai-300-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Anuphan; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/anuphan-thai-500-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Anuphan; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/anuphan-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Anuphan; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/anuphan-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens (spec §4) ---------- */
:root {
	/* colour — interface is black / white / grey only */
	--gf-ink: #000000;
	--gf-paper: #ffffff;
	--gf-mute: #8c8c8c;
	--gf-sub: #555555;
	--gf-sub-2: #6b6b6b;
	--gf-panel: #f0f0f0;
	--gf-line-soft: #d9d9d9;
	--gf-field: #d6d6d6;
	--gf-ph: #2e2e2e;
	--gf-hover: #3a3a3a;

	/* type */
	--gf-sans: Inter, sans-serif;
	--gf-mono: "DM Mono", sans-serif;
	--gf-thai: Anuphan, sans-serif;

	/* space — 8 px grid, steps in use */
	--gf-gutter: 40px;
	--gf-gap: 20px;
	--gf-s-8: 8px; --gf-s-12: 12px; --gf-s-16: 16px; --gf-s-20: 20px; --gf-s-24: 24px; --gf-s-32: 32px;
	--gf-s-40: 40px; --gf-s-48: 48px; --gf-s-56: 56px; --gf-s-64: 64px; --gf-s-72: 72px; --gf-s-96: 96px;
	--gf-s-120: 120px; --gf-s-160: 160px;
}
@media screen and (max-width: 767px) {
	:root { --gf-gutter: 20px; --gf-gap: 12px; }
}

/* ---------- Reset (WEBFLOW_BASE_RESET) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; }
body { margin: 0; min-height: 100%; background-color: var(--gf-paper); color: var(--gf-ink); }
img { max-width: 100%; vertical-align: middle; display: inline-block; border: 0; }
button { font: inherit; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100000; padding: 12px 16px; background: var(--gf-paper); color: var(--gf-ink); font-family: var(--gf-mono); font-size: 12px; text-transform: uppercase; }

/* ---------- Motion (spec §8) ---------- */
.gf-marquee-track { animation: gf-marquee 40s linear infinite; }
@keyframes gf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.gf-marquee-track { animation: none; }
}

/* ---------- Thai typography (spec §10) ----------
 * Built in build step 7 (Thai site): Inter → Anuphan fallback under :lang(th),
 * display line-heights ≥ 1.2 and no negative tracking. Needs gf-thai.css loaded
 * after gf-components.css so it can override the class rules.
 */

/* ---------- Native buttons wearing Webflow div classes (spec §7) ---------- */
button.gf-pr-arrow, button.gf-pr-arrow-h, button.gf-pr-shotbtn {
	appearance: none; -webkit-appearance: none; margin: 0; border-radius: 0; font: inherit; text-align: inherit; line-height: inherit;
}
button.gf-pr-arrow, button.gf-pr-arrow-h { border: 0; padding: 0; font-family: "DM Mono", sans-serif; font-size: 18px; font-weight: 300; }
button.gf-pr-shotbtn { padding: 0; display: block; width: 100%; height: 100%; }

/* ---------- Screen lightbox (Webflow casestudylbui 1.0.0, verbatim) ---------- */
.gf-lb{position:fixed;inset:0;z-index:9999;background:#1f1f1f;display:none;align-items:center;justify-content:center}.gf-lb.on{display:flex}.gf-lb img{max-width:min(90vw,1400px);max-height:calc(100svh - 160px);object-fit:contain;background:#fff}.gf-lb button{position:absolute;background:none;border:0;color:#fff;font:300 28px/1 sans-serif;cursor:pointer;padding:16px}.gf-lb .p{left:4px;top:50%;transform:translateY(-50%)}.gf-lb .n{right:4px;top:50%;transform:translateY(-50%)}.gf-lb .x{right:4px;top:4px}.gf-lb button:disabled{opacity:.25;cursor:default}.gf-lb button:focus-visible{outline:2px solid #fff}.gf-lb p{position:absolute;left:0;right:0;bottom:20px;margin:0 auto;max-width:720px;padding:0 24px;color:#fff;text-align:center;font:14px/1.5 Inter,sans-serif}.gf-lb b{display:block;font:400 12px "DM Mono",monospace;text-transform:uppercase;opacity:.75;margin-bottom:4px}
