/* ==========================================================================
   YėY — Custom styling for public phpList pages
   (subscribe page, confirmation, preferences, unsubscribe)
   Loaded IN ADDITION to phpList's own style.css — this file only overrides.
   ========================================================================== */

/* Self-hosted fonts (no external requests to fonts.googleapis.com) — same
   reasoning as on yeymusic.de itself: no external request on page load
   (relevant re: LG München 2022 / Google-Fonts-CDN-Abmahnrisiko).
   Subsets: latin + latin-ext only (latin-ext covers "ė").
   Font files live in ./fonts/ next to this stylesheet — upload that folder
   alongside custom.css. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/fraunces-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/fraunces-latin-ext-opsz-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/fraunces-latin-opsz-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/work-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/work-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/space-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/space-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/space-mono-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/space-mono-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --ink: #15110D;
  --panel: #1D170F;
  --terracotta: #B85C34;
  --ochre: #B4903F;
  --sand: #E4D6B8;
  --cream: #F3ECDD;
}

/* Nuke every background phpList's own markup sets — including inline
   bgcolor="#fff" attributes on old-school <table>/<td> elements, which is
   what made the box behind the form stay white last time. !important on a
   universal selector still beats an inline HTML attribute. */
* {
  background-color: transparent !important;
  background-image: none !important;
  border-color: var(--panel) !important;
}

/* Base page */
html, body {
  background: var(--ink) !important;
  color: var(--cream) !important;
  font-family: 'Work Sans', sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
}

/* Default text color for every element (buttons/inputs override below) */
body * {
  color: var(--cream);
}

/* Only #wrapper does the centering/padding for the visible content column.
   NOTE: Bootstrap's generic ".container" class also sits on #rack-functions
   (inside the header) and on #wrapper itself — targeting ".container"
   broadly double-applied padding in both places and caused the big empty
   gaps. Target the IDs specifically instead. */
#wrapper {
  max-width: 560px;
  margin: 0 auto !important;
  padding: 16px 24px 32px !important;
}

/* #mainContent is just a wrapper INSIDE #wrapper — give it no padding of
   its own, so the two don't stack */
#mainContent,
#container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none;
}

/* Vertical rhythm — give every direct block its own breathing room so the
   page doesn't read as one dense wall of text */
#wrapper > * {
  margin-bottom: 0.8em;
}

/* De-emphasize phpList's own system notices (admin-only hints, "required
   fields" footnote, status messages) so they read as fine print, not as
   part of the main message */
.systemmessage,
.info,
.message,
p.info,
div.info,
.pagestatus {
  font-size: 0.8rem !important;
  opacity: 0.6;
  color: var(--sand) !important;
  margin: 0.4em 0 1.2em !important;
}

/* The intro/invite text is the main message — give it room and a touch more
   presence than the rest */
.content.well > p:first-of-type {
  font-size: 1.05rem;
  margin-bottom: 1em;
}

/* The actual card around the intro text + form is Bootstrap's ".well"
   class (markup: <div class="content well">) — not a <fieldset>, which
   doesn't exist on this page at all. Give it deliberate card styling
   instead of leaning on Bootstrap's accidental default padding. */
.content.well {
  background: var(--panel) !important;
  border: 1px solid rgba(180, 144, 63, 0.25) !important;
  border-radius: 14px;
  padding: 24px 24px !important;
  box-shadow: none !important;
  margin-top: 0.75em;
  display: flex;
  flex-direction: column;
  gap: 0.65em; /* one deliberate rhythm between every top-level block —
                 intro text, form, legal fineprint, powered-by line */
}

/* Every top-level block owns no margin of its own — the "gap" above is the
   single source of truth for spacing between them, so nothing can stack
   or double up unpredictably. */
.content.well > * { margin: 0 !important; }

/* With a single, always-required email field, a "* required fields are
   marked red" notice is just noise (and nothing is actually highlighted
   red) — remove it rather than style it down. */
.content.well > .error {
  display: none !important;
}

/* Same reasoning for the per-field asterisk: with one field that's
   obviously required, it adds nothing. Targeting the tag (not assuming
   it's nested inside <label>) so it's hidden wherever phpList puts it,
   while the <div class="required"> block that wraps the whole label
   stays untouched. */
span.required,
em.required,
i.required {
  display: none !important;
}

/* phpList lays each form field out as a table row: <tr><td><div class=
   "required"><label>...</label></div></td><td>...<input></td></tr>.
   That narrow label column is what squeezed "EMAIL ADDRESS *" onto three
   lines. Stack label above input instead, full width. */
.content.well table,
.content.well table tbody,
.content.well table tr,
.content.well table td {
  display: block !important;
  width: 100% !important;
}

.content.well table td {
  padding: 0 !important;
  text-align: left !important;
}

.content.well div.required {
  margin: 0 0 0.25em;
}

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

/* Center any images and give them sensible, consistent spacing instead of
   whatever default the markup around them sets */
img {
  display: block;
  margin: 0 auto 1.2em;
  max-width: 200px;
  height: auto;
}

/* The logo is text, not an image: <h1 id="logo"><a>[ORGANISATION_NAME]</a></h1>
   inside a Bootstrap navbar. The navbar's own padding + a stray <br /> right
   after it is what creates the big empty gap and left alignment. */
/* phpList's own CSS pads the body to compensate for a fixed-position
   navbar (so content doesn't hide under it). Our navbar is short, so that
   reserved space just becomes a big empty gap — remove it and make the
   navbar flow normally instead of floating. */
body.fixed {
  padding-top: 0 !important;
}

#header.navbar {
  position: static !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 20px 0 8px !important;
  margin-bottom: 0 !important;
}

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

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

#logo a {
  color: var(--terracotta) !important;
  text-decoration: none !important;
  font-family: 'Fraunces', serif !important;
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}

.panel {
  margin-top: 8px;
}

.panel > br {
  display: none;
}

/* Hero photo under the logo — overrides the generic img rule's small
   max-width, since this one is meant to run full width */
.hero-photo-wrap {
  max-width: 560px;
  margin: 0 auto 16px;
  padding: 0 24px;
}

/* Capped height + object-fit:cover so the banner stays a short strip
   instead of a tall block that pushes the form below the fold */
.hero-photo {
  display: block;
  width: 100%;
  max-width: none;
  max-height: 230px;
  object-fit: cover;
  object-position: center 12%;
  height: auto;
  border-radius: 8px;
  margin: 0;
}

/* Fine print — for the required legal/consent paragraph, so it reads as
   a quieter footnote under the main invite line rather than carrying
   equal visual weight */
p.fineprint {
  font-size: 0.72rem !important;
  line-height: 1.45;
  opacity: 0.5;
  color: var(--sand) !important;
}

/* Headlines */
h1, h2, h3, .pagetitle, .pageheader {
  font-family: 'Fraunces', serif !important;
  font-style: italic;
  font-weight: 600;
  color: var(--cream) !important;
  letter-spacing: 0.01em;
  margin-bottom: 0.6em;
}

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

/* Eyebrow-style labels (form labels, field legends) */
label, legend, .field-label, th {
  font-family: 'Space Mono', monospace !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--ochre) !important;
}

/* Links */
a {
  color: var(--terracotta) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--ochre) !important; }

/* Text inputs */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  background: var(--panel) !important;
  border: 1px solid var(--ochre) !important;
  color: var(--cream) !important;
  font-family: 'Work Sans', sans-serif !important;
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 0 0.5em;
}

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

/* Checkboxes / radios */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--terracotta);
}

/* Buttons */
input[type="submit"],
input[type="button"],
button,
.btn {
  font-family: 'Space Mono', monospace !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--terracotta) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 4px;
  padding: 13px 30px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

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

/* Center the subscribe button and the unsubscribe link under it — both
   sit as plain top-level elements in the form, left-aligned by default */
.content.well input[type="submit"] {
  display: block;
  margin: 0 auto 0.35em;
}

/* phpList's "you're confirmed" headline ("Thank you for confirming your
   subscription to our newsletters. The newsletters you are subscribed to
   are listed below") is hard-coded in phpList core — there's no admin
   field for it. Hide the original text, show our own instead. Scoped with
   :has() to ONLY the confirmed-subscription page, identified by the <ul>
   of lists that immediately follows its <h3> — other pages (e.g. the
   unsubscribe confirmation) also use a plain <h3> and must stay untouched. */
/* Center the whole card on the "you're confirmed" page specifically */
.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: "Welcome to the YėY Family!";
  display: block;
  font-size: 1.6rem;
  line-height: 1.3;
}

/* "powered by phpList" line has no class/id but a consistent inline style
   across every public page — target that instead, and center it */
div[style*="small-caps"] {
  text-align: center !important;
  float: none !important;
  padding-left: 0 !important;
  font-size: 0.7rem !important;
  opacity: 0.4;
}

/* Confirmed-subscription page lists every list the person just joined as
   Bootstrap .btn pills — which get caught by our own button styling above.
   With a single list, that display is just noise; hide it. */
.content.well ul {
  display: none !important;
}

/* Unsubscribe page: "Please enter a valid email address:" is hard-coded
   into phpList's own template (not an editable field), sitting as plain
   text inside the same <p> as the input. Style the text to match the
   label look used elsewhere, and reset the nested input back to normal
   so it doesn't inherit the uppercase/mono label styling. */
.content.well form > p {
  font-family: 'Space Mono', monospace !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--ochre) !important;
  margin-bottom: 0.4em;
}

.content.well form > p::before {
  content: "● ";
  color: var(--terracotta);
}

.content.well form > p input[type="text"] {
  display: block;
  margin-top: 0.6em;
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Work Sans', sans-serif !important;
  font-size: 1rem;
}

/* "Back to yeymusic.de" link, inserted by the small script in the Header
   field on the confirmation page only */
.back-home-link {
  display: block;
  width: fit-content;
  margin: 1.5em auto 0;
  text-align: center;
  font-size: 0.85rem;
}

.content.well form > a {
  display: block;
  width: fit-content;
  margin: 0 auto;
  text-align: center;
  font-size: 0.72rem;
  opacity: 0.5;
  text-decoration: none;
}
.content.well form > a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Footer credit line, small print */
small, .footer, #footer, .credits {
  color: var(--sand) !important;
  opacity: 0.7;
  font-size: 0.8rem;
}

/* Paragraphs */
p {
  color: var(--sand) !important;
}

/* Tables used for layout (phpList's old-school markup) must stay full-width
   and borderless so the background reset above doesn't leave stray lines */
table {
  border-collapse: collapse;
  width: 100%;
}
td, tr {
  border: none !important;
}
