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

/* ── Design Tokens ── */
:root {
  --ink:         #1e1a12;
  --ink-mid:     #5a4e38;
  --ink-light:   #8a7a60;
  --gold:        #c9a84c;
  --gold-warm:   #d4973a;
  --gold-light:  #e8c96a;
  --page-bg:     #faf8f4;
  --cream:       #f2ebe0;
  --cream-dark:  #e0d4be;
  --transition:  0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--page-bg);
  color: var(--ink);
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  line-height: 1.25;
}

p { line-height: 1.75; }

/* ── Shared Nav ── */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

.site-nav .brand {
  font-family: 'Playfair Display', serif;
  color: var(--gold-warm);
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
}

.site-nav a {
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.active { color: var(--gold-warm); }

/* ── Page Hero Banner (inner pages) ── */
.page-hero {
  position: relative;
  height: 320px;
  background-image: url('images/background.jpg'),
    linear-gradient(160deg, #c8a050 0%, #e8c870 50%, #f5e090 100%);
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: flex-end;
  padding: 0 3rem 2.5rem;
  margin-top: 64px;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 8, 0, 0.08) 0%,
    rgba(15, 8, 0, 0.52) 100%
  );
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.page-hero .gold-rule {
  position: relative;
  z-index: 1;
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold-light);
  margin-top: 0.75rem;
}

/* ── Content Area ── */
.content-area {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(30,20,8,0.06);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(30,20,8,0.12);
}

.card-body { padding: 1.5rem; }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card .meta {
  font-size: 0.82rem;
  color: var(--gold-warm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.card p { font-size: 0.9rem; color: var(--ink-mid); }

.card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--gold-warm), var(--gold-light));
}

/* ── Section Heading ── */
.section-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--ink-mid);
  font-size: 1rem;
  max-width: 600px;
}

.gold-divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0 2rem;
}

/* ── Philosophy Page ── */
.philosophy-block {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.philosophy-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.philosophy-block p { color: var(--ink-mid); }

/* ── Results Table ── */
.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.92rem;
}

.results-table thead tr {
  background: var(--ink);
  color: #fff;
}

.results-table th {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  padding: 0.9rem 1.1rem;
  text-align: left;
  letter-spacing: 0.05em;
}

.results-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--cream-dark);
}

.results-table tbody tr:nth-child(even) { background: var(--cream); }
.results-table tbody tr:hover { background: #ede3cf; }

.medal { font-size: 1.1rem; }

/* ── Footer ── */
.site-footer {
  background: var(--cream);
  color: var(--ink-mid);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--cream-dark);
}

.site-footer a { color: var(--gold-warm); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .site-nav { padding: 0 1rem; gap: 1rem; }
  .site-nav .brand { display: none; }
  .site-nav ul { gap: 0.75rem; }
  .site-nav a { font-size: 0.72rem; letter-spacing: 0.02em; }
  .page-hero { padding: 0 1.25rem 1.75rem; }
  .content-area { padding: 2.5rem 1.25rem 4rem; }
}
