/* ==========================================================================
   toomanyknobs — styling for the public phpList pages
   (subscribe, confirmation, preferences, unsubscribe)
   Loaded via the Header field of the subscribe page:
   <link rel="stylesheet" href="https://newsletter.toomanyknobs.com/tmk-newsletter.css">

   CI: void #0a0a0a / panel #18181b / bone #f4f4f5 / rec #ff3b30 (only accent)
   Fonts: Inter (display + body), Inter auch für Labels (600, 0.14em, Großbuchstaben) — wie toomanyknobs.com seit 25.11.2026
   ========================================================================== */

/* Fonts are self-hosted (folder fonts/ next to this file) — no Google Fonts
   request, so no visitor IP goes to Google (DSGVO). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/inter-latin-900-normal.woff2') format('woff2'); }

:root {
  --void: #0a0a0a;
  --panel: #18181b;
  --panel2: #101012;
  --bone: #f4f4f5;
  --rec: #ff3b30;
  --text: rgba(244, 244, 245, 0.72);
  --muted: rgba(244, 244, 245, 0.50);
  --line: rgba(244, 244, 245, 0.12);
  --field: rgba(244, 244, 245, 0.22);
}

/* --- Reset phpList's own backgrounds/borders (incl. inline bgcolor) --- */
* {
  background-color: transparent !important;
  background-image: none !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}

/* phpList's Bootstrap base sets html { font-size: 10px }, which shrinks
   every rem value — pin the root back to the browser default */
html {
  background: var(--void) !important;
  font-size: 16px !important;
}

/* Page with a faint REC-red glow at the top */
body {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 59, 48, 0.13), transparent 70%),
    var(--void) !important;
  background-attachment: fixed !important;
  color: var(--bone) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased;
  padding-top: 0 !important;
  min-height: 100vh;
}

body * {
  color: var(--bone);
}

/* --- Layout column --- */
#wrapper {
  max-width: 560px !important;
  width: auto !important;
  margin: 0 auto !important;
  padding: 8px 24px 56px !important;
}

#mainContent,
#container,
.panel {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  border: 0 !important;
}

.panel > br {
  display: none;
}

/* --- Logo (text = phpList organisation name) --- */
#header.navbar {
  position: static !important;
  border: none !important;
  min-height: 0 !important;
  padding: 56px 0 8px !important;
  margin: 0 !important;
}

#rack-functions {
  text-align: center;
}

#logo {
  display: inline-block;
  margin: 0 !important;
}

#logo a {
  color: var(--bone) !important;
  text-decoration: none !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: lowercase;
}

#logo a:hover {
  color: var(--bone) !important;
}

/* --- Content: no box, just air --- */
.content.well {
  border: 0 !important;
  border-radius: 0;
  padding: 40px 0 0 !important;
  margin: 0 !important;
}

/* Kill phpList's table frame around the form fields */
.content.well table,
.content.well tbody,
.content.well tr,
.content.well td,
.content.well fieldset {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  outline: none !important;
}

.content.well table {
  margin-top: 8px !important;
}

/* --- Intro block (HTML from the subscribe page "Intro" field) --- */
.eyebrow {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin: 0 0 14px !important;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--rec) !important;
  margin-right: 10px;
  vertical-align: 1px;
  animation: tmk-rec 1.6s ease-in-out infinite;
}

@keyframes tmk-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
}

.tmk-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(2.4rem, 8vw, 3.4rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
  color: var(--bone) !important;
  margin: 0 0 18px !important;
}

.lead {
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  color: var(--text) !important;
  margin: 0 0 28px !important;
}

/* Welcome-gift strip */
.gift {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  margin: 0 0 32px;
  background-color: var(--panel) !important;
  border: 1px solid var(--line) !important;
}

.gift img {
  display: block;
  width: 96px !important;
  height: 96px !important;
  max-width: none !important;
  margin: 0 !important;
  flex: none;
}

.gift p {
  margin: 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  color: var(--text) !important;
}

.gift strong {
  display: block;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rec) !important;
  margin-bottom: 4px;
}

/* Consent paragraph */
.fineprint,
p.fineprint {
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
  color: var(--muted) !important;
  margin: 0 0 28px !important;
}

/* phpList's "* required fields are marked red" — not needed */
.content.well .error,
.content.well span.required {
  display: none !important;
}

/* phpList system notices (e.g. "please confirm via email") */
.systemmessage,
.info,
.message,
p.info,
div.info,
.pagestatus {
  font-size: 1rem !important;
  color: var(--text) !important;
  margin: 0 0 1.2em !important;
}

/* --- Form fields --- */
.content.well div.required {
  margin: 18px 0 8px !important;
}

.content.well table tr:first-child div.required {
  margin-top: 0 !important;
}

label, legend, .field-label, th {
  font-family: 'Inter', system-ui, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  display: block;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  background-color: var(--panel2) !important;
  border: 1px solid var(--field) !important;
  border-radius: 0 !important;
  color: var(--bone) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1.05rem !important;
  padding: 16px 16px !important;
  height: auto !important;
  margin: 0 !important;
  transition: border-color 0.15s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: rgba(244, 244, 245, 0.3);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--bone) !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--rec);
}

/* --- Button: bone fill → REC red, like the site's "Join" CTAs --- */
input[type="submit"],
input[type="button"],
button,
.btn {
  font-family: 'Inter', system-ui, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.85rem !important;
  background-color: var(--bone) !important;
  color: var(--void) !important;
  border: 1px solid var(--bone) !important;
  border-radius: 0 !important;
  padding: 19px 28px !important;
  height: auto !important;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.btn:hover {
  background-color: var(--rec) !important;
  border-color: var(--rec) !important;
  color: var(--bone) !important;
}

.content.well input[type="submit"] {
  white-space: normal;
  line-height: 1.5;
  display: block;
  width: 100% !important;
  margin: 28px 0 0 !important;
}

/* --- Links --- */
a {
  color: var(--bone) !important;
  text-decoration: underline;
  text-decoration-color: var(--muted) !important;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rec) !important;
  text-decoration-color: var(--rec) !important;
}

/* "Unsubscribe" link under the form */
.content.well form > a,
.content.well > a {
  display: block;
  width: fit-content;
  margin: 22px auto 0;
  font-size: 0.85rem;
  color: var(--muted) !important;
}

/* --- Headlines (other phpList pages) --- */
h1, h2, h3, .pagetitle, .pageheader {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900;
  color: var(--bone) !important;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 0.6em;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  color: var(--text) !important;
}

/* --- Confirmation page: replace hard-coded headline --- */
.content.well:has(h3 + ul) {
  text-align: center;
}

.content.well h3:has(+ ul) {
  font-size: 0 !important;
  line-height: 0;
  margin-bottom: 0.6em;
}

.content.well h3:has(+ ul)::before {
  content: "You're in.";
  display: block;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.content.well h3:has(+ ul)::after {
  content: "Your sound kit download code lands in your inbox within about 5 minutes. Nothing there? Check your spam folder, just in case.";
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--text);
  margin-top: 14px;
}

.content.well ul {
  display: none !important;
}

.back-home-link {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  font-size: 0.95rem;
}

/* --- Unsubscribe page: hard-coded "Please enter a valid email address:" --- */
.content.well form > p:not(.fineprint) {
  font-family: 'Inter', system-ui, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem !important;
  color: var(--muted) !important;
  margin-bottom: 0.4em;
}

.content.well form > p input[type="text"] {
  margin-top: 10px !important;
  text-transform: none;
  letter-spacing: normal;
}

/* --- "powered by phpList" --- */
div[style*="small-caps"] {
  text-align: center !important;
  float: none !important;
  padding: 40px 0 0 !important;
  font-size: 0.7rem !important;
  opacity: 0.4;
}

small, .footer, #footer, .credits {
  color: var(--muted) !important;
  font-size: 0.75rem;
}

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

@media (max-width: 480px) {
  #header.navbar { padding-top: 40px !important; }
  #logo a { font-size: 2.1rem; }
  .content.well { padding-top: 28px !important; }
}

/* ==========================================================================
   Desktop: subscribe page in two columns (text left, form panel right)
   Scoped to the page that contains the gift box, so the confirmation and
   unsubscribe pages keep the single narrow column.

   Rows: [filler] eyebrow title lead gift [filler] | fineprint | powered-by
   The form panel spans filler-to-filler; the two flexible filler rows split
   any height difference evenly, so the left text sits vertically centred
   next to the panel instead of leaving a gap on one side.
   ========================================================================== */
@media (min-width: 900px) {
  #header.navbar {
    padding-top: 40px !important;
  }

  #wrapper:has(.gift) {
    max-width: 1040px !important;
    padding-bottom: 32px !important;
  }

  .content.well:has(.gift) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    /* eyebrow, title, lead, flexible gap, gift | fineprint | powered-by */
    grid-template-rows: auto auto auto 1fr auto auto auto;
    column-gap: 72px;
    padding-top: 48px !important;
  }

  .content.well:has(.gift) > .eyebrow { grid-column: 1; grid-row: 1; }
  .content.well:has(.gift) > .tmk-title { grid-column: 1; grid-row: 2; }
  .content.well:has(.gift) > .lead { grid-column: 1; grid-row: 3; }
  /* gift sits in the last row of the block, so its bottom edge always
     lines up with the bottom edge of the form panel */
  .content.well:has(.gift) > .gift { grid-column: 1; grid-row: 5; margin: 0 !important; align-self: end; }

  /* Form panel: full height of the text block, contents centred inside */
  .content.well:has(.gift) > form {
    grid-column: 2;
    grid-row: 1 / 6;
    align-self: stretch;
    margin: 0 !important; /* phpList/Bootstrap adds margin-bottom to forms */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--panel) !important;
    border: 1px solid var(--line) !important;
    padding: 36px !important;
  }

  .content.well:has(.gift) > form > a {
    margin-bottom: -8px;
  }

  /* Consent text: quiet full-width footnote under both columns */
  .content.well:has(.gift) > .fineprint {
    grid-column: 1 / -1;
    grid-row: 6;
    margin: 44px 0 0 !important;
    padding-top: 22px !important;
    border-top: 1px solid var(--line) !important;
    max-width: none;
  }

  .content.well:has(.gift) > div[style*="small-caps"],
  .content.well:has(.gift) > a {
    grid-column: 1 / -1;
    grid-row: 7;
  }

  .content.well:has(.gift) > div[style*="small-caps"] {
    padding-top: 28px !important;
  }
}

/* Bigger gift artwork on desktop (source image is 240px, sharp up to 120px @2x) */
@media (min-width: 900px) {
  .gift { gap: 22px; padding: 16px; }
  .gift img { width: 124px !important; height: 124px !important; }
}
