@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f7f3e9;
  --forest: #102c29;
  --deep: #0d2424;
  --ink: #192c27;
  --muted: #46544b;
  --gold: #e8b877;
  --rule: #d9d2c3;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

a { color: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, p, dl, dd { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }

:focus-visible {
  outline: 3px solid #b16827;
  outline-offset: 5px;
}

.shell {
  width: min(100% - 7rem, 1280px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: .6rem;
  left: .8rem;
  z-index: 5;
  padding: .6rem 1rem;
  transform: translateY(-160%);
  background: var(--paper);
}

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

.header {
  background: var(--deep);
  color: var(--paper);
  border-bottom: 1px solid #40504a;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.1vw, 2.8rem);
}

nav a {
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

nav a:hover { color: var(--gold); }

.nav-contact {
  display: inline-flex;
  align-items: center;
  min-height: 41px;
  gap: .7rem;
  padding: .33rem .85rem;
  border: 1px solid #68766c;
}

.hero {
  background: var(--forest);
  color: var(--paper);
  border-bottom: 1px solid #b28956;
}

.hero-inner {
  min-height: min(610px, 55vw);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3.25rem);
  padding-block: clamp(2.3rem, 5vw, 4.3rem);
}

.eyebrow {
  color: #775020;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero .eyebrow, .book .eyebrow { color: var(--gold); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.025em;
}

h1 {
  margin-top: 1.15rem;
  font-size: clamp(5rem, 9.1vw, 9.2rem);
  line-height: .79;
}

h2 {
  font-size: clamp(3.3rem, 6.1vw, 6rem);
  line-height: .93;
}

h2 em { font-weight: inherit; }

.hero-description {
  max-width: 31ch;
  margin-top: 1.5rem;
  color: #dddcd0;
  font-size: clamp(1.04rem, 1.6vw, 1.25rem);
}

.hero-actions, .book-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1.35rem;
  margin-top: 1.65rem;
}

.button, .text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .65rem;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
}

.button {
  min-height: 48px;
  padding: .8rem 1.1rem;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.arrow-ne {
  position: relative;
  flex: none;
  width: .65em;
  height: .65em;
}

.arrow-ne::before {
  content: '';
  position: absolute;
  inset: 0 0 auto auto;
  width: 68%;
  height: 68%;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.arrow-ne::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -12%;
  width: 123%;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
}

.button-gold { background: var(--gold); color: #172721; }
.button-gold:hover { background: #f4cf9b; }
.button-green { background: var(--forest); color: var(--paper); }
.button-green:hover { background: #25453e; }

.text-link {
  min-height: 40px;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}

.text-link:hover { text-decoration-thickness: 2px; }

.light-link { color: var(--paper); }

.hero-visual {
  position: relative;
  border: 1px solid #a78a60;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid #907751;
  pointer-events: none;
}

.hero-visual img {
  aspect-ratio: 1.27;
  object-fit: cover;
  object-position: 47% center;
}

.about { padding-block: clamp(4rem, 9vw, 8rem); }

.section-intro {
  display: grid;
  gap: .85rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
}

.about-body {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
  margin-top: 2rem;
}

.about-photo {
  max-width: 365px;
  padding: .55rem;
  border: 1px solid var(--rule);
}

.about-photo img {
  aspect-ratio: 1.04;
  object-fit: cover;
  object-position: center 53%;
}

.about-copy, .teaching-copy, .book-copy {
  max-width: 58ch;
  color: var(--muted);
}

.lead {
  color: var(--ink);
  font-size: clamp(1.11rem, 1.55vw, 1.32rem);
  line-height: 1.5;
}

.about-copy > * + *, .book-copy > * + * { margin-top: .95rem; }
.about-copy .text-link { color: var(--ink); }

.teaching {
  background: #e7ebdf;
  border-block: 1px solid #d2dbcc;
}

.teaching-inner, .contact {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  gap: clamp(1.6rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.teaching h2, .contact h2 { margin-top: .9rem; }

.disciplines { margin-block: 1.25rem; }

.disciplines div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr);
  gap: .75rem;
  padding-block: .72rem;
  border-top: 1px solid #becabb;
}

.disciplines div:last-child { border-bottom: 1px solid #becabb; }

.disciplines dt { color: var(--ink); font-weight: 700; }
.location { margin-top: .85rem; font-size: .81rem; }

.gallery { padding-block: clamp(3.5rem, 7vw, 6.5rem); }

.gallery-grid {
  display: grid;
  grid-template-areas:
    "wide wide wide tall"
    "theorbo guitar dali tall";
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr);
  grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(.55rem, 1.2vw, 1rem);
  aspect-ratio: 2;
  margin-top: clamp(1.3rem, 3vw, 2.4rem);
}

.gallery-photo {
  position: relative;
  display: block;
  min-height: 0;
  background: var(--forest);
}

.gallery-photo img {
  height: 100%;
  object-fit: cover;
}

.gallery-wide { grid-area: wide; }
.gallery-wide img { object-position: center 33%; }
.gallery-tall { grid-area: tall; }
.gallery-theorbo { grid-area: theorbo; }
.gallery-theorbo img { object-position: 28% center; }
.gallery-guitar { grid-area: guitar; }
.gallery-guitar img { object-position: center 28%; }
.gallery-dali { grid-area: dali; }

.gallery-caption, .gallery-expand {
  position: absolute;
  bottom: .5rem;
  display: grid;
  height: 2.25rem;
  place-items: center;
  background: var(--deep);
  color: var(--paper);
}

.gallery-caption {
  left: .5rem;
  padding-inline: .7rem;
  font-size: .85rem;
  font-weight: 700;
}

.gallery-expand {
  right: .5rem;
  width: 2.25rem;
}

.gallery-photo:hover .gallery-expand,
.gallery-photo:focus-visible .gallery-expand {
  background: var(--gold);
  color: var(--deep);
}

.book {
  background: #192f33;
  color: var(--paper);
}

.book-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.book-art {
  display: grid;
  min-height: 410px;
  place-items: center;
  padding: 2.2rem;
  background: radial-gradient(ellipse at 48% 45%, #506568, #2e474d 70%);
  border: 1px solid #627273;
}

.book-art img {
  width: min(100%, 248px);
  box-shadow: 12px 14px 28px #07161780;
}

.book-copy { color: #dce4de; }
.book-copy h2, .book-copy .lead { color: var(--paper); }
.book-copy .book-actions { margin-top: 1.35rem; }
.contact { align-items: center; }
.contact p:not(.eyebrow) { max-width: 44ch; color: var(--muted); }
.contact-email { margin-top: .55rem; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 83px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 1000px) {
  .shell { width: calc(100% - 4.5rem); }
  h1 { font-size: clamp(4.6rem, 10vw, 7.3rem); }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 0; align-items: start; flex-direction: column; gap: .3rem; padding-block: .8rem .45rem; }
  nav { width: 100%; justify-content: space-between; gap: .45rem; }
  nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-contact { padding: 0; border: 0; gap: .3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.55rem 2.8rem; }
  h1 { font-size: clamp(4.65rem, 16.5vw, 7rem); }
  .hero-description { margin-top: 1.2rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-visual { margin-right: 8px; }
  .hero-visual::after { inset: 8px -8px -8px 8px; }
  .hero-visual img { aspect-ratio: 1.45; }
  .about-body, .teaching-inner, .book-inner, .contact { grid-template-columns: 1fr; }
  .about-photo { max-width: 385px; }
  .book-copy { grid-row: 1; }
  .book-art { min-height: 0; }
  .book-art img { width: min(100%, 205px); }
}

@media (max-width: 365px) {
  .shell { width: calc(100% - 2rem); }
  h1 { font-size: clamp(3.8rem, 18vw, 4.65rem); }
  nav { gap: .3rem; }
  nav a { font-size: .81rem; }
  .nav-contact .arrow-ne { display: none; }
  .footer .wordmark { font-size: 1.55rem; }
}

@media (max-width: 580px) {
  .gallery-grid {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
  }

  .gallery-photo img { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
