@import url("https://fonts.googleapis.com/css2?family=DM+Mono&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap");

:root {
  color-scheme: dark light;
  font-family: "DM Sans", Arial, sans-serif;
  --page: #171614;
  --ink: #f5f1e8;
  --muted: #ddd7cc;
  --accent: #f9d382;
  --accent-hover: #fff0c9;
  --card: rgba(24, 23, 20, .78);
  --line: rgba(245, 241, 232, .28);
  --backdrop: linear-gradient(100deg, rgba(17, 16, 14, .94), rgba(17, 16, 14, .71) 55%, rgba(17, 16, 14, .62));
  --footer: #11100e;
  --footer-ink: #aca79e;
  background: var(--page);
  color: var(--ink);
}

:root[data-theme="light"] {
  --page: #f1ece2;
  --ink: #24211d;
  --muted: #514b42;
  --accent: #8b4d19;
  --accent-hover: #59300d;
  --card: rgba(250, 247, 240, .82);
  --line: rgba(36, 33, 29, .23);
  --backdrop: linear-gradient(100deg, rgba(241, 236, 226, .92), rgba(241, 236, 226, .67) 55%, rgba(241, 236, 226, .47));
  --footer: #e1d9cc;
  --footer-ink: #514b42;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--page);
  transition: background .25s ease, color .25s ease;
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 3rem 1.25rem;
}

.backdrop,
.backdrop::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.backdrop {
  background: url("assets/shelf.png") center / cover no-repeat;
  transform: scale(1.03);
}

.backdrop::after { background: var(--backdrop); transition: background .25s ease; }

.message-card {
  position: relative;
  width: min(100%, 650px);
  padding: clamp(1.75rem, 6vw, 4rem);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .46);
  backdrop-filter: blur(8px);
  transition: background .25s ease, border-color .25s ease;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.25rem;
  padding: .45rem .6rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 500 .68rem/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.theme-toggle:hover, .theme-toggle:focus-visible { background: var(--ink); color: var(--page); }
.theme-icon { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

.studio-logo {
  display: block;
  width: min(270px, 70%);
  height: auto;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .28));
}

.message-heading { display: flex; align-items: center; gap: .85rem; }

.chris-token {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0;
  font: 500 .75rem/1 "DM Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  max-width: 10ch;
  margin: 1.35rem 0 .8rem;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.intro { margin: 0 0 1.8rem; font-size: clamp(1.12rem, 2vw, 1.35rem); color: var(--muted); }

.booking-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}

.booking-link:hover, .booking-link:focus-visible { color: var(--accent-hover); }
.email { display: block; margin-top: .5rem; color: var(--muted); font: .78rem "DM Mono", monospace; overflow-wrap: anywhere; }
.signature { display: block; width: min(270px, 78%); height: auto; margin: 2rem 0 1.8rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .65rem; }

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .88rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.social-links a:hover, .social-links a:focus-visible { background: var(--ink); color: var(--page); }
.social-links svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.social-links .dot { fill: currentColor; stroke: none; }
footer { padding: 1rem; background: var(--footer); color: var(--footer-ink); font-size: .75rem; text-align: center; transition: background .25s ease, color .25s ease; }

@media (max-width: 480px) {
  .site-shell { padding: 1rem; }
  .message-card { padding: 4.25rem 1.75rem 1.75rem; }
  .studio-logo { margin-bottom: 1.75rem; }
  .theme-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
