/* Arctic Reading Circle — reproduction of arcticreadingcircle.org (Squarespace, 2021-2023)
   Theme palette extracted from the original site.css */

:root {
  --accent: hsl(203.75, 36.36%, 25.88%);      /* dark slate blue */
  --light-accent: hsl(51.07, 100%, 76.27%);   /* pale yellow */
  --dark-accent: hsl(0, 0%, 26.67%);          /* #444444 */
  --black: hsl(0, 0%, 15.69%);                /* #282828 */
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--black);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1.2em; }

a { color: inherit; }

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

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  padding: 1.6em 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}

.site-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--black);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8em;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--black);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Archive notice ---------- */

.archive-notice {
  background: var(--light-accent);
  color: #000;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.7em 4vw;
}

/* ---------- Sections / themes ---------- */

.section {
  padding: 5em 4vw;
}

.section .inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section--narrow .inner { max-width: 800px; }

/* default + "white" theme: white bg, slate-blue headings */
.theme-default { background: var(--white); color: var(--black); }
.theme-default h1, .theme-default h2, .theme-default h3 { color: var(--accent); }

/* "bright" theme: slate-blue bg, white text */
.theme-bright { background: var(--accent); color: var(--white); }
.theme-bright h1, .theme-bright h2, .theme-bright h3 { color: var(--white); }

/* "dark-bold" theme: dark grey bg, yellow headings */
.theme-dark { background: var(--dark-accent); color: var(--white); }
.theme-dark h1, .theme-dark h2, .theme-dark h3 { color: var(--light-accent); }

/* "black" theme (used over hero photos): dark bg, white headings */
.theme-black { background: var(--dark-accent); color: var(--white); }
.theme-black h1, .theme-black h2, .theme-black h3 { color: var(--white); }

/* "black-bold": near-black bg, yellow headings */
.theme-black-bold { background: var(--black); color: var(--white); }
.theme-black-bold h1, .theme-black-bold h2, .theme-black-bold h3 { color: var(--light-accent); }

/* ---------- Hero (banner with background photo) ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 5em 4vw;
  color: var(--white);
}

.hero--large  { min-height: 78vh; }
.hero--medium { min-height: 55vh; }
.hero--small  { min-height: 34vh; }

.hero .inner { position: relative; z-index: 1; max-width: 900px; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero h1 { color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 1.1em 2em;
  margin: 0.4em 0;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; }

.theme-default .btn { background: var(--accent); color: var(--white); }
.theme-bright  .btn { background: var(--white); color: var(--accent); }
.theme-dark    .btn,
.theme-black   .btn,
.theme-black-bold .btn,
.hero .btn { background: var(--light-accent); color: #000; }

/* ---------- Layout helpers ---------- */

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5em;
}

@media (max-width: 760px) {
  .cols, .cols-3 { grid-template-columns: 1fr; }
}

.center { text-align: center; }

.caption {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.6em;
}

blockquote {
  font-size: 1.15rem;
  font-style: italic;
  margin: 0 0 0.4em;
}

.quote-attr { margin-bottom: 2em; font-size: 0.95rem; }

.qa h3 { margin-top: 1.8em; }

.story {
  max-width: 760px;
  margin: 0 auto 4em;
}

.story h2 { margin-top: 1.5em; }

/* ---------- Forms (static, non-functional) ---------- */

.form-grid {
  display: grid;
  gap: 1.2em;
  max-width: 640px;
}

.form-grid label { font-weight: 600; font-size: 0.9rem; }

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.9em;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ccc;
  background: var(--white);
}

.newsletter-form {
  display: flex;
  gap: 0.8em;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5em;
}

.newsletter-form input {
  padding: 0.9em 1em;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  min-width: 260px;
}

.newsletter-form .btn { margin: 0; }

/* ---------- Embedded form iframe ---------- */

.embed-frame {
  width: 100%;
  max-width: 760px;
  height: 900px;
  border: none;
  margin: 2em auto;
  display: block;
  background: var(--white);
}

/* ---------- Footer ---------- */

.footer-newsletter { text-align: center; }

.footer-main { text-align: center; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.4em;
  margin: 1.5em 0;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid currentColor;
  border-radius: 50%;
  text-decoration: none;
}

.social-links svg { width: 20px; height: 20px; fill: currentColor; }

.copyright {
  text-align: center;
  padding: 1.5em 4vw;
  font-size: 0.85rem;
}
