/* ==========================================================
   Jammer website styles

   To change the look, start with the colours and fonts just
   below: they are used everywhere else on the page.
   ========================================================== */

:root {
  /* Colours */
  --paper:  #f4ede1;   /* page background */
  --paper-2:#ebe1cf;   /* slightly darker panels */
  --ink:    #1c1a17;   /* main text */
  --muted:  #6b6358;   /* secondary text */
  --accent: #e2492f;   /* buttons, highlights */
  --line:   #d6cab4;   /* staff lines and borders */

  /* Fonts */
  --display: "Young Serif", Georgia, serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;

  /* Layout */
  --width: 1080px;
  --gutter: clamp(16px, 5vw, 48px);
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

a { color: inherit; }

main > section {
  max-width: var(--width);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}

/* ---------- buttons and links ---------- */

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 0.85em 1.6em;
  font: 700 1rem var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.button:hover { background: var(--accent); transform: translateY(-2px); }
.button.small { padding: 0.5em 1.1em; font-size: 0.9rem; }

.link { font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- top bar ---------- */

.topbar {
  max-width: var(--width);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--display);
  font-size: 1.6rem;
  text-decoration: none;
}
.logo::after { content: "."; color: var(--accent); }
.topbar nav { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.topbar nav a:not(.button) { text-decoration: none; color: var(--muted); }
.topbar nav a:not(.button):hover { color: var(--ink); }

@media (max-width: 600px) {
  .topbar nav a:not(.button) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  /* five faint staff lines behind the headline */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 31px,
    var(--line) 31px, var(--line) 32px
  );
  background-size: 100% 160px;
  background-repeat: no-repeat;
  background-position: 0 clamp(90px, 14vw, 170px);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}
.hero h1 { font-size: clamp(3.2rem, 11vw, 8.5rem); letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { max-width: 34em; font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 2em; }

/* page-load entrance */
.hero > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero > *:nth-child(2) { animation-delay: .08s; }
.hero > *:nth-child(3) { animation-delay: .16s; }
.hero > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .hero > * { animation: none; } }

/* ---------- modes ---------- */

.modes h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 2px solid var(--ink);
}
.grid article {
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line);
}
.grid article + article { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 520px) {
  .grid article + article { padding-left: 0; border-left: 0; }
}
.num { font: 700 0.8rem var(--body); color: var(--accent); letter-spacing: 0.1em; }
.grid h3 { font-size: 1.6rem; margin-top: 0.4em; }
.grid p { color: var(--muted); margin: 0; }

/* ---------- why ---------- */

.why {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }
.why blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.2;
}
.why ul { list-style: none; margin: 0; padding: 0; }
.why li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.why li strong { color: var(--ink); display: block; }

/* ---------- call to action ---------- */

.cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  text-align: center;
}
main > section.cta {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--width) - 2 * var(--gutter));
  margin-bottom: 64px;
}
.cta h2 { font-size: clamp(2.4rem, 6vw, 4rem); }
.cta p { color: var(--line); }
.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.5em; }
.signup input {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 0.85em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--paper);
  font: 1rem var(--body);
}
.cta .button { background: var(--accent); }
.cta .button:hover { background: var(--paper); color: var(--ink); }

/* ---------- footer ---------- */

.footer {
  max-width: var(--width);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
