/* Deck Space Records — static site styles
   Palette from DSR brand sheet. Body text stays charcoal for contrast;
   teal/coral/orange are used for headings, buttons and accents. */

:root {
  --cream: #F5F1E8;        /* Off-white / vintage paper */
  --beige: #E9E2D6;        /* Light beige */
  --ink: #1C1C1C;          /* Charcoal black */
  --muted: #55524C;        /* readable warm grey (darker than brand grey for text) */
  --grey: #8A8A8A;         /* brand warm grey: borders/decoration only */
  --teal: #2E7C80;         /* Primary */
  --teal-dark: #23666A;    /* links and small teal text */
  --coral: #E2705B;        /* Secondary */
  --orange: #D98645;
  --blue: #537C9B;
  --blue-dark: #3F6784;
  --line: rgba(28, 28, 28, 0.14);
  --radius: 10px;
  --max: 1120px;
  --display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: .01em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--teal-dark); }
h3 { font-size: 1.25rem; color: var(--ink); }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 46rem; }
.eyebrow { font-family: var(--body); font-weight: 700; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-dark); margin: 0 0 .75rem; }
.small { font-size: .92rem; color: var(--muted); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand .b1 { font-family: var(--display); color: var(--coral); font-size: 1.45rem; letter-spacing: .03em; text-transform: uppercase; }
.brand .b2 { font-weight: 700; color: var(--teal); font-size: .78rem; letter-spacing: .5em; text-transform: uppercase; margin-top: 3px; padding-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--beige); }
.nav a.btn { margin-left: 8px; color: #fff; background: var(--teal); }
.nav a.btn:hover { background: var(--teal-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--teal); transition: background .15s, transform .15s; cursor: pointer; font-family: var(--body); font-size: 1rem; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn.alt { background: transparent; color: var(--teal-dark); }
.btn.alt:hover { background: var(--teal-dark); color: #fff; }
.btn.coral { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn.coral:hover { background: #d4604b; border-color: #d4604b; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.alt-bg { background: var(--beige); }
.teal-bg { background: var(--teal); color: #fff; }
.teal-bg h2, .teal-bg h3 { color: #fff; }
.teal-bg .eyebrow { color: #F5E3C7; }
.teal-bg a { color: #fff; }
.teal-bg .btn { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.teal-bg .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

.hero { padding: 56px 0 64px; background-image: radial-gradient(rgba(28,28,28,.06) 1px, transparent 1.2px); background-size: 22px 22px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 .accent { color: var(--coral); }

.page-hero { padding: 48px 0 40px; background: var(--beige); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: .35em; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 700; }
.card.accent { border-top: 5px solid var(--coral); }
.card.accent.t { border-top-color: var(--teal); }
.card.accent.o { border-top-color: var(--orange); }
a.card { text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28,28,28,.1); }

/* ---------- Photos & vinyl placeholder ---------- */
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--teal); aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.photo.wide { aspect-ratio: 16 / 10; }
.photo.tall { aspect-ratio: 3 / 4; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .vinyl { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 14px 10px; font-size: .88rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lists, tables, steps ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 1.7rem; position: relative; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: .9rem; border-radius: 50%; background: var(--teal); box-shadow: inset 0 0 0 4px var(--cream); outline: 2px solid var(--teal); }
.ticks.x li::before { background: var(--coral); outline-color: var(--coral); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 70px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--display); display: grid; place-items: center; }
.steps strong { display: block; font-size: 1.08rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--teal); color: #fff; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--cream); }
.num { font-variant-numeric: tabular-nums; }

.callout { background: #fff; border-left: 6px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.5rem 0; }
.callout strong { color: var(--ink); }

/* ---------- Calculator ---------- */
.calc { background: #fff; border: 2px solid var(--teal); border-radius: var(--radius); padding: 24px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-out { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.calc-out div { background: var(--cream); border-radius: 8px; padding: 12px 14px; }
.calc-out .k { display: block; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.calc-out .v { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--teal-dark); }

/* ---------- Forms ---------- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; margin: 0 0 6px; }
.field { margin-bottom: 18px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #9a958b; border-radius: 8px; padding: 11px 12px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(46,124,128,.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.help { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 8px; display: none; font-weight: 600; }
.form-msg.ok { display: block; background: #dff0e6; color: #14502d; }
.form-msg.err { display: block; background: #fbe3dd; color: #7a2312; }

/* ---------- FAQ ---------- */
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; font-size: 1.08rem; }
details[open] summary { color: var(--teal-dark); }
details p { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e8e4da; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #e8e4da; }
.site-footer a:hover { color: #fff; }
.site-footer h2 { font-family: var(--body); font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: #F0B9AC; margin-bottom: .8rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.foot-brand .b1 { font-family: var(--display); color: var(--coral); font-size: 1.4rem; text-transform: uppercase; }
.foot-brand .b2 { font-weight: 700; color: #7FC1C4; letter-spacing: .5em; font-size: .78rem; text-transform: uppercase; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: .9rem; color: #bdb8ac; }

.table-wrap + h2, .table-wrap + p + h2 { margin-top: 2rem; }
