/* ============================================================
   unders — custom theme  (v3 · press-kit editorial)
   devoted to sound · celebrating human connection
   palette from unders COLORS_2022 · type: LL Simple
   ============================================================ */

/* ---------- font ---------- */
/* Legal Disclaimer — required by Lineto, do not remove.
   These Fonts are licensed only for use on www.unders.nl and its subdomains. Lineto.com */
@font-face {
  font-family: 'Simple';
  src: url('../fonts/lineto-simple-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --sand:  #F2E2CA;
  --amber: #EFC48B;
  --rose:  #B58181;
  --slate: #34414C;
  --ink:   #0D0D0D;
  --aqua:  #CAEFEC;
  --sage:  #67918D;

  --bg:     var(--sand);
  --fg:     var(--slate);
  --fg-dim: rgba(52,65,76,.62);

  --font: 'Simple', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wide: .04em;
  --xwide: .18em;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 60px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: var(--wide);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, figure, p, ul { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* everything lowercase, always */
body, h1, h2, h3, h4, h5, a, button, input, .u-title { text-transform: lowercase; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- restrained type scale ---------- */
h1 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; font-weight: 400; letter-spacing: var(--wide); }
h2 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; font-weight: 400; }
h3 { font-size: clamp(17px, 1.8vw, 20px); font-weight: 400; }
.eyebrow { font-size: 11px; letter-spacing: var(--xwide); opacity: .55; text-transform: uppercase; }
.mono-label { font-size: 11px; letter-spacing: var(--xwide); opacity: .62; }

/* ============================================================
   site header / nav  (transparent over hero, solid elsewhere)
   ============================================================ */
.site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gut);
  color: var(--sand);
}
.site-head--solid {
  position: sticky; background: rgba(242,226,202,.92);
  backdrop-filter: blur(8px); color: var(--slate);
  border-bottom: 1px solid rgba(52,65,76,.14);
  padding: 18px var(--gut);
}
.site-head__logo img { height: 22px; width: auto; }
.site-head__logo .u-wordmark { font-size: 19px; letter-spacing: .05em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 12px; letter-spacing: .1em; opacity: .9; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav__cta {
  border: 1px solid currentColor; border-radius: 30px; padding: 6px 18px; opacity: 1 !important;
}
.nav__member { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; font-size: 13px; letter-spacing: .1em; }

/* ============================================================
   hero — full-bleed cinematic
   ============================================================ */
.hero { position: relative; height: 88vh; min-height: 560px; width: 100%; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,.28) 0%, rgba(13,13,13,0) 34%, rgba(13,13,13,.12) 70%, rgba(13,13,13,.5) 100%); }
.hero .corner { position: absolute; z-index: 2; color: var(--sand); font-size: 12px; letter-spacing: var(--xwide); opacity: .85; }
.hero .c-tl { top: 92px; left: var(--gut); }
.hero .c-tr { top: 92px; right: var(--gut); text-align: right; }
.hero .c-bl { bottom: 32px; left: var(--gut); }
.hero .c-br { bottom: 32px; right: var(--gut); text-align: right; }
.hero__center { position: absolute; z-index: 2; left: var(--gut); bottom: 92px; color: var(--sand); max-width: 540px; }
.hero__center h1 { margin-bottom: 14px; }
.hero__center p { font-size: 14px; opacity: .92; margin-bottom: 24px; max-width: 420px; }

/* buttons */
.btn { display: inline-block; border-radius: 30px; padding: 12px 26px; font-size: 13px; letter-spacing: .06em;
  border: 1px solid transparent; transition: transform .15s, background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--sand); color: var(--slate); }
.btn-solid:hover { background: #fff; }
.btn-ghost { border-color: rgba(242,226,202,.7); color: var(--sand); margin-left: 8px; }
.btn-ghost:hover { background: rgba(242,226,202,.12); }
.btn--slate { background: var(--slate); color: var(--sand); }
.btn--slate:hover { background: #2a343d; }

/* ============================================================
   sections
   ============================================================ */
.sec { padding: clamp(56px, 8vw, 104px) var(--gut); }
.sec--slate { background: var(--slate); color: var(--sand); }
.sec--ink   { background: var(--ink);  color: var(--sand); }
.sec--paper { background: var(--sand); color: var(--slate); }
.headrow { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; gap: 20px; flex-wrap: wrap; }
.headrow .more { font-size: 12px; opacity: .7; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- bio band ---------- */
.bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: center;
  max-width: var(--wrap); margin: 0 auto; }
.bio__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.bio__body { max-width: 560px; }
.bio__body p { font-size: 14px; margin-bottom: 14px; opacity: .9; }
.bio__body .accent { color: var(--rose); }

/* ---------- vault list ---------- */
.vrow { display: flex; align-items: center; gap: 20px; padding: 16px 0;
  border-top: 1px solid rgba(242,226,202,.16); transition: padding .2s; }
.vrow:hover { padding-left: 8px; }
.vrow__play { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--sand); color: var(--slate); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.vrow__t { flex: 1 1 auto; min-width: 0; font-size: 17px; }
.vrow__m { font-size: 12px; opacity: .55; white-space: nowrap; }
.vrow__lock { flex: 0 0 auto; font-size: 11px; letter-spacing: .06em; border: 1px solid rgba(202,239,236,.5);
  color: var(--aqua); border-radius: 30px; padding: 3px 11px; white-space: nowrap; }

/* ---------- full-bleed breather band ---------- */
.band { position: relative; height: 68vh; min-height: 420px; overflow: hidden; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,.15), rgba(13,13,13,.55)); }
.band__cap { position: absolute; z-index: 2; bottom: 40px; left: var(--gut); color: #fff; max-width: 540px; }
.band__cap .eyebrow { color: #fff; opacity: .8; }
.band__cap h3 { font-size: clamp(20px, 2.6vw, 28px); margin-top: 8px; }

/* ---------- ecosystem trio ---------- */
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.eco__img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.eco__k { font-size: 19px; margin: 16px 0 8px; letter-spacing: .06em; }
.eco__d { font-size: 13px; opacity: .7; line-height: 1.6; }

/* ---------- releases strip ---------- */
.rel { position: relative; overflow: hidden; }
.rel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rel__inner { position: relative; z-index: 2; padding: clamp(56px, 8vw, 96px) var(--gut); }
.rel__col { max-width: var(--wrap); margin: 0 auto; color: #22303a; }
.rel__col h2 { font-size: 13px; letter-spacing: var(--xwide); text-transform: uppercase; margin-bottom: 6px; }
.rel__yr { font-size: clamp(32px, 5vw, 44px); margin-bottom: 28px; }
.rel__col ul { list-style: none; padding: 0; margin: 0; }
.rel__col li { font-size: 14px; padding: 9px 0; border-top: 1px solid rgba(34,48,58,.25); letter-spacing: .05em; }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 34px; }
.tier { border: 1px solid rgba(52,65,76,.22); border-radius: 6px; padding: 24px 14px; text-align: center;
  display: flex; flex-direction: column; gap: 8px; background: #fff6e8; }
.tier__n { font-size: 14px; min-height: 34px; }
.tier__p { font-size: 24px; color: var(--rose); }
.tier__p span { font-size: 12px; opacity: .5; }
.tier__o { font-size: 12px; opacity: .62; line-height: 1.45; }

/* ============================================================
   post / page article  (light, restrained)
   ============================================================ */
.article { padding: clamp(60px, 9vw, 104px) 0 80px; }
.article__head { max-width: 760px; margin: 0 auto 30px; text-align: center; padding-inline: var(--gut); }
.article__meta { font-size: 12px; opacity: .6; margin-bottom: 14px; }
.article__title { margin-bottom: 10px; }
.article__feature { max-width: 1100px; margin: 0 auto 40px; border-radius: 6px; overflow: hidden; padding-inline: var(--gut); }
.content { max-width: 720px; margin: 0 auto; font-size: 16px; padding-inline: var(--gut); }
.content > * + * { margin-top: 1.2em; }
.content a { border-bottom: 1px solid var(--sage); }
.content h2, .content h3 { margin-top: 1.6em; }
.content img, .content iframe, .content .kg-embed-card { border-radius: 6px; }
.content iframe { width: 100%; border: 0; }
/* soundcloud players: show the square artwork clean, never stretched to landscape */
.content iframe[src*="soundcloud"] { aspect-ratio: 1/1; width: 100%; max-width: 460px; height: auto; display: block; margin-inline: auto; }
.kg-embed-card { display: flex; justify-content: center; }
figure.kg-card { margin: 1.4em 0; }
.kg-width-wide { max-width: 1040px; margin-inline: auto; }
.kg-width-full { max-width: 100%; }

/* members upgrade cta (gated content) */
.gh-post-upgrade-cta, .members-cta {
  max-width: 720px; margin: 40px auto; padding: 40px 28px; text-align: center;
  border: 1px solid rgba(52,65,76,.2); border-radius: 10px; background: #fff6e8;
}
.members-cta h3 { margin-bottom: 10px; }
.members-cta p { opacity: .8; margin-bottom: 22px; }

/* ============================================================
   footer
   ============================================================ */
.site-foot { border-top: 1px solid rgba(52,65,76,.15); padding: 36px var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; font-size: 12px; opacity: .72; color: var(--slate); }
.site-foot__nav { display: flex; gap: 20px; }

/* forms */
.subscribe { max-width: 520px; margin: 24px auto 0; display: flex; gap: 10px; }
.subscribe input { flex: 1; padding: 13px 18px; border-radius: 30px; border: 1px solid rgba(52,65,76,.3);
  background: #fff6e8; color: var(--slate); font-family: inherit; }
.subscribe input::placeholder { color: var(--fg-dim); }

/* pagination */
.pagination { text-align: center; padding: 50px 0; }
.pagination a { border: 1px solid currentColor; border-radius: 30px; padding: 11px 26px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; }
  .bio__img { max-width: 420px; }
  .eco { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-open { display: flex; position: absolute; top: 100%; right: var(--gut);
    flex-direction: column; align-items: flex-end; gap: 14px; background: var(--sand); color: var(--slate);
    padding: 20px 24px; border-radius: 10px; border: 1px solid rgba(52,65,76,.16);
    box-shadow: 0 20px 60px rgba(52,65,76,.18); }
  .menu-toggle { display: block; }
  .hero__center { max-width: 88vw; }
  .site-foot { flex-direction: column; text-align: center; }
}

/* ============================================================
   shared component styles (join / world / vault / page templates)
   ============================================================ */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--paper { background: var(--sand); color: var(--slate); }
.section--slate { background: var(--slate); color: var(--sand); }

/* generic tier cards (join page) */
.tier__name { font-size: 15px; min-height: 40px; }
.tier__price { font-size: 26px; color: var(--rose); }
.section--slate .tier__price { color: var(--amber); }
.tier__price span { font-size: 12px; opacity: .5; }
.tier__list { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13px; opacity: .82;
  display: flex; flex-direction: column; gap: 7px; text-align: left; }
.tier__list li { padding-left: 14px; position: relative; }
.tier__list li::before { content: '·'; position: absolute; left: 3px; }

/* legacy buttons */
.btn--sand { background: var(--sand); color: var(--slate); }
.btn--sand:hover { background: #fff; }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: rgba(242,226,202,.12); }

/* vault list + rows (vault page / vault-row partial) */
.vault { display: flex; flex-direction: column; }
.section--slate .vrow { border-top-color: rgba(242,226,202,.16); }
.section--slate .vrow__play { background: var(--sand); color: var(--slate); }
.vrow__thumb { flex: 0 0 auto; width: 110px; height: 68px; object-fit: cover; border-radius: 4px; }
.vrow__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vrow__title { font-size: clamp(17px, 2vw, 21px); }
.vrow__meta { font-size: 12px; opacity: .58; }
.vrow__lock { color: var(--sage); border-color: var(--sage); }
.section--slate .vrow__lock { color: var(--aqua); border-color: rgba(202,239,236,.5); }

/* card grid (optional gallery) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card { border: 1px solid rgba(52,65,76,.18); border-radius: 6px; overflow: hidden; background: #fff6e8; transition: transform .18s; }
.card:hover { transform: translateY(-3px); }
.card__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--slate); }
.card__body { padding: 16px 18px 20px; }

/* latest content cards (home) */
.latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.pcard { display: block; }
.pcard__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; background: var(--slate); }
.pcard__k { font-size: 17px; margin: 14px 0 5px; }
.pcard__m { font-size: 12px; opacity: .55; }

@media (max-width: 860px) {
  .latest { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .vrow__thumb { display: none; }
}
