/* Sideout Journal — Volleyball blog styles */
:root {
  --ink: #12141c;
  --ink-2: #2a2d3a;
  --muted: #6c7183;
  --line: #e5e2dc;
  --paper: #faf7f2;
  --paper-2: #f2ede4;
  --accent: #ec6a2a;    /* volleyball orange */
  --accent-dark: #c9541c;
  --navy: #14264a;
  --navy-2: #1e3562;
  --sand: #f6ecd7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

.serif { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }

/* Header */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(250,247,242,0.92);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .ball {
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff2d8 0%, var(--accent) 60%, var(--accent-dark) 100%);
  position: relative;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.15);
}
.brand .ball::before, .brand .ball::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.brand .ball::before {
  inset: 3px 12px 15px 3px;
  transform: rotate(-30deg);
  border-color: transparent transparent rgba(255,255,255,0.6) rgba(255,255,255,0.6);
}
.brand .ball::after {
  inset: 12px 3px 3px 12px;
  transform: rotate(-30deg);
  border-color: rgba(255,255,255,0.6) rgba(255,255,255,0.6) transparent transparent;
}

nav ul { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; }
nav a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero — magazine cover style */
.hero-post {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero-post .grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-post img { width: 100%; height: 480px; object-fit: cover; border-radius: 4px; background: var(--paper-2); }
.hero-post .kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-post h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-post .lede { font-size: 19px; color: var(--muted); margin-bottom: 24px; }
.hero-post .byline {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--muted);
}
.hero-post .byline strong { color: var(--ink); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--navy));
  display: inline-block;
}

@media (max-width: 900px) {
  .hero-post .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .hero-post h1 { font-size: 32px; }
  .hero-post img { height: 260px; }
}

/* Section headings */
section { padding: 64px 0; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 36px;
}
.section-title h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-title a { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* Article cards */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; gap: 32px; } }

.card-article { display: block; color: inherit; }
.card-article:hover { text-decoration: none; }
.card-article img {
  width: 100%; height: 240px; object-fit: cover;
  border-radius: 4px;
  background: var(--paper-2);
  margin-bottom: 18px;
  transition: transform .3s;
}
.card-article:hover img { transform: translateY(-3px); }
.card-article .category {
  color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 8px;
}
.card-article h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.card-article:hover h3 { color: var(--accent-dark); }
.card-article .excerpt { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.card-article .meta { color: var(--muted); font-size: 13px; }

/* Wide two-column card row */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* Article body (individual post) */
.post-hero {
  padding: 60px 0 20px;
  text-align: center;
}
.post-hero .category {
  display: inline-block;
  color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 18px;
}
.post-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  max-width: 820px;
  margin: 0 auto 20px;
}
.post-hero .lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 28px;
}
.post-hero .byline {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 14px;
}
.post-hero .byline strong { color: var(--ink); }

.post-cover img {
  width: 100%; height: 520px; object-fit: cover;
  border-radius: 4px;
  background: var(--paper-2);
  margin: 30px 0 20px;
}
.post-cover .caption {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
  padding: 0 28px;
}

.post-body {
  padding: 40px 0 80px;
}
.post-body p { margin-bottom: 22px; font-size: 18px; line-height: 1.75; }
.post-body p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  float: left;
  font-size: 74px;
  line-height: 0.85;
  font-weight: 800;
  margin: 8px 12px 0 0;
  color: var(--accent);
}
.post-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 800;
  margin: 44px 0 18px;
  letter-spacing: -0.5px;
}
.post-body h3 {
  font-size: 20px; font-weight: 700; margin: 28px 0 12px;
}
.post-body blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 36px 0;
}
.post-body ul, .post-body ol { padding-left: 28px; margin: 0 0 24px; }
.post-body li { margin-bottom: 8px; }
.post-body img.inline {
  width: 100%; height: auto; margin: 30px 0 10px; border-radius: 4px;
}

.tag-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 40px 0;
}
.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 13px;
  border-radius: 20px;
  font-weight: 500;
}

.author-card {
  display: flex; gap: 20px;
  padding: 30px;
  background: var(--paper-2);
  border-radius: 8px;
  margin: 40px 0;
}
.author-card .avatar { width: 70px; height: 70px; flex-shrink: 0; }
.author-card h4 { font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 6px; }
.author-card p { color: var(--muted); font-size: 15px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  transition: background .15s, transform .15s;
  border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn.outline { background: transparent; color: var(--accent-dark); border-color: var(--accent-dark); }
.btn.outline:hover { background: var(--accent); color: #fff; }

/* Newsletter block */
.newsletter {
  background: var(--navy);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.newsletter p { color: #c9d1e1; margin-bottom: 28px; max-width: 540px; margin-left:auto; margin-right:auto; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
}
.newsletter button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}
.newsletter button:hover { background: var(--accent-dark); }
@media (max-width: 600px) { .newsletter form { flex-direction: column; } }

/* Contact form */
form.contact-form { max-width: 640px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); font-size: 14px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  border-radius: 3px;
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--accent);
}
.form-row textarea { min-height: 150px; resize: vertical; }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal h1 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-family: 'Playfair Display', serif; font-size: 26px; margin: 40px 0 14px; letter-spacing: -0.3px; }
.legal h3 { font-size: 18px; margin: 24px 0 10px; color: var(--accent-dark); }
.legal p, .legal li { margin-bottom: 12px; color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 28px; margin-bottom: 16px; }
.legal .toc {
  background: var(--paper-2);
  padding: 22px 30px;
  border-left: 4px solid var(--accent);
  margin-bottom: 36px;
  border-radius: 0 4px 4px 0;
}
.legal .toc h3 { color: var(--ink); margin-top: 0; }

/* Footer */
footer.site {
  background: var(--ink);
  color: #b7bccd;
  padding: 60px 0 24px;
  margin-top: 30px;
}
footer.site .brand { color: #fff; margin-bottom: 20px; }
footer.site .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { footer.site .grid { grid-template-columns: 1fr 1fr; } }
footer.site h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: #b7bccd; font-size: 14px; }
footer.site a:hover { color: var(--accent); }
footer.site .copyright {
  border-top: 1px solid #2a2d3a;
  padding-top: 22px;
  margin-top: 40px;
  color: #767b8c;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
