:root {
  color-scheme: light;
  --paper: #f7f3eb;
  --ink: #162335;
  --muted: #455263;
  --line: #d7cab9;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 7rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, sans-serif;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.7rem); line-height: 1.08; }

.shell { width: min(73rem, calc(100% - 3rem)); margin-inline: auto; }

.skip-link {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 2;
  padding: .6rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  min-height: 4.75rem;
}

.wordmark { display: block; flex: none; width: clamp(10rem, 24vw, 13rem); padding-block: .5rem; }
.wordmark img { display: block; width: 100%; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(.8rem, 3vw, 2rem); }
nav a { padding-block: .45rem; text-decoration-color: transparent; text-underline-offset: .25em; }
nav a:hover { text-decoration-color: currentColor; }

.hero-section {
  --hero-accent: #f0b49b;
  background: var(--ink);
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 8vw, 7rem);
}

.eyebrow {
  margin-bottom: 1.2rem;
  color: var(--hero-accent);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 5.8vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero h1 em { color: var(--hero-accent); }
.intro { max-width: 38ch; margin-block: 1.55rem 1.8rem; font-size: 1.15rem; }

.button {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: .25rem;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: #31455a; }
.button:focus-visible { outline-color: var(--ink); }

.hero .button { background: var(--paper); color: var(--ink); }
.hero .button:hover { background: var(--hero-accent); }
.hero .button:focus-visible { outline-color: var(--paper); }

.portrait {
  width: 100%;
  max-width: 27.5rem;
  padding: .55rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: .7rem .7rem 0 #e7d9c9;
}

.portrait img { display: block; width: 100%; height: auto; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1.4rem clamp(2rem, 7vw, 6rem);
  padding-block: clamp(2.6rem, 6vw, 5.5rem);
}

.about, .services { border-top: 1px solid var(--line); }
.body-copy { max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
.body-copy p + p { margin-top: 1rem; }

.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li + li {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.service-list h3 { margin-bottom: .4rem; font-size: 1.5rem; line-height: 1.2; }
.service-list p { max-width: 60ch; color: var(--muted); }

.demo-section {
  padding-block: clamp(2.6rem, 6vw, 5.5rem);
  background: var(--ink);
  color: #fff;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.demo {
  display: grid;
  gap: .85rem;
  padding: clamp(.8rem, 2.5vw, 1.4rem);
  border: 1px solid #6a7786;
  border-radius: .35rem;
  background: #233248;
}

.demo h3 { font-size: 1.45rem; line-height: 1.2; }
audio { display: block; width: 100%; }
audio:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: .85rem; }
.footer-inner small { color: var(--muted); }

@media (max-width: 55rem) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo { max-width: 38rem; }
}

@media (max-width: 44rem) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: calc(100% - .7rem); }
}

@media (max-width: 28rem) {
  html { scroll-padding-top: 10.5rem; }
  .header-inner { flex-wrap: wrap; justify-content: flex-start; padding-block: .8rem; }
  .header-inner nav { width: 100%; }
  .shell { width: calc(100% - 2rem); }
}
