/* White River Audio — site styles. Night is the default; Light is chosen with the switch in the top bar. */
@font-face { font-family: "Readex Pro"; src: url("../fonts/ReadexPro-ExtraLight.ttf") format("truetype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/ReadexPro-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/ReadexPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/ReadexPro-Medium.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Medium.ttf") format("truetype"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }

:root {
  /* Night (default) */
  --paper: #121114;
  --band: #0B0A0D;
  --card: #1D1B20;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #EEE9E4;
  --body: #B9B1AC;
  --muted: #857E86;
  --river: #7CC0CB;
  --btn-bg: #EEE9E4;
  --btn-fg: #19171C;
  --shot-edge: rgba(255, 255, 255, 0.10);
  --shot-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --news-bg: linear-gradient(180deg, #2A2530, #1B181F);
  color-scheme: dark;

  /* Each plugin's own colour, tuned per theme */
  --laminar: #DDA594; --lustra: #9DD3C4; --clarion: #D9BC86; --cobalt: #B7D5EA; --echo: #E8A07E; --glow: #E6A672;
  --laminar-tint: rgba(221,165,148,.07); --lustra-tint: rgba(157,211,196,.07); --clarion-tint: rgba(217,188,134,.07);
  --cobalt-tint: rgba(183,213,234,.07); --echo-tint: rgba(232,160,126,.07); --glow-tint: rgba(230,166,114,.07);

  --head: "Readex Pro", system-ui, sans-serif;
  --text: "Manrope", system-ui, sans-serif;
  --wrap: 1312px;
}
:root[data-theme="light"] {
  --paper: #FBFAF7;
  --band: #F4F1EC;
  --card: #FFFFFF;
  --line: #E8E3DA;
  --ink: #1F2328;
  --body: #4E4A46;
  --muted: #8A847A;
  --river: #2B7A8A;
  --btn-bg: #1F2328;
  --btn-fg: #FFFFFF;
  --shot-edge: transparent;
  --shot-shadow: 0 22px 50px rgba(30, 25, 30, 0.20), 0 2px 8px rgba(0, 0, 0, 0.10);
  color-scheme: light;
  --laminar: #A85F53; --lustra: #2F7F6E; --clarion: #94702F; --cobalt: #3B6EA8; --echo: #B05C35; --glow: #A95F24;
  --laminar-tint: #EEE9E3; --lustra-tint: #E7ECE9; --clarion-tint: #EDE8DE; --cobalt-tint: #E7EBF0; --echo-tint: #EEE6E3; --glow-tint: #EEE7DF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-weight: 500; font-size: 16px; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--river); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 29px; flex-shrink: 0; }
.brand .name { font-family: var(--head); font-weight: 400; font-size: 14px; letter-spacing: .24em; white-space: nowrap; }
.brand .name span, .river { color: var(--river); }
.brand .name span { font-weight: 300; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--body); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { border-bottom: 1.5px solid var(--river); }
.theme { background: none; border: 1px solid var(--line); color: var(--body); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.theme:hover { color: var(--ink); }
.theme svg { width: 16px; height: 16px; }
.theme .sun { display: none; }
:root[data-theme="light"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: none; }
.menu { display: none; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--head); font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; }
h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 200; line-height: 1.08; }
h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 300; line-height: 1.15; }
h3 { font-size: 19px; font-weight: 400; }
.lede { font-family: var(--head); font-weight: 300; font-size: 22px; line-height: 1.4; color: var(--ink); margin: 0; }
p { margin: 0; color: var(--body); }
.small { font-size: 13px; color: var(--muted); }

.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-fg); padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; border: 1.5px solid var(--btn-bg); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.accent { background: var(--acc); border-color: var(--acc); color: var(--btn-fg); }
:root[data-theme="light"] .btn.accent { color: #fff; }
.btn.accent.ghost { background: transparent; color: var(--acc); }
.btn:hover { opacity: .88; }
.more { font-size: 14px; font-weight: 700; color: var(--acc, var(--ink)); text-decoration: none; }
.more:hover { text-decoration: underline; }

.shot { border-radius: 12px; overflow: hidden; box-shadow: var(--shot-shadow); outline: 1px solid var(--shot-edge); outline-offset: -1px; }
.shot img { width: 100%; height: auto; }

section { padding: 96px 0; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head2 { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.head2.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
.head2.split p { max-width: 430px; font-size: 15px; }

/* ---------- home hero ---------- */
.hero { position: relative; padding: 84px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; position: relative; z-index: 1; }
.hero .copy { display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.hero .copy p { font-size: 18px; max-width: 520px; }
.hero-art { display: block; width: 100%; height: auto; margin-top: 20px; color: var(--ink); }

/* ---------- plugin cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease; }
.card:hover { transform: translateY(-2px); }
.card .pic { background: var(--tint); padding: 22px 24px; }
.card .pic .shot { border-radius: 8px; }
.card .txt { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .row { display: flex; align-items: baseline; justify-content: space-between; }
.card h3 { font-size: 22px; letter-spacing: .06em; color: var(--acc); }
.card .tag { font-family: var(--head); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); }
.card p { font-size: 14px; line-height: 1.55; flex: 1; }

/* ---------- free band ---------- */
.news { background: var(--news-bg); color: #F3E3DB; }
.news .wrap { display: grid; grid-template-columns: 470px minmax(0, 1fr); gap: 60px; align-items: center; }
.news h2 { color: #F3E3DB; font-weight: 200; font-size: clamp(30px, 3vw, 38px); }
.news p { color: #B9AEB6; }
.news .eyebrow { color: #DDA594; }
.news .btn { background: #F3E3DB; border-color: #F3E3DB; color: #2A2530; }
.news .btn.ghost { background: transparent; color: #DDA594; border-color: #DDA594; }

/* ---------- chain ---------- */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.chain .step { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.chain .dot { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.chain .dot b { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--acc); color: var(--acc); display: grid; place-items: center; font-family: var(--head); font-weight: 400; font-size: 14px; flex-shrink: 0; }
.chain .dot i { flex: 1; height: 1px; background: var(--line); }
.chain h3 { font-size: 20px; letter-spacing: .05em; color: var(--acc); }
.chain strong { font-size: 14px; color: var(--ink); }
.chain p { font-size: 14px; max-width: 250px; }

/* ---------- product page ---------- */
.crumbs { padding-top: 20px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs b { color: var(--acc); font-weight: 600; }
.phero { padding: 40px 0 80px; }
.phero .wrap { display: grid; grid-template-columns: 470px minmax(0, 1fr); gap: 56px; align-items: center; }
.phero .copy { display: flex; flex-direction: column; gap: 20px; }
.phero .eyebrow { color: var(--acc); }
.ptitle { font-family: var(--head); font-weight: 200; font-size: 58px; letter-spacing: .36em; line-height: 1.05; text-transform: uppercase; color: var(--ink); margin: 0; }
.ptitle.long { font-size: 46px; }
.ptitle span { color: var(--acc); }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-bottom: 90px; }
.feat { display: flex; flex-direction: column; gap: 10px; }
.feat::before { content: ""; width: 26px; height: 2px; background: var(--acc); }
.feat p { font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stepcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.stepcard .n { font-family: var(--head); font-size: 34px; font-weight: 200; color: var(--acc); line-height: 1; }
.stepcard p { font-size: 15px; }
.opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.opt { border-top: 1.5px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.opt:first-child { border-color: var(--acc); }
.opt h3 { font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.opt:first-child h3 { color: var(--acc); }
.opt p { font-size: 15px; }
.split2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 70px; }
.specs { margin-top: 10px; }
.specs div { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { width: 140px; flex-shrink: 0; color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); }
.news-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; padding-left: 18px; color: var(--body); font-size: 15px; }
.pals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 22px; align-items: center; text-decoration: none; }
.pal .shot { width: 220px; flex-shrink: 0; border-radius: 6px; box-shadow: none; }
.pal h3 { color: var(--acc); letter-spacing: .05em; font-size: 20px; }
.pal div { display: flex; flex-direction: column; gap: 6px; }
.pal p { font-size: 14px; }

/* ---------- downloads ---------- */
.dl { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.dl:first-of-type { border-top: 1px solid var(--line); }
.dl .shot { border-radius: 8px; box-shadow: none; }
.dl h3 { color: var(--acc); font-size: 22px; letter-spacing: .06em; }
.dl .meta { display: flex; flex-direction: column; gap: 6px; }
.dl ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: var(--body); }
.dl .btns { flex-direction: column; align-items: stretch; }
.dl .btn { text-align: center; }
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.how .stepcard ol { margin: 0; padding-left: 20px; color: var(--body); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.how code { font-size: 13px; background: var(--band); padding: 1px 6px; border-radius: 4px; }

/* ---------- simple pages ---------- */
.page { padding: 72px 0 96px; }
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { margin-top: 26px; font-size: 26px; }
.prose p, .prose li { font-size: 16.5px; }
.prose ul { margin: 0; padding-left: 20px; color: var(--body); display: flex; flex-direction: column; gap: 8px; }
.tipbox { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.tipbox p { font-size: 16.5px; }
.tipbox .small { font-size: 13px; }
.prose ul.faq { list-style: none; padding: 0; gap: 0; }
.faq li { padding: 12px 0; }
.faq b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.note { border: 1px dashed var(--line); border-radius: 12px; padding: 16px 18px; font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot .about { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.foot .about p { font-size: 14px; color: var(--muted); }
.foot .cols { display: flex; gap: 90px; }
.foot .col { display: flex; flex-direction: column; gap: 10px; }
.foot .col a { font-size: 14px; color: var(--body); text-decoration: none; }
.foot .col a:hover { color: var(--ink); }
.foot .eyebrow { font-size: 11px; letter-spacing: .24em; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap, .phero .wrap, .news .wrap { grid-template-columns: minmax(0, 1fr); }
  .chain, .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split2 { grid-template-columns: minmax(0, 1fr); gap: 50px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .top .wrap { height: 64px; }
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; display: flex; flex-direction: column; min-width: 180px; }
  .menu nav a { text-decoration: none; padding: 8px 0; font-weight: 600; font-size: 15px; }
  .brand .name { font-size: 11px; }
  section { padding: 64px 0; }
  .grid, .chain, .opts, .feats, .steps, .pals, .how { grid-template-columns: minmax(0, 1fr); }
  .head2.split { flex-direction: column; align-items: flex-start; }
  .ptitle, .ptitle.long { font-size: 38px; letter-spacing: .26em; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .pal { flex-direction: column; align-items: flex-start; }
  .pal .shot { width: 100%; }
  .foot .cols { gap: 40px; flex-wrap: wrap; }
}
