/* toddgibbons.com: one stylesheet for every page. */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --link: #8a1c24;
  --gold: #e0a92e;          /* tagline colour from the original banner */
  --maroon: #7a1a20;        /* the full-width rules between sections */
  --maxw: 1180px;
  --section-gap: 4.5rem;
  --font: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.5rem;
}
.site-header .brand {
  font-size: 1.6rem; color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.site-header nav a {
  margin-left: 1.25rem; color: var(--ink); text-decoration: none; font-size: 1rem;
}
.site-header nav a:hover { text-decoration: underline; }

/* ---- Hero: full-bleed photo with the title over it ---- */
.hero {
  min-height: 46vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}
.hero .tagline {
  margin-top: 0.25rem;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  font-weight: 500;
  color: var(--gold);
}

/* ---- Portfolio entries ---- */
.divider { width: 100%; height: 5px; border: 0; margin: 0; background: var(--maroon); }

.entry {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: var(--section-gap) 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
/* Odd entries: text left, picture right. Even entries flip. Reorder freely. */
.entry:nth-of-type(even) .media { order: -1; }

.entry .head { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.entry .head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; margin: 0;
  font-weight: 700; color: var(--ink); letter-spacing: 0.01em;
}
.entry .head .icon { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 14px; object-fit: contain; }

.entry .text p { margin: 0 0 1.1rem; }
.entry .badge { display: inline-block; margin-top: 0.5rem; }
.entry .badge img { height: 48px; width: auto; }

.entry .media { display: flex; flex-direction: column; align-items: center; }
.entry .media img, .entry .media video { width: 100%; }
.entry .media .caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; text-align: left; width: 100%; }

/* ---- Footer ---- */
.site-footer {
  border-top: 5px solid var(--maroon);
  padding: 3rem 1.5rem 4rem; text-align: center;
}
.site-footer h2 { color: var(--ink); margin: 0 0 0.75rem; font-size: 1.5rem; }
.site-footer p { margin: 0.3rem 0; }

/* ---- App page (Tracer) ---- */
.app-page { max-width: 640px; margin: 0 auto; padding: 4rem 1.5rem 6rem; text-align: center; }
.app-page .app-icon { width: 210px; height: 210px; margin: 0 auto; }
.app-page h1 { font-size: clamp(3rem, 9vw, 5rem); line-height: 1.1; margin: 0.5rem 0 1.5rem; color: var(--ink); }
.app-page p { max-width: 380px; margin: 0 auto 1rem; }
.app-page .badge img { height: 64px; width: auto; margin: 0 auto; }
.app-page .more { margin-top: 2rem; font-size: 0.95rem; }

/* ---- Long-form text (privacy policy) ---- */
.prose { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 6rem; }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); color: var(--ink); line-height: 1.2; margin: 0 0 1rem; }
.prose h2 { font-size: 1.7rem; color: var(--ink); margin: 2.5rem 0 0.75rem; line-height: 1.3; }
.prose h3 { font-size: 1.3rem; color: var(--ink); margin: 2rem 0 0.5rem; }
.prose h4 { font-size: 1.05rem; color: var(--ink); margin: 1.5rem 0 0.4rem; }
.prose ul { padding-left: 1.4rem; }
.prose li p { margin: 0.4rem 0; }

/* ---- Voice page ---- */
.voice { max-width: 840px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.voice .logo { width: 380px; max-width: 100%; margin-bottom: 1.5rem; }
.voice .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; font-size: 1.1rem; }
.voice .cols p { margin: 0; }
.voice .gear { font-size: 0.95rem; }
.voice .gear p { margin: 0 0 0.75rem; }
.voice .gear ul { margin: 0; padding-left: 2.5rem; }
.voice .gear li { margin: 0.35rem 0; }
.voice .gear li p { margin: 0; }
.demos { margin: 2.5rem 0; display: flex; flex-direction: column; gap: 2rem; }
.demo { background: #1b1b1b; color: #f2f2f2; display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1rem; flex-wrap: wrap; }
.demo .name { flex: 1 1 10rem; }
.demo audio { flex: 1 1 16rem; height: 36px; }
.demo a { color: #9a9a9a; font-size: 0.85rem; text-decoration: none; }
.demo a:hover { color: #fff; }
.demo .pending { color: #9a9a9a; font-size: 0.85rem; }
.booking h2 { font-size: 1.6rem; color: var(--ink); margin: 0 0 0.5rem; }
.booking p { font-size: 1.6rem; margin: 0.4rem 0; }
.booking a { color: var(--ink); }

/* ---- Not found ---- */
.notfound { max-width: 640px; margin: 0 auto; padding: 6rem 1.5rem; text-align: center; }

/* ---- Phones: one column ---- */
@media (max-width: 767px) {
  :root { --section-gap: 2.75rem; }
  .site-header .brand { font-size: 1.3rem; }
  .entry { grid-template-columns: 1fr; gap: 1.5rem; }
  .entry .text-col { display: contents; }
  .entry .head { order: 1; justify-content: space-between; margin-bottom: 0; }
  .entry .media { order: 2; }
  .entry:nth-of-type(even) .media { order: 2; }
  .entry .text { order: 3; }
  .entry .badge { order: 4; justify-self: center; }
  .entry .head .icon { order: 2; }
  .hero { min-height: 32vh; }
  .voice .cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .booking p { font-size: 1.3rem; }
}
