/* Eddie Kershaw — one-page site. Palette pulled from the logo stamp: paper, ink, rust. */

:root {
  --paper: #efe6d2;
  --paper-deep: #e4d6b8;
  --card: #f8f2e4;
  --ink: #1c2840;
  --ink-soft: #46506a;
  --rust: #a8482a;
  --rust-deep: #8a3a21;
  --line: rgba(28, 40, 64, 0.22);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --gutter: 16px;
  --maxw: 1100px;
  color-scheme: light;
}

@media (min-width: 600px) {
  :root { --gutter: 28px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  /* Fine paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .16 0 0 0 0 .25 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 2px; }

h1, h2 { font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font-family: var(--mono); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- New song notice ---------- */

.notice {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px var(--gutter);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.02em;
  text-align: center; text-decoration: none;
}
.notice:hover { color: var(--paper); }
.notice:hover .notice__cta { color: #f3c7a8; }
.notice__cta { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.notice__tag {
  background: var(--rust); color: #fff;
  padding: 2px 9px; border-radius: 999px;
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
}
@media (max-width: 599px) {
  .notice { font-size: 0.8125rem; gap: 8px; letter-spacing: 0; }
  .notice__more { display: none; }
  .notice__tag { letter-spacing: .06em; padding-inline: 7px; }
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px 6px;
}
.masthead__logo img { width: 76px; }
@media (min-width: 600px) { .masthead__logo img { width: 92px; } }
@media (min-width: 900px) { .masthead__logo img { width: 112px; } }

.social { display: flex; gap: 10px; }
.social__link {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink); color: var(--ink);
  transition: background-color .15s, color .15s, transform .15s;
}
.social__link svg { width: 19px; height: 19px; fill: currentColor; }
.social__link:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ---------- Shared bits ---------- */

.eyebrow {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  font-family: var(--mono); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust);
}
.eyebrow svg { width: 14px; height: 14px; fill: currentColor; flex: none; }

.fine { font-family: var(--mono); font-size: 0.875rem; color: var(--ink-soft); margin: 14px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px;
  border: 2px solid var(--ink); border-radius: 3px;
  font-family: var(--mono); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn--primary { background: var(--rust); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn--primary:hover { color: #fff; background: var(--rust-deep); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn--primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Divider echoing the double rule + pick in the logo */
.rule { display: flex; align-items: center; gap: 16px; padding-block: 8px; }
.rule span { flex: 1; height: 5px; border-block: 1.5px solid var(--ink); opacity: .55; }
.rule svg { width: 22px; height: 22px; fill: var(--rust); flex: none; }

/* ---------- The single ---------- */

.single {
  display: grid; gap: 28px; align-items: center;
  padding-block: 16px 64px;
}
@media (min-width: 900px) {
  .single { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 40px 88px; }
}

.single__art { position: relative; width: min(100%, 520px); margin-inline: auto; }
.single__art .sleeve {
  position: relative; z-index: 1;
  width: 80%;
  border-radius: 2px;
  transform: rotate(-2deg);
  box-shadow: 0 1px 2px rgba(28, 40, 64, .25), 0 22px 40px -14px rgba(28, 40, 64, .55);
}

.record {
  position: absolute; z-index: 0;
  right: 0; top: 50%;
  width: 76%; aspect-ratio: 1;
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle, var(--paper) 0 1.8%, transparent 2%),
    radial-gradient(circle, var(--rust) 0 17%, transparent 17.4%),
    conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,.10) 13%, transparent 18% 50%, rgba(255,255,255,.08) 63%, transparent 68%),
    repeating-radial-gradient(circle, #141414 0 2px, #222 2px 3.5px);
  background-blend-mode: normal, normal, screen, normal;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6);
  animation: record-out 1.1s cubic-bezier(.2, .8, .2, 1) .25s both;
}
/* Small star on the label so the spin reads */
.record::after {
  content: "★";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -120%);
  color: var(--paper); font-size: clamp(10px, 2.2vw, 16px); line-height: 1;
}
@keyframes record-out {
  from { transform: translate(-24%, -50%) rotate(-120deg); }
  to   { transform: translate(0, -50%) rotate(0deg); }
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
@media (hover: hover) {
  .single__art:hover .record { animation: spin 3.2s linear infinite; }
}

.single__copy h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); margin-bottom: 12px; }
.byline {
  font-family: var(--mono); font-size: 0.875rem; letter-spacing: .02em;
  color: var(--ink-soft); margin-bottom: 22px;
}
.lede { font-size: 1.125rem; max-width: 34ch; margin-bottom: 24px; }
@media (min-width: 600px) { .byline { font-size: 0.9375rem; letter-spacing: .04em; } }

.hook {
  margin: 0 0 24px; padding-left: 16px; border-left: 3px solid var(--rust);
  font-style: italic; font-size: 1.2rem;
}

/* ---------- About ---------- */

.about {
  display: grid; gap: 48px; align-items: center;
  padding-block: 64px;
}
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; padding-block: 88px; }
}

.print {
  position: relative;
  width: min(86%, 420px); margin: 0 auto;
  padding: 12px 12px 0;
  background: #fbf8f0;
  transform: rotate(1.8deg);
  box-shadow: 0 1px 2px rgba(28, 40, 64, .2), 0 20px 36px -16px rgba(28, 40, 64, .5);
}
.print::before {
  /* strip of masking tape */
  content: ""; position: absolute; left: 50%; top: -14px;
  width: 112px; height: 30px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(228, 214, 172, .82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.print figcaption {
  padding: 12px 4px 14px;
  font-family: var(--mono); font-size: 0.9375rem; text-align: center; color: var(--ink-soft);
}

.about__copy h2 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin-bottom: 22px; }
.about__copy > p { max-width: 58ch; }

.fineprint {
  margin-top: 28px; padding: 18px 20px;
  border: 1.5px dashed var(--line); border-radius: 3px;
  background: rgba(255, 255, 255, .28);
  font-size: 0.9688rem;
}
.fineprint p:last-child { margin-bottom: 0; }
.fineprint__label {
  margin-bottom: 6px;
  font-family: var(--mono); font-weight: 700; font-size: 0.75rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rust);
}

/* ---------- Mailing list (airmail envelope) ---------- */

.letters { padding-block: 72px 88px; }

.envelope {
  max-width: 680px; margin: 0 auto;
  padding: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--rust) 0 14px, var(--card) 14px 24px,
    var(--ink) 24px 38px, var(--card) 38px 48px);
  box-shadow: 0 22px 40px -22px rgba(28, 40, 64, .55);
}
.envelope__inner {
  position: relative;
  background: var(--card);
  padding: 72px 22px 36px;
  text-align: center;
}
@media (min-width: 600px) { .envelope__inner { padding: 76px 48px 44px; } }

.envelope__stamp {
  position: absolute; left: 50%; top: -58px;
  width: 104px; height: 104px;
  transform: translateX(-50%) rotate(-3deg);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--card);
  outline: 1.5px dashed var(--ink); outline-offset: 3px;
}
.envelope .eyebrow { justify-content: center; }
.envelope h2 { font-size: clamp(1.75rem, 4.6vw, 2.5rem); margin-bottom: 14px; }
.letters__lede { max-width: 44ch; margin: 0 auto 26px; }

.signup { text-align: left; max-width: 520px; margin: 0 auto; }
.signup__label {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.signup__row { display: grid; gap: 12px; }
@media (min-width: 560px) { .signup__row { grid-template-columns: 1fr auto; } }
.signup input[type="email"] {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 3px;
  background: #fffdf7; color: var(--ink);
  font: inherit; font-size: 1rem;
}
.signup input[type="email"]::placeholder { color: #8a8f9c; }
.signup input[type="email"]:focus-visible { outline-offset: 2px; }
.signup__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup__status { min-height: 1.6em; margin: 16px 0 0; font-family: var(--mono); font-weight: 700; }
.signup__status:empty { min-height: 0; margin: 0; }
.signup__status.is-ok { color: #2f5d3a; }
.signup__status.is-error { color: var(--rust-deep); }
.envelope .fine { margin-top: 12px; }

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

.footer {
  display: grid; justify-items: center; gap: 14px;
  padding-block: 48px 56px;
  border-top: 1.5px solid var(--line);
  text-align: center;
}
.footer__logo { width: 84px; opacity: .9; }
.footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer__social a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--mono); font-weight: 700; letter-spacing: .06em; text-decoration: none;
}
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__handle { margin: 0; font-family: var(--mono); color: var(--ink-soft); }
.footer__legal { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Simple pages (thanks, 404) ---------- */

.page {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; align-content: center; gap: 22px;
  padding: 48px var(--gutter);
  text-align: center;
}
.page img { width: 150px; }
.page h1 { font-size: clamp(2rem, 6vw, 3rem); }
.page p { max-width: 40ch; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
