/* ==========================================================================
   PINE HYRST GOLF CLUB — FOUNDATION STYLESHEET
   Domain: pine-hyrst.shop | Tampa, Florida | Ground: Oat #E8DFD0
   Vertical: Goods & retail / Golf club | Dark Premium & Warm Earth
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,500;1,700&display=swap');

:root {
  /* Design Tokens — Brief authoritative palette */
  --ground: #E8DFD0;
  --ground-card: #F4EDE2;
  --ground-elevated: #ECE4D6;
  --ink: #191715;
  --ink-muted: #5C564E;
  --ink-subtle: #7A7268;
  --charcoal: #1E1B18;
  --clay: #242D26;
  --clay-deep: #1A221C;
  --terracotta: #9E472A;
  --terracotta-hover: #83381E;
  --ochre: #C4823F;
  --ochre-soft: #D99B5B;
  --border: #D2C5B0;
  --border-strong: #BAAB94;
  --border-dark: #36322C;
  --border-dark-subtle: #453F38;

  /* Paper & Dark contrasts */
  --paper-cream: #FAF6F0;
  --ink-on-dark: #F7F2EB;
  --ink-muted-on-dark: #C9BFA8;

  /* Typography */
  --font-display: 'Besley', 'Playfair Display', Georgia, serif;
  --font-body: 'IBM Plex Mono', 'Besley', monospace, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --renu-9e0: 'IBM Plex Mono', monospace !important;
  --renu-17d: 'IBM Plex Mono', monospace !important;
  --renu-0be: 'Besley', Georgia, serif !important;

  /* Fluid Display Scale */
  --step--2: clamp(0.72rem, 0.70rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.06rem, 1.02rem + 0.2vw, 1.18rem);
  --step-1: clamp(1.28rem, 1.20rem + 0.4vw, 1.50rem);
  --step-2: clamp(1.55rem, 1.42rem + 0.65vw, 1.95rem);
  --step-3: clamp(1.88rem, 1.68rem + 1.0vw, 2.50rem);
  --step-4: clamp(2.28rem, 2.00rem + 1.4vw, 3.25rem);
  --step-5: clamp(2.75rem, 2.35rem + 2.0vw, 4.25rem);

  /* Spacing Rhythm */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1.0rem;
  --space-m: 1.5rem;
  --space-l: 2.0rem;
  --space-xl: 3.0rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.0rem;

  /* Layout geometry */
  --frame-max-width: 1360px;
  --frame-border-width: 1px;
  --reading-max-width: 72ch;
  --radius-xs: 2px;
  --radius-s: 3px;
  --radius-m: 4px;

  /* Elevation & Shadows */
  --shadow-subtle: 0 1px 3px rgba(25, 23, 21, 0.06), 0 1px 2px rgba(25, 23, 21, 0.04);
  --shadow-card: 0 4px 14px rgba(25, 23, 21, 0.08), 0 1px 3px rgba(25, 23, 21, 0.04);
  --shadow-lift: 0 10px 28px rgba(25, 23, 21, 0.12), 0 3px 6px rgba(25, 23, 21, 0.06);
  --shadow-floating: 0 18px 42px rgba(15, 13, 11, 0.24), 0 4px 12px rgba(15, 13, 11, 0.12);

  /* Motion Tokens — Precise, focus-first luxury */
  --transition-fast: 140ms cubic-bezier(0.2, 0.0, 0.1, 1.0);
  --transition-base: 220ms cubic-bezier(0.2, 0.0, 0.1, 1.0);
  --transition-slow: 380ms cubic-bezier(0.2, 0.0, 0.05, 1.0);
  --transition-focus: 160ms cubic-bezier(0.0, 0.0, 0.2, 1.0);
}

/* --------------------------------------------------------------------------
   Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--ground);
  color: var(--ink);
  scroll-behavior: smooth;
  accent-color: var(--terracotta);
}

body,
body p,
body span,
body div,
body li,
body td,
body th,
body a {
  font-family: "IBM Plex Mono", "Besley", monospace, Georgia, serif !important;
}

body {
  font-family: "IBM Plex Mono", "Besley", monospace, Georgia, serif;
  font-size: var(--step-0);
  line-height: 1.62;
  letter-spacing: 0.012em;
  color: var(--ink);
  background-color: var(--ground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

svg.icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  fill: currentColor;
  flex-shrink: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), border-color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--terracotta);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5 { font-size: var(--step-0); }
h6 { font-size: var(--step--1); }

p {
  max-width: var(--reading-max-width);
  margin-block-end: var(--space-m);
}

p:last-child {
  margin-block-end: 0;
}

strong, b {
  font-weight: 600;
  color: var(--ink);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--step--1);
  line-height: 1.45;
}

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.4;
  border-left: 2px solid var(--terracotta);
  padding-left: var(--space-m);
  margin-block: var(--space-l);
  color: var(--clay);
}

ul, ol {
  padding-left: var(--space-l);
  margin-block-end: var(--space-m);
}

li {
  margin-block-end: var(--space-2xs);
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin-block: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Layout Primitives — Boxed Frame & Margin Note Architecture
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-s);
  background: var(--charcoal);
  color: var(--ink-on-dark);
  padding: var(--space-xs) var(--space-m);
  z-index: 9999;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-s);
}

/* The Boxed Outer Frame */
.site-frame {
  max-width: var(--frame-max-width);
  margin-inline: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ground);
  border-inline: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(30, 27, 24, 0.05);
  position: relative;
}

@media (max-width: 1400px) {
  .site-frame {
    border-inline: none;
  }
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.container-narrow {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.container-wide {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* Editorial Margin Notes Layout */
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-block: var(--space-l);
}

@media (max-width: 1024px) {
  .book-layout {
    grid-template-columns: 1fr !important;
  }
}

.book-layout-reverse {
  grid-template-columns: 280px minmax(0, 1fr);
}

.book-reading-col {
  min-width: 0;
}

.book-margin-col {
  min-width: 0;
  border-left: 1px solid var(--border);
  padding-left: var(--space-m);
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink-muted);
}

.book-margin-note {
  margin-bottom: var(--space-l);
  padding-bottom: var(--space-s);
  border-bottom: 1px dashed var(--border);
}

.book-margin-note:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.book-margin-label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  display: block;
  margin-bottom: var(--space-3xs);
}

.book-margin-figure {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--space-3xs);
}

@media (max-width: 880px) {
  .book-layout,
  .book-layout-reverse {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .book-margin-col {
    border-left: 2px solid var(--ochre);
    padding-left: var(--space-s);
    background-color: var(--ground-card);
    padding: var(--space-s);
    border-radius: var(--radius-s);
  }
}

/* Stamp / Wax Seal Signature Moment */
.maker-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid var(--ochre);
  position: relative;
  background-color: var(--ground-card);
  box-shadow: inset 0 0 0 3px var(--ground), inset 0 0 0 4px var(--border);
  color: var(--terracotta);
  flex-shrink: 0;
}

.maker-seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
}

.maker-seal-inner {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  font-weight: 600;
  z-index: 1;
}

.maker-seal-large {
  width: 96px;
  height: 96px;
}

.maker-seal-large .maker-seal-inner {
  font-size: 0.72rem;
}

.maker-seal-dark {
  background-color: var(--clay);
  border-color: var(--ochre);
  box-shadow: inset 0 0 0 3px var(--charcoal), inset 0 0 0 4px var(--border-dark);
  color: var(--ochre);
}

.maker-seal-dark::before {
  border-color: var(--border-dark-subtle);
}

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

.text-mono {
  font-family: var(--font-mono);
}

.text-display {
  font-family: var(--font-display);
}

.text-terracotta {
  color: var(--terracotta);
}

.text-ochre {
  color: var(--ochre);
}

.text-muted {
  color: var(--ink-muted);
}

.text-balance {
  text-wrap: balance;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
