@font-face {
  font-family: "Instrument Serif";
  src: url("./media/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./media/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #171715;
  --secondary: #514a3e;
  --paper: #f9f5ea;
  --sand: #eee7d8;
  --white: #fffaf0;
  --gold: #f6c849;
  --line: #bdb4a2;
  --edge: clamp(1rem, 5vw, 5.5rem);
  --heading: "Instrument Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 400; line-height: .98; }
h2 { font-size: clamp(3rem, 1rem + 5vw, 5.5rem); }
h1 em, h2 em { font-weight: 400; }
:focus-visible { outline: 3px solid #926000; outline-offset: 5px; }
[id] { scroll-margin-top: 6rem; }
.wrap { width: min(100% - var(--edge) * 2, 78rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.skip { position: fixed; z-index: 20; inset-block-start: .5rem; inset-inline-start: .5rem; padding: .75rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.top { position: sticky; z-index: 10; top: 0; background: var(--ink); color: var(--white); }
.top-inner { min-height: 4.75rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.logo { width: 4.6rem; min-height: 3.25rem; display: grid; place-items: center; }
.logo img { width: 4.2rem; height: auto; }
.menu { display: flex; align-items: center; gap: clamp(1rem, 3.2vw, 3rem); }
.menu a, .footer-links a, .footer-name { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.menu a:hover, .footer-links a:hover, .footer-name:hover { text-decoration: underline; text-underline-offset: .3em; }
.top :focus-visible, .hero :focus-visible, .contact :focus-visible, footer :focus-visible, .gallery-card:focus-visible { outline-color: var(--gold); }
.menu-button { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: 3.25rem; padding: .62em 1.25em; border: 1px solid transparent; border-radius: 3rem; color: inherit; text-align: center; text-decoration: none; font-weight: 650; font-size: .9rem; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button span { font-size: 1.1em; }
.button-header { justify-self: end; min-height: 2.75rem; border-color: #a49c86; }
.button-header:hover, .button-outline:hover { background-color: var(--white); border-color: var(--white); color: var(--ink); }
.button-primary { background-color: var(--gold); color: var(--ink); }
.button-primary:hover { background-color: #ffdf78; }
.button-outline { border-color: #cfc5b5; color: var(--white); }

.hero { position: relative; isolation: isolate; min-height: calc(100svh - 4.75rem); display: grid; background-color: var(--ink); color: var(--white); }
.hero-media, .hero-media::after { position: absolute; inset: 0 0 auto; width: 100%; }
.hero-media { z-index: -1; height: min(87%, 48rem); }
.hero-media::after { content: ""; height: 100%; background: linear-gradient(180deg, #17171533, transparent 22%, transparent 48%, var(--ink) 99%), linear-gradient(90deg, #17171566, transparent 72%); }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; padding-block: 2rem clamp(2rem, 4vw, 3.5rem); gap: clamp(7rem, 26svh, 15rem); }
.location { display: flex; align-items: center; gap: .6rem; width: fit-content; padding: .3rem .65rem; color: var(--white); background: #171715d9; font-weight: 600; font-size: .85rem; }
.location span { width: .4rem; height: .4rem; flex: 0 0 .4rem; background: var(--gold); border-radius: 50%; }
.hero-copy { max-width: 51rem; animation: hero-enter .52s ease-out both; }
h1 { font-size: clamp(4rem, 1.8rem + 4.9vw, 6.35rem); letter-spacing: -.016em; }
h1 em { color: var(--gold); }
.hero-copy p { margin-top: .85rem; max-width: 54ch; font-size: clamp(1rem, 1.6vw, 1.16rem); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.55rem; }
@keyframes hero-enter { from { transform: translateY(10px); opacity: .9; } }

.intro { display: grid; grid-template-columns: 1fr 2.1fr; gap: 1.75rem; align-items: start; }
.side-label { border-top: 2px solid #8c5b00; padding-top: .65rem; width: fit-content; color: var(--secondary); font-size: .9rem; font-weight: 650; }
.intro h2 { max-width: 16ch; }
.intro em { color: #785007; }
.intro div > p { max-width: 54ch; margin-top: 1.35rem; color: var(--secondary); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.showcase { background: var(--sand); }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; text-underline-offset: .3em; font-weight: 650; }
.text-link:hover { text-decoration-thickness: 2px; }
.gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: .75rem; }
.gallery-card { position: relative; isolation: isolate; min-height: clamp(19rem, 34vw, 31rem); overflow: hidden; display: flex; align-items: end; background: #27231c; color: var(--white); text-decoration: none; }
.gallery-card img, .gallery-card::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-card img { z-index: -2; object-fit: cover; transition: transform .25s ease; }
.gallery-card::before { z-index: -1; content: ""; background: linear-gradient(0deg, #17130dea, #17130d12 63%); }
.gallery-card:hover img { transform: scale(1.025); }
.coral img { object-position: 51% center; }
.gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: clamp(1rem, 3vw, 2rem); font: clamp(1.85rem, 3.3vw, 3rem)/1 var(--heading); }
.gallery-caption small { display: block; margin-top: .4rem; font: .84rem/1.5 system-ui, sans-serif; }
.gallery-arrow { display: grid; flex: 0 0 2.75rem; min-height: 2.75rem; place-items: center; border: 1px solid #cfc5b5; border-radius: 50%; font: 1rem system-ui, sans-serif; }

.lessons { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(1.4rem, 6vw, 6rem); }
.lesson-intro p { margin-top: .9rem; color: var(--secondary); max-width: 33ch; }
.lesson-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.lesson-list li { border-bottom: 1px solid var(--line); }
.lesson-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; padding-block: .9rem; text-decoration: none; }
.lesson-list a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .13em; }
.lesson-list strong { display: block; font: clamp(1.9rem, 3vw, 2.7rem)/1.02 var(--heading); }
.lesson-list strong + span { display: block; margin-top: .28rem; color: var(--secondary); font-size: .9rem; }
.lesson-arrow { display: grid; flex: 0 0 2.75rem; min-height: 2.75rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.lesson-list a:hover .lesson-arrow { background: var(--gold); border-color: var(--gold); }

.contact { background: #2a261d; color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 2rem; }
.contact h2 { max-width: 13ch; }
.contact em { color: var(--gold); }
.contact p { margin-block: 1rem 1.35rem; max-width: 37ch; }
.contact-details { justify-self: end; width: min(100%, 24rem); padding-top: 1.25rem; border-top: 1px solid #8e826d; }
.contact-details address { font-style: normal; }
.telephone { display: flex; align-items: center; width: fit-content; min-height: 2.75rem; text-underline-offset: .2em; }
footer { background: var(--ink); color: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.1rem; }
.footer-name { font-weight: 650; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

@media (max-width: 48rem) {
  .top-inner { position: relative; min-height: 4.25rem; grid-template-columns: auto 1fr auto; gap: .5rem 1rem; }
  .js .menu-button { display: inline-flex; align-self: center; justify-self: end; gap: .52rem; align-items: center; min-height: 2.75rem; padding-inline: .2rem; border: 0; background: none; color: inherit; cursor: pointer; }
  .menu-mark { width: 1rem; height: .65rem; border-block: 1px solid; }
  .menu-button[aria-expanded="true"] .menu-mark { border: 0; height: 1rem; background: linear-gradient(45deg, transparent 46%, currentColor 47%, currentColor 53%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 47%, currentColor 53%, transparent 54%); }
  .menu { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; gap: 0 1rem; }
  .js .menu { display: none; }
  .js .menu[data-open] { display: grid; position: absolute; top: calc(100% - 1px); left: calc(-1 * var(--edge)); right: calc(-1 * var(--edge)); padding: .5rem var(--edge) 1rem; background: var(--ink); border-top: 1px solid #615949; }
  .menu a { padding: 0 .2rem; }
  .button-header { grid-column: 3; min-width: 0; padding-inline: .8em; }
  .hero { min-height: calc(100svh - 4.25rem); }
  .hero-inner { padding-block: 1.45rem 2rem; gap: clamp(9rem, 42svh, 21rem); }
  .hero-media { height: min(76%, 38rem); }
  .hero-image { object-position: 53% center; }
  .hero-media::after { background: linear-gradient(180deg, #17171526, transparent 20%, transparent 49%, #171715b3 79%, var(--ink) 99%); }
  h1 { font-size: clamp(2.65rem, .5rem + 11vw, 4.35rem); }
  .hero-copy p { margin-top: .7rem; max-width: 36ch; }
  .actions { gap: .5rem; margin-top: 1.05rem; }
  .actions .button { min-height: 3rem; padding-inline: .78em; }
  .intro, .lessons, .contact-inner { grid-template-columns: 1fr; }
  .contact-details { justify-self: start; }
}
@media (max-width: 36rem) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-card { min-height: max(14.75rem, 62vw); }
  .gallery-card.coral { min-height: max(17rem, 67vw); }
  .section-heading { gap: .25rem; margin-bottom: 1rem; }
  .footer-inner { gap: .1rem; }
}
@media (max-width: 22rem) {
  .top-inner { gap: .3rem .5rem; }
  .button { padding-inline: .78em; font-size: .85rem; }
  .actions { gap: .45rem; }
  .hero-copy p { max-width: none; }
  .location { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
