/* Satellite — shared styles */
:root {
  --ink: #1a0a1f;          /* navy text and nav */
  --paper: #F3F5F8;        /* page background */
  --white: #FFFFFF;
  --muted: #55607A;        /* secondary text */
  --line: #D5DBE6;
  --digital: #C2491D;      /* orange accent: musician bar, buttons, orbit dot */
  --focus: #2F5BEA;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 4.25rem;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;     /* slightly larger base for an older audience */
  line-height: 1.6;
  padding-top: var(--nav-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--ink); padding: .6rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Navbar ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  background: var(--ink); color: var(--white);
}
.site-nav .wrap {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  text-decoration: none; font-size: 1rem;
}
.nav-links a:hover { background: rgba(255,255,255,.12); }
.nav-links a[aria-current="page"] { background: var(--white); color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: var(--white);
  font: inherit; font-size: 1rem; padding: .4rem .9rem; border-radius: 999px; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: var(--ink); padding: .5rem 1.25rem 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 1rem; font-size: 1.1rem; }
}

/* ---------- Home: hero (title and photo side by side) ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(3rem, 4vw, 4rem);
  padding: clamp(2rem, 3vw, 4rem) 0 0;
}
.hero-text { padding-left: 1.5rem; }   /* room for the orbit ring on the left */
.wordmark {
  position: relative; display: inline-block; isolation: isolate;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 4rem);
  line-height: .9; letter-spacing: -0.04em; margin: 0;
}
.wordmark-line { display: block; }
.orbit {
  position: absolute; left: -7%; top: -22%; width: 114%; height: 144%;
  border: 1.5px solid var(--line); border-radius: 50%;
  pointer-events: none; z-index: -1;
}
/* The moon traces the ring: x and y swing on offset sine-like timings */
.orbit-x { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; }
.moon {
  position: absolute; left: 0; top: 0;
  width: .09em; height: .09em; margin: -.045em 0 0 -.045em;
  border-radius: 50%; background: var(--digital);
}
.hero-name {
  margin: 1.5rem 0 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--muted); letter-spacing: .02em;
}

.photo-placeholder {
  /* Swap this div for: <img src="images/harry-cafe.jpg" alt="Harry working on a laptop in a café"> */
  aspect-ratio: 4 / 3; width: 100%;
  background: #FFD60A; border-radius: 1.25rem;
  display: grid; place-items: center;
  color: rgba(22,33,58,.55); font-size: 1rem;
}
.hero-photo img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 1.25rem; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text { padding-left: 0; }
}

/* ---------- Home: musician bar ---------- */
.musician-bar {
  display: block; margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--digital); color: var(--white); text-decoration: none;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  transition: filter .2s;
}
.musician-bar:hover { filter: brightness(1.08); }
.musician-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.bar-for { margin: 0; font-size: 1.05rem; opacity: .9; }
.musician-bar h2 {
  font-family: var(--display); font-weight: 700; margin: .3rem 0 .75rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em;
}
.musician-bar .lede { margin: 0; max-width: 40ch; font-size: 1.15rem; }
.bar-cta {
  background: var(--white); color: var(--ink);
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; white-space: nowrap;
}

/* ---------- Home: reviews ---------- */
.reviews { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; margin: 0 0 1.5rem;
}
.review-track {
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: .75rem; scrollbar-width: thin;
}
.review {
  flex: 0 0 min(26rem, 85%);
  scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--muted);
  border-radius: 1rem; padding: 1.75rem; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
}
.review[data-service="digital"] { border-top-color: var(--digital); }
.review blockquote { margin: 0; font-size: 1.15rem; }
.review figcaption { color: var(--muted); font-size: 1rem; }
.review figcaption strong { color: var(--ink); display: block; }

/* ---------- Home: about me (vertical split) ---------- */
.about-me {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white);
  min-height: 40rem;
}
.about-me-photo { position: relative;}
.about-placeholder,
.about-me-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%;  
}
.about-placeholder {
  background: #FFD60A;
  display: grid; place-items: center;
  color: rgba(22,33,58,.55); font-size: 1rem;
}
.about-me-text { align-self: center; padding: clamp(2rem, 5vw, 4rem); }
.about-me-text p { max-width: 50ch; margin: 0 0 1rem; }
.about-me-text .button { margin-top: .5rem; }
@media (max-width: 760px) {
  .about-me { grid-template-columns: 1fr; }
  .about-me-photo { aspect-ratio: 4 / 3; }
}

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.page-head h1 {
  font-family: var(--display); font-weight: 800; margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -0.03em;
}
.page-head p { max-width: 60ch; font-size: 1.2rem; color: var(--muted); }
.page-body { padding-bottom: 4rem; }
.page-body > * { max-width: 65ch; }
.page-body h2 { font-family: var(--display); font-size: 1.6rem; margin: 2.5rem 0 .5rem; }
.placeholder-note {
  background: var(--white); border: 2px dashed var(--line); border-radius: .75rem;
  padding: 1rem 1.25rem; color: var(--muted); font-size: 1rem;
}
.theme-digital .page-head { border-bottom: 6px solid var(--digital); }
.button {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700;
}
.theme-digital .button { background: var(--digital); }
.route-links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, auto); gap: 2rem 3rem; }
.footer-grid > div p { max-width: 34ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div { grid-column: 1 / -1; } }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 0; }
.footer-grid p { margin: .25rem 0 0; color: rgba(255,255,255,.75); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-links a { text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.footer-small { margin-top: 2.5rem; font-size: .9rem; color: rgba(255,255,255,.6); }

/* Orbit animation: the one bit of ambient motion on the site */
@media (prefers-reduced-motion: no-preference) {
  .orbit-x { left: 0; animation: orbit-x 9s ease-in-out infinite alternate; }
  .moon { animation: orbit-y 9s ease-in-out -4.5s infinite alternate; }
}
@keyframes orbit-x { from { left: 0%; } to { left: 100%; } }
@keyframes orbit-y { from { top: 0%; } to { top: 100%; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Projects grid ---------- */
.projects-wrap { padding: 2.5rem 0 4rem; }
.project-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.project-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 1rem;
  overflow: hidden; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(22,33,58,.12); }
.project-media { aspect-ratio: 1 / 1; background: #FFD60A; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.project-body h2 { font-family: var(--display); font-size: 1.35rem; margin: 0; }
.project-body p { margin: 0; color: var(--muted); font-size: 1rem; }
.project-link { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--digital); }


.contact-form { display: grid; gap: 1.25rem; max-width: 36rem; margin-bottom: 2rem; }
.contact-form label { display: grid; gap: .4rem; font-weight: 700; }
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .75rem 1rem; border: 2px solid var(--line); border-radius: .6rem;
  background: var(--white);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--digital); outline: none; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; font-size: 1.05rem; background: var(--digital); }