:root {
  --cream: #f2e8d6;
  --ink: #141210;
  --pink: #ff2f8f;       /* bright accent — decorative use, large text/tiles only */
  --pink-strong: #c81272; /* accessible pink — buttons/links on light backgrounds */
  --blue: #1c56e8;       /* bright accent — decorative use, large text/tiles only */
  --link: #123fae;       /* accessible blue — body links */
  --paper-line: #e4d7bd;
  --muted: #6b6455;      /* accessible muted text, replaces low-opacity greys */
  --white: #fefcf6;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--pink-strong); }

/* Visible keyboard focus everywhere (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.narrow { max-width: 640px; }

/* Header */
.site-header {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 4px solid var(--pink);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-rec {
  font-family: 'Space Mono', monospace;
  color: var(--pink);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.logo-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.site-nav a {
  color: var(--cream);
  margin-left: 1.2rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus-visible { text-decoration: underline; }
.site-nav a:first-child { margin-left: 0; }
.social-link {
  display: inline-flex;
  align-items: center;
  color: var(--cream);
}
.site-nav .social-link { margin-left: 1.2rem; }
.social-link:hover, .social-link:focus-visible { color: var(--pink); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  background: var(--cream);
  overflow: visible;
}

.moodboard {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 5.5rem;
}

/* Ransom-note / newspaper cutout headline */
.ransom-title {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 1rem 0 0.6rem;
}
.ransom-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Alfa Slab One', 'Archivo Black', serif;
  font-size: clamp(2rem, 8vw, 3.2rem);
  min-width: 1.5em;
  padding: 0.1em 0.22em 0.14em;
  border-radius: 2px;
  box-shadow: 3px 4px 0 rgba(20, 18, 16, 0.25);
  line-height: 1;
  position: relative;
}
.tile-black { background: var(--ink); color: var(--white); }
.tile-pink { background: var(--pink); color: var(--white); }
.tile-blue { background: var(--blue); color: var(--white); }
.tile-white { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }

.ransom-row:nth-child(1) .tile:nth-child(1) { transform: rotate(-7deg); }
.ransom-row:nth-child(1) .tile:nth-child(2) { transform: rotate(4deg); }
.ransom-row:nth-child(1) .tile:nth-child(3) { transform: rotate(-5deg); }
.ransom-row:nth-child(2) .tile:nth-child(1) { transform: rotate(5deg); }
.ransom-row:nth-child(2) .tile:nth-child(2) { transform: rotate(-4deg); }
.ransom-row:nth-child(2) .tile:nth-child(3) { transform: rotate(6deg); }
.ransom-row:nth-child(2) .tile:nth-child(4) { transform: rotate(-6deg); }
.ransom-row:nth-child(2) .tile:nth-child(5) { transform: rotate(3deg); }
.ransom-row:nth-child(2) .tile:nth-child(6) { transform: rotate(-3deg); }

.tag {
  display: inline-block;
  background: var(--white);
  border: 1px solid rgba(20,18,16,0.15);
  color: var(--ink);
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 2px 3px 0 rgba(20, 18, 16, 0.12);
}
.tag-podcast { transform: rotate(-3deg); margin-bottom: 1.4rem; }

.tagline-tag {
  margin-top: 1rem;
  transform: rotate(1deg);
  padding: 0.5rem 1.3rem;
}
.tagline-tag .tagline-text {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-decoration: underline;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.byline-tag {
  margin-top: 1rem;
  transform: rotate(-1.5deg);
}
.byline-tag span {
  font-family: 'Kalam', cursive;
  color: var(--link);
  font-size: 1.1rem;
}

/* Scrapbook polaroid photos scattered around the headline (real photos, cropped from the cover art) */
.polaroid {
  position: absolute;
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(20,18,16,0.15);
  padding: 0.4rem 0.4rem 0.5rem;
  box-shadow: 3px 5px 0 rgba(20, 18, 16, 0.18);
  width: 96px;
}
.polaroid-photo {
  display: block;
  background: var(--cream);
  overflow: hidden;
}
.polaroid-photo img { display: block; width: 100%; height: auto; }

/* Left column, top to bottom */
.polaroid-fall91    { top: -1.5rem;   left: 0.5rem;  transform: rotate(-6deg); }
.polaroid-cliff     { top: 24%;       left: -1rem;   transform: rotate(5deg); }
.polaroid-leicester { top: 52%;       left: -0.5rem; transform: rotate(-5deg); }
.polaroid-flower    { bottom: -1.5rem; left: 0.5rem; transform: rotate(6deg); }

/* Right column, top to bottom */
.polaroid-airplane  { top: -2rem;    right: 0.5rem;  transform: rotate(6deg); }
.polaroid-sweet16   { top: 25%;      right: -1rem;   transform: rotate(-5deg); }
.polaroid-bighair   { bottom: -1.5rem; right: 0rem;  transform: rotate(5deg); }

@media (max-width: 900px) {
  .polaroid { display: none; }
}

.hero-copy {
  max-width: 720px;
  margin: 2.5rem auto 0;
  font-size: 1.05rem;
  font-family: 'Work Sans', 'Inter', sans-serif;
}
.hero-strong { font-weight: 700; }

.btn {
  display: inline-block;
  background: var(--pink-strong);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #a30f5f; color: var(--white); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.section-alt {
  background: var(--blue);
  color: var(--white);
  padding: 2.5rem 0;
  font-family: 'Work Sans', 'Inter', sans-serif;
}
.section-alt h2 { color: var(--white); }
.signup-form {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0 0.5rem;
  flex-wrap: wrap;
}
.signup-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.signup-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-family: 'Inter', sans-serif;
}
.signup-form .btn { background: var(--ink); }
.signup-form .btn:hover { background: #000; }
.fine-print {
  font-size: 0.8rem;
  color: var(--muted);
}
.section-alt .fine-print { color: #dbe6ff; }

.latest-posts { padding: 3rem 0; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 1.2rem;
}
.post-card {
  display: block;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--ink);
  box-shadow: 3px 4px 0 rgba(20, 18, 16, 0.12);
  text-decoration: none;
}
.post-card:hover { text-decoration: none; background: #fffdf6; }
.post-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.post-card p { margin: 0; font-size: 0.92rem; color: #4a453d; font-family: 'Source Serif 4', Georgia, serif; }
.post-date {
  display: block;
  margin-top: 0.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.page-header { padding: 2.5rem 0 1rem; }

/* Single post */
.post-full { padding: 2.5rem 0 4rem; }
.post-full h1 { font-size: 2rem; margin-bottom: 0.2rem; }
.post-featured-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  margin-top: 1.2rem;
}
.post-body { margin-top: 1.5rem; font-size: 1.08rem; font-family: 'Source Serif 4', Georgia, serif; }
.post-body p { margin: 0 0 1.1rem; }
.back-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
}

/* Forms (login / admin editor) */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
}
.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
}
.current-image-preview {
  display: block;
  max-width: 220px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.error-msg {
  background: #fbe4de;
  border: 2px solid var(--pink-strong);
  color: #7d0c48;
  padding: 0.7rem 1rem;
  border-radius: 8px;
}

/* Admin dashboard */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2.5rem;
}
.inline-form { display: inline; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 3rem;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--paper-line);
  font-size: 0.92rem;
}
.badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-live { background: #dcefd0; color: #2c5217; }
.badge-draft { background: #f0e3c5; color: #6b4e0f; }
.admin-row-actions { display: flex; gap: 1rem; }
.link-btn {
  background: none;
  border: none;
  color: var(--pink-strong);
  cursor: pointer;
  padding: 0;
  font-size: 0.92rem;
  font-family: inherit;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  margin-top: 3rem;
  padding: 2rem 0;
}
.footer-inner { text-align: center; }
.tape-label {
  font-family: 'Space Mono', monospace;
  color: var(--pink);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}
.footer-inner p { margin: 0.2rem 0; }
.site-footer a { color: var(--cream); }
.footer-social-link { justify-content: center; margin: 0.9rem 0; }
.footer-social-link:hover, .footer-social-link:focus-visible { color: var(--pink); }
