/* ════════════════════════════════════════════════════════════
   PDX Scrabble · style.css
   Colour theme: classic US Scrabble board (Selchow & Righter)
     TWS red · DWS pink · TLS dark blue · DLS light blue · cream board

   TO RETHEME: change the CSS custom properties in :root below.
   TO ADD A VENUE: copy a .venue-card block in index.html.
   TO ADD A TOURNAMENT: add a <li> in #past-tournaments.
   ════════════════════════════════════════════════════════════

Bonus Square Common Color Name Approx. HTML Hex
Triple Word Score Red #FF4D4D
Double Word Score Pink #FFB6C1
Triple Letter Score Dark Blue #3399FF
Double Letter Score Light Blue #BFEFFF

*/

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --tws: #d93025; --dws: #e8a0aa; --tls: #2b5fa0; --dls: #a8ccdf;
  --tile-bg: #f5edcb; --tile-border: #c8b87a; --tile-shadow: #9a8a50;
  --page-bg: #ede9d0; --surface: #f8f5e8;
  --accent: var(--tls); --accent-light: #ddeaf5;
  --text: #1a1a2e; --text-muted: #5a6070; --border: #ccc8aa;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--page-bg); color: var(--text); font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: var(--accent); } a:hover { color: var(--tile-shadow); }
.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

header {
  background: url('/banner.jpg') center center/cover no-repeat;
  color: var(--tile-bg);
  width: 100%;
  height: 30.7vw;
  position: relative;
  padding: 0;
}
.header-inner { position: absolute; top: 1.25rem; right: 1.5rem; text-align: right; }

.title-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 1rem; }
.tile { display: inline-flex; align-items: flex-start; justify-content: center; position: relative; width: 52px; height: 56px; background: var(--tile-bg); border: 2px solid #c8a870; border-radius: 5px; box-shadow: 3px 3px 0 #7a6a30, inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.08); color: var(--text); font-family: 'Lora', Georgia, serif; font-size: 1.75rem; font-weight: 700; padding-top: 4px; line-height: 1; }
.tile sub { position: absolute; bottom: 4px; right: 5px; font-size: 0.5rem; font-weight: 700; line-height: 1; font-family: 'Open Sans', Arial, sans-serif; }
.tile-space { width: 18px; }
.tagline { font-family: 'Lora', Georgia, serif; font-size: 1.2rem; color: #fff; letter-spacing: 0.05em; margin-bottom: 1.1rem; }

.social-links { display: flex; gap: clamp(0.3rem, 0.75vw, 0.75rem); justify-content: flex-end; flex-wrap: wrap; }
.social-btn { display: inline-block; padding: 0.56rem 1.68rem; background: rgba(10,25,55,0.45); border: 1.5px solid rgba(255,255,255,0.65); border-radius: 20px; color: #fff; text-decoration: none; font-size: 1.26rem; font-weight: 600; transition: background 0.2s; }
.social-btn:hover { background: rgba(10,25,55,0.70); color: #fff; }

main { padding: 2.5rem 0 3rem; }
section { margin-bottom: 3rem; }
h2 { font-family: 'Lora', Georgia, serif; font-size: 1.55rem; color: var(--accent); border-bottom: 2px solid var(--tile-border); padding-bottom: 0.4rem; margin-bottom: 1.4rem; }
h3 { font-family: 'Lora', Georgia, serif; font-size: 1.05rem; color: var(--text); margin-bottom: 0.5rem; }

.venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.venue-card { background: var(--surface); border: 1.5px solid #c06070; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.venue-card.featured { box-shadow: 0 2px 10px rgba(217,48,37,0.15); }
.venue-header { background: var(--dws); border-bottom: 1.5px solid #c06070; padding: 0.6rem 1rem; font-family: 'Lora', Georgia, serif; font-weight: 700; font-size: 0.97rem; color: #5a1020; }
.venue-body { padding: 0.75rem 1rem 0.9rem; }
.venue-time { font-size: 0.95rem; margin-bottom: 0.25rem; }
.venue-location { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; line-height: 1.4; }
.venue-note { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.5rem; line-height: 1.4; }
.venue-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.tag { display: inline-block; padding: 0.15rem 0.55rem; background: var(--tile-bg); border: 1px solid var(--tile-border); border-radius: 3px; font-size: 0.73rem; font-weight: 600; }
.tag.price { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.tag a { color: inherit; text-decoration: none; } .tag a:hover { text-decoration: underline; }
.tag.map { border-width: 2px; border-color: var(--tls); color: var(--tls); font-weight: 700; }
.tag.map:hover { background: var(--accent-light); }

.info-box { background: var(--surface); border-left: 4px solid var(--tls); border-radius: 0 6px 6px 0; padding: 1rem 1.25rem; }
.info-box h3 { margin-bottom: 0.5rem; } .info-box p { font-size: 0.93rem; margin-bottom: 0.5rem; } .info-box p:last-child { margin-bottom: 0; }

.tournament-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 580px) { .tournament-columns { grid-template-columns: 1fr; } }
.tournament-list { list-style: none; padding: 0; }
.tournament-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.tournament-list li:last-child { border-bottom: none; }
.muted { color: var(--text-muted); font-size: 0.93rem; }

#dictionaries > p { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text-muted); }
.dict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.dict-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 6px; padding: 0.9rem 1rem 1rem; }
.dict-card h3 { font-size: 1rem; color: var(--accent); padding-bottom: 0.3rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
.dict-card p { font-size: 0.86rem; line-height: 1.55; }

footer { background: var(--tls); color: #ddeaf5; padding: 1.75rem 1.25rem; text-align: center; }
footer a { color: #fff; } footer a:hover { color: var(--dls); }
footer p { margin-bottom: 0.4rem; font-size: 0.93rem; }
.footer-social { font-size: 0.9rem; margin-bottom: 0.5rem; }
.fine-print { font-size: 0.75rem; color: rgba(221,234,245,0.65); margin-top: 0.75rem; line-height: 1.5; }

@media (max-width: 480px) {
  .tile { width: 40px; height: 44px; font-size: 1.35rem; }
  .tile-space { width: 10px; }
  .venue-grid { grid-template-columns: 1fr; }
  .dict-grid { grid-template-columns: 1fr; }
}