/* Joust Friends — dark theme, yellow (#ffc206) accent */

:root {
  --bg: #23262b;
  --bg-soft: #2c3038;
  --text: #e8eaed;
  --text-muted: #9ca3af;
  --accent: #ffc206;
  --accent-hover: #e5ae05;
  --border: #3d424a;
  --radius: 8px;
  --space: 30px;
  --space-sm: 15px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  line-height: 1.2;
}

/* Site header: logo only, same on all pages */
.site-header {
  padding: 40px 0 30px;
  text-align: center;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 30px;
}

.logo-link {
  display: inline-block;
  padding: 10px 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.logo-link:hover {
  background: var(--bg-soft);
  border-color: var(--border);
}

.logo {
  display: block;
  height: 80px;
  width: auto;
  max-width: 240px;
  margin: 0;
}

/* Hero + tagline: homepage only */
.hero {
  padding: 0 0 50px;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}

.hero-card {
  padding: var(--space) 60px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.hero h1 {
  margin: 0 0 15px;
  font-weight: 600;
  color: var(--accent);
  text-align: left;
}

.tagline {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: left;
}

.hero-sub {
  margin: 15px 0 0;
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: left;
}

.hero-cta {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--accent-hover);
}

/* Signup page: wider main, 2-column layout */
.main--signup {
  max-width: 840px;
}

.signup-cols {
  display: grid;
  gap: var(--space);
  margin-top: var(--space-sm);
}

.signup-form-col {
  border: 1px solid #3d424a;
  border-radius: var(--radius);
  min-height: 430px;
}

.signup-intro h1 {
  margin-top: 0;
}

.signup-intro p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-muted);
}

@media (min-width: 600px) {
  .signup-cols {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 30px 60px;
}

/* Photo row: full-width grid. repeat(auto-fill, minmax(140px, 300px)) = equal columns, max 300px; extra column added when space allows. Images fill cell 100%. */
.photo-row-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 30px;
}

.photo-row-full {
  max-width: 2445px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  justify-content: center;
}

.photo-row-full img {
  width: 100%;
  height: auto;
  display: none;
}

.photo-row-full img:nth-child(-n+6) {
  display: block;
}

@media (min-width: 768px) {
  .photo-row-full {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .photo-row-full img:nth-child(-n+8) {
    display: block;
  }
}

@media (min-width: 1025px) {
  .photo-row-full {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }

  .photo-row-full img:nth-child(-n+10) {
    display: block;
  }
}

.section {
  padding: 30px 0;
}

.section h2,
.section h1 {
  margin: 0 0 15px;
  font-weight: 600;
  color: var(--accent);
}

.section h2 {
  font-size: 1.4rem;
}

.section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section p + p {
  margin-top: 15px;
}

.section strong {
  color: var(--text);
}

.drill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.drill-list li {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 24px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.drill-list svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Stagger rows: first row left, second row right */
.drill-list li:nth-child(4n+1),
.drill-list li:nth-child(4n+2) {
  transform: translateX(-15px);
}
.drill-list li:nth-child(4n+3),
.drill-list li:nth-child(4n+4) {
  transform: translateX(15px);
}

@media (min-width: 420px) {
  .drill-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .drill-list li:nth-child(6n+1),
  .drill-list li:nth-child(6n+2),
  .drill-list li:nth-child(6n+3) {
    transform: translateX(-15px);
  }
  .drill-list li:nth-child(6n+4),
  .drill-list li:nth-child(6n+5),
  .drill-list li:nth-child(6n+6) {
    transform: translateX(15px);
  }
}

/* Sessions: 2-column layout */
.sessions-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space);
  margin-top: var(--space-sm);
}

.session-card {
  padding: var(--space-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.session-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.session-card .session-type {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.session-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.session-card li {
  margin-bottom: 6px;
}

.session-card li:last-child {
  margin-bottom: 0;
}

.session-card li.session-sub {
  margin-left: 1.2em;
  list-style: none;
  padding-left: 0.5em;
  position: relative;
}

.session-card li.session-sub::before {
  content: "– ";
  position: absolute;
  left: -0.6em;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .site-header {
    padding: 24px 0 18px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .photo-row-full {
    gap: 7.5px;
  }

  .hero-cta {
    padding: 10px 20px;
  }

  .hero-inner {
    padding: 0 30px;
  }

  .hero-card {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .sessions-cols {
    grid-template-columns: 1fr;
  }
}

.private {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

/* Signup form */
.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.signup-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 18px;
  font-size: 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
}

.signup-form input::placeholder {
  color: var(--text-muted);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 194, 6, 0.2);
}

.signup-form button {
  padding: 12px 30px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.signup-form button:hover {
  background: var(--accent-hover);
}

/* Contact form */
/* Narrow centered column for contact heading, intro, and form */
.contact-inner {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.contact-form label {
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 18px;
  font-size: 1.05rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 194, 6, 0.2);
}

.contact-form button {
  align-self: flex-start;
  padding: 12px 30px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 6px;
}

.contact-form button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer p {
  margin: 0;
}

/* Signed-up confirmation: card + single setting icon + CTA */
.signedup-card {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space) 30px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.signedup-card .tagline {
  text-align: center;
}

.signedup-icon {
  margin-top: var(--space);
  margin-left: auto;
  margin-right: auto;
}

.signedup-icon svg {
  width: 72px;
  height: 72px;
  display: block;
  fill: none;
  stroke: var(--accent);
  stroke-width: .5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto;
}

.signedup-card .hero-cta {
  margin-top: 30px;
}

@media (min-width: 500px) {
  .logo {
    height: 100px;
  }

  .tagline,
  .hero-sub,
  .signup-intro p {
    font-size: 1.35rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }
}
