/* ============================================================
   Poetry Without Borders — Shared Stylesheet
   Design: Elegant & Literary
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────── */
:root {
  --teal:          #2c5f63;
  --teal-mid:      #3a7478;
  --teal-dark:     #1d3e41;
  --teal-pale:     #e8f3f4;
  --parchment:     #faf7f2;
  --parchment-mid: #f0ebe0;
  --parchment-dark:#e2d9c8;
  --ink:           #1c3336;
  --gold:          #b8823c;
  --gold-light:    #d4a85a;
  --gold-pale:     #f5ead6;
  --text:          #2d2a25;
  --text-muted:    #6b6460;
  --white:         #ffffff;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 8px 28px rgba(0,0,0,.12);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.18);
  --radius:        12px;
  --radius-lg:     20px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--parchment);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-mid); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 0;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ── Site Navigation ───────────────────────────────────── */
.site-nav {
  background: var(--teal-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
  letter-spacing: .3px;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--gold-light) !important; }
.nav-links {
  display: flex;
  gap: clamp(4px, 2vw, 6px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .18s, color .18s;
  letter-spacing: .2px;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}
.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
}
.nav-links a.nav-cta:hover {
  background: var(--gold-light);
}

/* ── Page Header Band ──────────────────────────────────── */
.page-header {
  background: var(--teal);
  background-image:
    radial-gradient(ellipse 800px 400px at 20% 50%, rgba(255,255,255,.06), transparent 70%),
    radial-gradient(ellipse 600px 300px at 80% 20%, rgba(0,0,0,.08), transparent 70%);
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px);
  text-align: center;
  color: var(--white);
}
.page-header h1 {
  color: var(--white);
  margin-bottom: .4em;
}
.page-header .subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.8);
  margin: 0;
}
.page-header .meta {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1em;
}

/* ── Layout Container ──────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ── Content Sections ──────────────────────────────────── */
.content-section {
  padding: clamp(32px, 5vw, 60px) 0;
}
.content-section + .content-section {
  border-top: 1px solid var(--parchment-dark);
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 32px);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-md); }

/* ── Divider ───────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--parchment-dark);
  margin: clamp(24px, 4vw, 48px) 0;
}
.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(24px, 4vw, 48px) 0;
  color: var(--parchment-dark);
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--parchment-dark);
}
.divider-ornament span {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ── Section Heading ───────────────────────────────────── */
.section-heading {
  font-family: 'Playfair Display', serif;
  color: var(--teal-dark);
  margin-bottom: .3em;
}
.section-heading-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 0 1.5em;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .18s;
  letter-spacing: .3px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(44,95,99,.35);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #a3712e;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184,130,60,.4);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ── Tags / Badges ─────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.badge-gold { background: var(--gold-pale); color: #7a5320; }
.badge-teal { background: var(--teal-pale); color: var(--teal-dark); }

/* ── Judge Cards ───────────────────────────────────────── */
.judges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 1.5em;
}
.judge-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  transition: box-shadow .2s, transform .2s;
}
.judge-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.judge-card h3 {
  color: var(--teal-dark);
  margin-bottom: .2em;
  font-size: 1.15rem;
}
.judge-card .judge-role {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .8em;
}
.judge-card p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.judge-card a {
  font-family: 'Inter', sans-serif;
  font-size: .83rem;
  font-weight: 500;
  display: inline-block;
  margin-top: .6em;
}

/* ── Award Cards ───────────────────────────────────────── */
.award-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.award-card .award-label {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gold);
  margin-bottom: .25em;
}
.award-card .award-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}
.award-card .award-title {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--teal-mid);
}
.award-card a {
  font-family: 'Inter', sans-serif;
  font-size: .83rem;
}

/* ── Category Section ──────────────────────────────────── */
.category-section {
  margin-bottom: 2.5em;
}
.category-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--teal);
  background: var(--teal-pale);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: .8em;
}

/* ── Poem Display ──────────────────────────────────────── */
.poem-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--gold);
}
.poem-text {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.9;
  white-space: pre-wrap;
  color: var(--text);
}
.poem-attribution {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--parchment-dark);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ── Info Box ──────────────────────────────────────────── */
.info-box {
  background: var(--gold-pale);
  border: 1px solid #e0c890;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.5em 0;
}
.info-box-teal {
  background: var(--teal-pale);
  border-color: #b0d5d8;
}

/* ── Prize List ────────────────────────────────────────── */
.prize-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prize-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--parchment-dark);
  font-family: 'Lora', serif;
}
.prize-list li:last-child { border-bottom: none; }
.prize-amount {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  min-width: 60px;
}

/* ── Gallery Grid ──────────────────────────────────────── */
.photo-gallery {
  display: grid;
  gap: 14px;
  margin: 1.5em 0;
}
.photo-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.photo-gallery.single { grid-template-columns: 1fr; max-width: 560px; }
.photo-gallery img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}
.photo-gallery.cols-3 img { height: 200px; }
.photo-gallery.cols-4 img { height: 180px; }

/* ── Ceremony Block ────────────────────────────────────── */
.ceremony-block {
  margin-bottom: 3em;
}
.ceremony-writeup {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--teal-pale);
}
.ceremony-writeup h2 {
  color: var(--teal-dark);
  font-size: 1.4rem;
  margin-bottom: .5em;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,.7);
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px);
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: .5em;
}
.footer-tagline {
  font-style: italic;
  font-size: .9rem;
  margin-bottom: 1em;
}
.footer-contact a {
  color: var(--gold-light);
}
.footer-nav h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .8em;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li { margin-bottom: .4em; }
.footer-nav a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  transition: color .15s;
}
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
  .photo-gallery.cols-3,
  .photo-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery.cols-3 img,
  .photo-gallery.cols-4 img { height: 140px; }
}
@media (max-width: 480px) {
  .nav-links a { padding: 6px 10px; font-size: .82rem; }
  .photo-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
