/* DM Sans v17 (SIL Open Font License 1.1, assets/fonts/LICENSE-DM-Sans.txt), self hosted. Same faces Google Fonts served for
   wght 400, 500 and 700: one variable file per subset, so a visitor downloads at most two files. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/dm-sans-v17-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/dm-sans-v17-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/dm-sans-v17-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/dm-sans-v17-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/dm-sans-v17-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/dm-sans-v17-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f7f5f0;
  --panel: #edeae3;
  --card: #fff;
  --ink: #1c1c1e;
  --char: #3a3832;
  --gold: #c49a3c;
  --gold-ink: #7a5c14; /* gold dark enough for text on light backgrounds */
  --line: #e0ddd6;
  --muted: #5f5f5f;
  --error: #a3261a;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
/* Large screens: text and layout grow with the window, so the site is not a small strip in the middle of a wide
   monitor. Up to about 1600px wide nothing changes; a 3000px window gets text about a sixth larger and a wider page. */
html { font-size: clamp(1rem, .2vw + .8rem, 1.25rem); }
[hidden] { display: none !important; }
/* The footer sits at the bottom of the window on a short page, with no blank band under it. */
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.6rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
main { flex: 1; }
.wrap { width: min(max(76rem, 62vw), 100% - 2.5rem); margin-inline: auto; }
.brand img { width: 4.5rem; }
.page { padding: 3rem 0 4rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: .5rem 1rem; z-index: 2; }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; flex-wrap: wrap; }
.site-header nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: .5rem .9rem; letter-spacing: .04em; }
.site-header nav a:hover, .site-header nav a[aria-current] { background: var(--gold); }

.btn { display: inline-block; background: var(--char); color: #fff; padding: .7rem 1.3rem; border: 0; font: 500 .95rem var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #d9b257; color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; }

.hero { background: linear-gradient(rgb(28 28 30 / .72), rgb(28 28 30 / .72)), url(hero.jpg) center / cover var(--char); color: #fff; }
.hero > .wrap { padding: 5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); }
.hero p { max-width: 34rem; color: #e6d3a4; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.pillars { list-style: none; margin: 0 auto; padding: 1.5rem 0; border-top: 2px solid var(--gold); display: flex; gap: 3rem; flex-wrap: wrap; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #e6d3a4; }
.pillars strong { display: block; font: 700 1.25rem var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3.5rem 0; align-items: start; }
.split h2 { margin-top: 0; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.values li { border: 1px solid var(--char); border-left: 4px solid var(--gold); padding: .6rem .9rem; background: var(--card); }
.values strong { display: block; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card { background: var(--card); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-top: 0; }
.card h3 a { color: var(--gold-ink); text-decoration: none; }
.card .btn { margin-top: auto; align-self: start; }
.price { font-weight: 700; }
.lede { font-size: 1.15rem; margin-top: 0; }
/* Class page: details on the left, photo and booking box on the right; one column on a narrow screen, photo first. */
.class-cols { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.class-cols > div > h2:first-child { margin-top: 0; }
.lead-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 1.5rem; }
.meta, .fine { color: var(--muted); font-size: .9rem; }
.post { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }

#book { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 1.25rem; }
#book h2 { margin-top: 0; }
.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.sessions li { background: var(--card); border: 1px solid var(--line); padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sessions .when { font-weight: 700; }
.sessions .where { display: block; color: var(--muted); font-size: .9rem; }
form { display: grid; gap: .9rem; }
#book-form { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }
#book-form h3 { margin-top: 0; }
label { display: grid; gap: .25rem; font-weight: 500; }
input, select, textarea { font: inherit; padding: .55rem .65rem; border: 1px solid #8a877f; background: #fff; color: var(--ink); width: 100%; }
label.check { display: flex; gap: .6rem; align-items: start; font-weight: 400; }
label.check input { width: auto; margin-top: .35rem; }
.hp { position: absolute; left: -9999px; }
.error { color: var(--error); font-weight: 500; margin: 0; }
.error:empty { display: none; }
form .btn { justify-self: start; }

#admin .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.session { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.25rem; margin-top: 1.25rem; }
.session.off { opacity: .6; }
.session h3 { margin-top: 0; }
.session .tools { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.session form { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; margin-top: .75rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.btn.small { padding: .3rem .7rem; font-size: .85rem; }

.site-footer { background: var(--char); color: #e6d3a4; padding: 2rem 0; margin-top: 0; font-size: .9rem; }
.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.site-footer .creds { font-family: var(--serif); text-transform: uppercase; color: var(--gold); }
.site-footer a { color: #e6d3a4; }
.site-footer a:hover { color: #fff; }
.legal { margin: 0; }

@media (max-width: 900px) {
  .class-cols { grid-template-columns: 1fr; gap: 0; }
  .class-cols aside { order: -1; margin-bottom: 2rem; }
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillars { gap: 1.25rem 2rem; }
  .hero > .wrap { padding: 3rem 0 2.5rem; }
}
