/* ============================================================
   TORPEUR inner pages (music, artists, shop, philosophy, contact).
   Same layout as the MENTALA pages: a header (back link, crumb, big title,
   lead), a body, a footer with the sections. The field of letters runs behind
   the whole page and spills over the sides; a calm column keeps the text clear.
   Pure black and white, mono machine labels, hairline rules, no shadows on the UI.
   ============================================================ */
:root {
  --black: #000;
  --white: #fff;
  --text: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(255, 255, 255, 0.64);
  --text-faint: rgba(255, 255, 255, 0.42);
  --hairline: rgba(255, 255, 255, 0.2);
  --font-ui: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --label-size: clamp(0.7rem, 0.62rem + 0.3vw, 0.82rem);
  --label-track: 0.22em;
  --measure: 64ch;
  --ease-snap: cubic-bezier(0.2, 0.9, 0.1, 1);
  --base: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82));
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); }
body {
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  animation: pageIn 0.6s ease both;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
#field { position: fixed; top: 0; left: 0; display: block; z-index: 0; }
a { color: inherit; }

/* leaving a page: the text dissolves before the next one loads */
.page { transition: opacity 0.2s; }
html.leaving .page { opacity: 0; }

.page {
  position: relative; z-index: 1; min-height: 100dvh;
  padding: clamp(2rem, 1rem + 6vw, 6rem) var(--gutter) calc(env(safe-area-inset-bottom) + 4rem);
}
.page-inner { max-width: 60rem; margin: 0 auto; text-shadow: 0 0 6px #000, 0 0 14px #000; }

.mlabel {
  font-size: var(--label-size); letter-spacing: var(--label-track);
  text-transform: uppercase; font-weight: 500; margin: 0;
}

/* ---- header ---- */
.page-head {
  display: grid; gap: 0.9rem;
  padding-bottom: clamp(2rem, 1rem + 4vw, 4rem);
  border-bottom: 1px solid var(--hairline);
}
.back { color: var(--text-dim); text-decoration: none; justify-self: start; transition: color 120ms var(--ease-snap); }
.back:hover, .back:focus-visible { color: var(--white); outline: none; }
.crumb { color: var(--text-faint); display: inline-flex; gap: 0.6em; align-items: baseline; }
.crumb .slash { opacity: 0.5; }
.page-title {
  margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(2.2rem, 1.2rem + 6vw, 5rem); line-height: 1; color: var(--white);
  text-shadow: none;
}
/* the title is filled with tiny letters of its own word, like the menu names on the home page */
html.titles-on .page-title {
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-background-clip: text; background-clip: text;
  background-image: var(--tile-a), var(--base);
  background-size: var(--tile-w) var(--tile-h), auto;
  animation: tiles 1.3s step-end infinite;
}
@keyframes tiles {
  0% { background-image: var(--tile-a), var(--base); }
  34% { background-image: var(--tile-b), var(--base); }
  67% { background-image: var(--tile-c), var(--base); }
}
.lead {
  margin: 0; max-width: var(--measure); color: var(--text-dim);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem); line-height: 1.6;
}

/* ---- body ---- */
.page-body { padding: clamp(2rem, 1rem + 4vw, 4rem) 0; display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* the honest empty state: nothing invented, it says what will appear here */
.placeholder { display: grid; gap: 1rem; max-width: var(--measure); }
.placeholder .tag { color: var(--text-faint); }
.placeholder .line { margin: 0; color: var(--text-dim); line-height: 1.6; }
.placeholder .note { margin: 0; color: var(--text-faint); font-size: 0.9rem; line-height: 1.6; }
.schema { margin-top: 1rem; border-top: 1px solid var(--hairline); padding-top: 1rem; }
.schema .tag { color: var(--text-faint); margin-bottom: 0.75rem; }
.fields { list-style: none; margin: 0; padding: 0; display: grid; }
.fields li {
  display: flex; justify-content: space-between; gap: 2rem; padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.fields .name { color: var(--text-dim); }
.fields .val { color: var(--text-faint); }

/* ---- the real entries (filled by Mister Admin) ---- */
.entries { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
html:not(.ma-ready) .entries, html.ma-error .entries { display: none; }   /* until the content has loaded */
.entries:has(> .entry) + .placeholder, .entries.prose + .placeholder { display: none; }   /* real entries replace the placeholder */
html.ma-error .entries.prose + .placeholder, html:not(.ma-ready) .entries.prose + .placeholder { display: grid; }
.entry { display: grid; gap: 1.2rem 2rem; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; }
.entry:not(:has(.entry-art)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 700px) { .entry { grid-template-columns: minmax(0, 1fr); } }
.entry-art { margin: 0; }
.entry-art img { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); background: #000; }
.entry-text { display: grid; gap: 0.7rem; max-width: var(--measure); }
.entry-text .tag { color: var(--text-faint); }
.entry-title { margin: 0; font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem); line-height: 1.25; letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); }
.entry-text .meta { margin: 0; color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.entry-body { color: var(--text-dim); line-height: 1.65; font-size: 0.95rem; }
.entry-body p { margin: 0 0 0.8em; } .entry-body p:last-child { margin-bottom: 0; }
.entry-body h1, .entry-body h2, .entry-body h3 { margin: 1.2em 0 0.4em; font-size: 1em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.entry-body a { color: var(--white); }
.entry-body ul, .entry-body ol { margin: 0 0 0.8em; padding-left: 1.2em; }
.links { margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; }
.links a { color: var(--text-dim); text-decoration: none; border-bottom: 1px solid var(--hairline); padding-bottom: 0.15em; transition: color 120ms var(--ease-snap), border-color 120ms; }
.links a:hover, .links a:focus-visible { color: var(--white); border-color: var(--white); outline: none; }
.links:empty { display: none; }
.prose { max-width: var(--measure); }
.prose .entry-body { font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem); color: var(--text); }
.entry-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.6rem; margin-top: 1.5rem; }
.entry-gallery:empty { display: none; }
.entry-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); }

/* ---- contact form ---- */
.form { display: grid; gap: 1.6rem; max-width: 40rem; }
.field { display: grid; gap: 0.6rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field .mlabel { color: var(--text-dim); padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.radio { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.radio input { accent-color: #fff; }
.radio:hover, .radio:has(input:checked) { color: var(--white); }
.input, .textarea {
  font: inherit; font-size: 0.95rem; color: var(--white); background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--hairline); border-radius: 0; padding: 0.8rem 0.9rem; width: 100%;
  text-shadow: none; outline: none; transition: border-color 120ms;
}
.input:focus, .textarea:focus { border-color: var(--white); }
.textarea { resize: vertical; min-height: 9rem; }
.submit {
  justify-self: start; font: inherit; font-size: var(--label-size); letter-spacing: var(--label-track);
  text-transform: uppercase; font-weight: 500; color: var(--black); background: var(--white);
  border: 1px solid var(--white); padding: 0.85rem 1.6rem; cursor: pointer; text-shadow: none;
  transition: background-color 120ms, color 120ms;
}
.submit:hover, .submit:focus-visible { background: transparent; color: var(--white); outline: none; }
.submit:disabled { opacity: 0.5; cursor: wait; }
.status { margin: 0; min-height: 1.4em; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--text-dim); }
.status[data-tone="ok"] { color: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer: the sections ---- */
.page-foot { border-top: 1px solid var(--hairline); padding-top: 2rem; }
.page-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; }
.page-foot a { color: var(--text-dim); text-decoration: none; transition: color 120ms var(--ease-snap); }
.page-foot a:hover, .page-foot a:focus-visible, .page-foot a[aria-current="page"] { color: var(--white); outline: none; }

.nogl { position: fixed; left: 50%; top: 50%; transform: translateX(-50%); color: var(--text-dim); font-size: var(--label-size); letter-spacing: var(--label-track); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .page { transition: none; }
  html.titles-on .page-title { animation: none; }
}
