/* ===========================================================
   Fogberry Games — site styles
   Shared by index.html and jig/index.html.

   Sections of this file:
     1. Colours & sizes   (change these first)
     2. Base text
     3. Page layout
     4. Header & navigation
     5. Content blocks     (photos, badge, captions, etc.)
     6. Small screens      (phones)
   =========================================================== */


/* ---------- 1. Colours & sizes ---------- */
:root {
  --orange-dark: #c5410f;   /* links, badge rules */
  --orange:      #e8551f;
  --ink:         #161210;   /* main text */
  --ink-soft:    #555;      /* captions, copyright */
  --rule:        #e3d6cb;   /* thin divider lines */
  --rule-strong: #1b1714;   /* heavy lines around the nav */
  --paper:       #ffffff;
  --fog-blue:    #a9bcc6;   /* header background */
  --section-a:   #fcefe6;   /* sections alternate between these */
  --section-b:   #f8ddca;   /*   two light orange shades */

  --font: Avenir, "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --content-width: 720px;   /* max width of the text column */
  --photo-width:   340px;   /* max width of photos */
}


/* ---------- 2. Base text ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;   /* keeps headings clear of the sticky nav */
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  margin: 0 0 0.4em;
  line-height: 1.12;
}
h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }

p { margin: 0 0 1.1rem; }

a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; }


/* ---------- 3. Page layout ---------- */

/* Each block of content is a <section class="section">. */
.section {
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem;
  text-align: center;
}

/* Sections alternate between two shades of orange automatically. */
main > .section:nth-child(odd)  { background: var(--section-a); }
main > .section:nth-child(even) { background: var(--section-b); }

/* The centred text column inside each section. */
.column {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Paragraphs are justified; short centred lines use class="centered". */
.column p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.column p.centered { text-align: center; }


/* ---------- 4. Header & navigation ---------- */
.site-header {
  padding: 1.8rem 1.25rem 1.6rem;
  background: var(--fog-blue);
  text-align: center;
}
.site-header img {
  display: block;
  margin: 0 auto;
  width: 431px;       /* logo is ~104px tall at this width */
  max-width: 100%;
}

/* Stays stuck to the top of the screen while scrolling. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--paper);
  border-top: 3px double var(--rule-strong);
  border-bottom: 3px double var(--rule-strong);
}
.site-nav a {
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  letter-spacing: 0.13em;
  color: var(--ink);
  text-decoration: none;
  border-left: 1px solid var(--rule);
}
.site-nav a:first-child { border-left: 0; }
.site-nav a:hover { color: var(--orange-dark); }


/* ---------- 5. Content blocks ---------- */

/* Photos: black frame, centred. */
.photo {
  display: block;
  width: 100%;
  max-width: var(--photo-width);
  margin: 0 auto;
  border: 3px solid black;
}

/* Small grey line under a photo. */
.caption {
  margin-top: 0.5rem;
  font-size: 0.9em;
  color: var(--ink-soft);
}

/* "Coming early 2027!" label with orange lines above & below. */
.badge {
  display: inline-block;
  margin: 0.6rem 0 1.75rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-top: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
}

/* A block separated from what's above by a thin line. */
.divided {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.divided + .divided { margin-top: 0; }

/* Google Form sign-up box. */
.signup-form {
  display: block;
  width: 100%;
  max-width: 640px;
  height: 586px;
  margin: 1.5rem auto 0;
  border: 0;
}

.copyright {
  margin-top: 2.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}


/* ---------- 6. Small screens (phones) ---------- */
@media (max-width: 600px) {
  .site-header { padding: 1.25rem 1rem; }

  .site-nav a {
    padding: 0.7rem 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }

  /* Justified text leaves big gaps on narrow screens, so left-align it. */
  .column p { text-align: left; }

  .signup-form { height: 720px; }
}

/* Very small phones: squeeze the nav so it fits on one line. */
@media (max-width: 360px) {
  .site-nav a { padding: 0.7rem 0.4rem; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
