/* denis.to — shared styles for every page */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #111a2b; --line: #243049; --land: #33446a; --text: #e6ebf1; --soft: #b9c2cf; --muted: #8a97ac;
  --warm: #f0c88c; --cool: #cfe1f7; --alarm: #f0a08f; --field: #17223a; --edge: #3a4866;
  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark; box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--soft); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: var(--text); text-decoration: underline; text-decoration-color: #4a5875; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--text); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 2px; }
.band { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--line); }
.title { margin: 0 0 1.25rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.lead { margin: 0; max-width: 60ch; color: var(--text); }
.chrome {
  font-family: var(--display); font-weight: 800; line-height: 0.9; letter-spacing: -0.035em;
  background: linear-gradient(180deg, #a3adbd 0%, #edf1f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.btn, .pill {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.3rem; border-radius: 999px;
  font: 600 0.85rem/1.2 var(--display); letter-spacing: 0.01em; text-decoration: none; color: var(--text);
  border: 1px solid var(--edge); background: none; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.btn:hover, .pill:hover { border-color: var(--soft); background: var(--field); }
.btn.solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.solid:hover { background: #ffffff; }
.btn svg, .pill svg { width: 0.95rem; height: 0.95rem; fill: currentColor; flex: none; }
.extra { color: var(--muted); }
.btn.solid .extra { color: #4a5875; }
@media (max-width: 520px) { .extra { display: none; } }

/* Embedded players (load only after consent or a click) */
.embed { border-radius: 12px; background: var(--field); border: 1px solid var(--edge); overflow: hidden; }
.embed[data-kind="spotify"] { height: 152px; }
.embed[data-kind="soundcloud"] { height: 166px; }
.embed[data-kind="youtube"] { aspect-ratio: 16 / 9; }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed-ph { height: 100%; display: flex; align-items: center; gap: 1rem; padding: 0 clamp(1rem, 3vw, 1.5rem); }
.embed[data-kind="youtube"] .embed-ph { flex-direction: column; justify-content: center; text-align: center; padding: 1.5rem; }
.embed-ph svg { flex: none; width: 2.6rem; height: 2.6rem; fill: var(--soft); }
.embed-ph div { flex: 1; min-width: 0; line-height: 1.4; }
.embed[data-kind="youtube"] .embed-ph div { flex: none; }
.embed-ph strong { display: block; color: var(--text); font-weight: 700; }
.embed-ph span { display: block; color: var(--muted); font-size: 0.9rem; }
.embed-ph button { flex: none; padding: 0.7rem 1.1rem; border-radius: 999px; border: 1px solid var(--edge); background: none; color: var(--text); font: 600 0.8rem/1 var(--display); cursor: pointer; }
.embed-ph button:hover { border-color: var(--soft); }
.embed-ph button:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 520px) { .embed:not([data-kind="youtube"]) .embed-ph span { display: none; } }
.platforms { margin: 0.9rem 0 0; font-size: 0.95rem; font-style: italic; }

/* Shots and media frames */
.frame { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #1b2740 0%, #141e33 100%); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Work-with-me form */
.work-inner { max-width: 760px; margin: 0 auto; }
.work-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.5rem; }
@media (max-width: 640px) { .work-head { grid-template-columns: 1fr; } }
.work-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.langs-label { color: var(--muted); font-size: 0.9rem; margin-right: 0.35rem; }
.langs button { font: 600 0.8rem/1 var(--display); letter-spacing: 0.02em; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 999px; padding: 0.55rem 0.7rem; cursor: pointer; }
.langs button:hover { color: var(--text); }
.langs button[aria-pressed="true"] { color: var(--text); border-color: var(--edge); background: var(--field); }
.work-lede { margin: 1.1rem 0 0; }
.work-lede.sub { margin-top: 0.6rem; color: var(--muted); font-size: 1rem; }
.form { margin-top: 2rem; display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; }
.field-label { color: var(--text); font-size: 1rem; font-weight: 500; line-height: 1.3; }
.field-hint { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 400; margin-top: 0.15rem; }
.field input, .field textarea, .field select {
  width: 100%; margin: 0; font: 400 1.0625rem/1.45 var(--body); color: var(--text);
  background: var(--field); border: 1px solid var(--edge); border-radius: 10px; padding: 0.8rem 1rem;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23b9c2cf' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 0.9rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cool); box-shadow: 0 0 0 3px rgba(207, 225, 247, 0.16); }
.field [aria-invalid="true"] { border-color: var(--alarm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { justify-self: start; margin-top: 0.25rem; padding: 0.95rem 1.6rem; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font: 600 0.9rem/1.2 var(--display); letter-spacing: 0.01em; cursor: pointer; transition: background-color .2s; }
.submit:hover { background: #ffffff; }
.submit:disabled { opacity: 0.6; cursor: progress; }
.status { margin: 0; font-size: 1rem; }
.status:empty { display: none; }
.status.is-error { color: var(--alarm); }
.form-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.done { margin-top: 2rem; padding: 1.5rem 1.6rem; border: 1px solid var(--line); border-radius: 6px; background: #141f35; outline: none; }
.done strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--text); }
.done p { margin: 0.5rem 0 0; }
/* Collapsible variant: the form slides out on "Work with me" */
.work-toggle { display: flex; justify-content: center; }
.work-toggle .btn { padding: 1.1rem 1.8rem; font-size: 1rem; }
.work-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.7,.1,1); }
.work-panel > div { overflow: hidden; }
.work-panel.open { grid-template-rows: 1fr; }
.work-panel.open > div { padding-top: 0.5rem; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 1.5rem 0 clamp(3rem, 8vw, 5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot a, .foot button { color: var(--soft); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: #4a5875; text-underline-offset: 0.2em; }
.foot a[aria-current="page"] { color: var(--text); text-decoration-color: var(--text); }

/* Cookie banner */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); z-index: 1000;
  max-width: 480px; margin: 0 auto; padding: 1.1rem 1.15rem 1rem;
  background: #17223a; border: 1px solid var(--edge); border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.95rem; line-height: 1.5; color: var(--soft);
}
.consent p { margin: 0; }
.consent-row { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.consent button { flex: 1; padding: 0.7rem 1rem; border-radius: 999px; border: 1px solid var(--edge); background: none; color: var(--text); font: 600 0.8rem/1 var(--display); cursor: pointer; }
.consent button:hover { border-color: var(--soft); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .work-panel, .btn, .pill, .submit { transition: none; } }
