/* ---------- Ryan Stewart — design system ---------- */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Warm bone palette — guitars, vinyl, control room amber */
  --bone:        #f3ecdf;
  --paper:       #faf6ed;
  --ink:         #1c1714;
  --char:        #2d2722;
  --mute:        #6b5e4f;
  --rule:        #d8ccb6;
  --rule-soft:   #e9dfc8;

  /* Burnt sienna — Gibson SG cherry, Marshall amp glow, vintage tube light */
  --accent:      #b9450f;
  --accent-deep: #8a3010;
  --accent-soft: #e8a87c;
  --accent-tint: #f8e4d0;

  /* Type scale */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing rhythm */
  --gutter: clamp(20px, 4vw, 64px);
  --max-w:  1180px;
  --col-w:  680px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--char);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Signature: vertical "string" rail on desktop ---------- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(20px, calc((100vw - var(--max-w)) / 2 - 20px));
  width: 1px;
  background: var(--rule);
  z-index: 1;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(max(20px, calc((100vw - var(--max-w)) / 2 - 20px)) + 6px);
  width: 1px;
  background: var(--accent);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 880px) {
  body::before, body::after { display: none; }
}

/* ---------- Layout shells ---------- */
.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.col {
  max-width: var(--col-w);
}

.col-wide {
  max-width: 920px;
}

/* ---------- Top nav ---------- */
.topnav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0 0;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  font-variation-settings: "opsz" 14, "SOFT" 50;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand .ampers {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.navlinks {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.navlinks a {
  color: var(--char);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s;
}
.navlinks a:hover { color: var(--accent); }
.navlinks a.active {
  color: var(--accent);
}
.navlinks a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 10vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  margin: 0;
  color: var(--ink);
}
.hero-title .it {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 18px;
  display: inline-block;
}

h1.page-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  margin: 0 0 12px;
}
h1.page-title .it {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

h2.section {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  margin: 0 0 16px;
}

h3.sub {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--mute);
  margin: 0 0 10px;
}

h4.itemtitle {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  font-weight: 300;
  font-variation-settings: "opsz" 36, "SOFT" 60;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.lead .it { font-style: italic; color: var(--accent); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.15s, color 0.15s;
}
a:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

ul.bare {
  list-style: none;
  padding: 0;
  margin: 0;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ---------- Section framing ---------- */
section {
  padding: 56px 0;
  position: relative;
}
section.tight  { padding: 40px 0; }
section.tall   { padding: 96px 0 72px; }
section.first  { padding: 60px 0 40px; }

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.rule.accent {
  border-top: 1px solid var(--accent);
  width: 60px;
  margin: 0 0 24px;
}

/* ---------- Grids & cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

@media (max-width: 880px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
}

.tile {
  display: block;
  text-decoration: none;
  border: none;
  padding: 28px 24px 24px;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  transition: background 0.2s, border-top-color 0.2s, transform 0.2s;
  position: relative;
  height: 100%;
}
.tile:hover {
  background: var(--accent-tint);
  border-top-color: var(--accent);
  transform: translateY(-2px);
}
.tile .tile-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mute);
  margin-bottom: 12px;
  display: block;
}
.tile h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
  font-variation-settings: "opsz" 60, "SOFT" 60;
}
.tile p {
  font-size: 15px;
  color: var(--mute);
  margin: 0;
}

/* ---------- Specific blocks ---------- */
.creditrow {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.creditrow:last-child { border-bottom: none; }
.creditrow .yr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.creditrow .artist {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 30, "SOFT" 40;
}
.creditrow .artist .work {
  font-style: italic;
  color: var(--mute);
  font-weight: 400;
  font-size: 16px;
  display: block;
  margin-top: 2px;
}
.creditrow .role {
  font-size: 14px;
  color: var(--mute);
  text-align: right;
}
@media (max-width: 700px) {
  .creditrow {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .creditrow .role { text-align: left; }
}

.servicerow {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: baseline;
}
.servicerow:last-child { border-bottom: none; }
.servicerow h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 60;
  margin: 0;
}
.servicerow p { color: var(--mute); margin: 0; }
@media (max-width: 700px) {
  .servicerow { grid-template-columns: 1fr; gap: 6px; }
}

.testimonial {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.testimonial:last-child { border-bottom: none; }
.testimonial .quote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 80;
  margin-bottom: 12px;
}
.testimonial .quote::before { content: "\201C"; color: var(--accent); margin-right: 2px; }
.testimonial .quote::after  { content: "\201D"; color: var(--accent); margin-left: 2px; }
.testimonial .who {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bone);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent);
  color: var(--bone);
  border-color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bone);
}

.callout {
  background: var(--paper);
  padding: 36px 40px;
  border-left: 3px solid var(--accent);
  margin: 32px 0;
}
.callout p:last-child { margin-bottom: 0; }

.gear-list {
  columns: 2;
  column-gap: 48px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--char);
}
.gear-list ul { margin: 0; padding-left: 18px; }
.gear-list h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 16px 0 6px;
  break-after: avoid;
}
.gear-list h5:first-child { margin-top: 0; }
@media (max-width: 700px) {
  .gear-list { columns: 1; }
}

/* ---------- Forms ---------- */
form.contact {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
form.contact label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
form.contact input, form.contact select, form.contact textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.15s;
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus {
  outline: none;
  border-color: var(--accent);
}
form.contact textarea { min-height: 140px; resize: vertical; font-family: var(--font-body); }

/* ---------- Footer ---------- */
footer.site {
  margin-top: 80px;
  padding: 56px 0 48px;
  border-top: 1px solid var(--rule);
}
footer.site .footrow {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
footer.site h6 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 12px;
  font-weight: 500;
}
footer.site ul { font-size: 14px; line-height: 1.9; }
footer.site ul a { color: var(--char); border-bottom: none; }
footer.site ul a:hover { color: var(--accent); }
footer.site .word {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--mute);
  font-variation-settings: "opsz" 36, "SOFT" 80;
}
footer.site .colophon {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 700px) {
  footer.site .footrow { grid-template-columns: 1fr 1fr; }
}

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise   { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
.rise-5 { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .rise, .rise-1, .rise-2, .rise-3, .rise-4, .rise-5 { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.muted { color: var(--mute); }
.italic { font-style: italic; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ---------- Print ---------- */
@media print {
  body::before, body::after { display: none; }
  .topnav, footer.site { display: none; }
}
