/* Viktoria Juhasz — site styles

   Layout: a centred wordmark and tracked navigation above one calm column
   (max 1120px) for images and a 66-character measure for text. Thin
   manuscript-style rules mark edges; gold is kept to small marks only.

   Type: EB Garamond throughout, served from this site (assets/fonts, SIL Open
   Font License). Regular for headings and text, medium for navigation,
   buttons and labels. */

/* ---------- Fonts (self-hosted, no Google Fonts request) ---------- */
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-normal.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: "EB Garamond";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/eb-garamond-latin-500-normal.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: "EB Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/eb-garamond-latin-600-normal.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: "EB Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-italic.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: "EB Garamond";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-400-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f9f7f3;          /* RGB 234 227 216 at 30% opacity over white, as briefed */
  --ink: #1f1b17;         /* text */
  --ink-2: #6d6459;       /* secondary text */
  --muted: #7a7064;       /* quiet text (placeholders, notes); 4.5:1 on --bg */
  --line: #d9d2c6;        /* hairlines */
  --line-strong: #b8ad9b; /* decorative borders */
  --control: #8f8475;     /* form field borders; 3:1 on --bg */
  --panel: #fdfcfa;       /* inputs and placeholder frames */
  --gold: #a3873f;        /* shell gold: short rules, dots, focus rings */
  --ok: #5f7d58;          /* places available */
  --full: #a2503e;        /* fully booked, errors */
  --past: #a79e92;        /* past classes (decorative only, too light for text) */
  --overlay: rgba(31, 27, 23, .94);
  --on-overlay: #f9f7f3;
  --font: "EB Garamond", Garamond, "Adobe Garamond Pro", Georgia, "Times New Roman", serif;
  --max: 1120px;
  --measure: 66ch;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.55;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
strong, b { font-weight: 600; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 50%; top: .5rem; transform: translate(-50%, -300%);
  background: var(--ink); color: var(--bg); padding: .5rem 1rem; text-decoration: none;
  font-size: .95rem; z-index: 100;
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- Header: wordmark and navigation ---------- */
.site-header { text-align: center; padding-block: 2.75rem 0; }
.wordmark {
  display: inline-block; color: inherit; text-decoration: none;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); font-weight: 400;
  letter-spacing: .05em; line-height: 1.1;
}
.site-nav { margin-top: 1.35rem; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.9rem;
}
.site-nav a {
  display: inline-block; padding-block: .35rem .25rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-nav a:hover { border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
@media (max-width: 480px) {
  .site-header { padding-block: 2rem 0; }
  /* Capping the width makes the five items break 3 + 2 rather than 4 + 1 on phones */
  .site-nav ul { gap: .3rem 1.2rem; max-width: 17rem; margin-inline: auto; }
  .site-nav a { letter-spacing: .2em; }
}

/* ---------- Main column ---------- */
main { display: block; max-width: var(--max); margin: 0 auto; padding-block: 2.75rem 4.5rem; }
.page-title {
  margin: 0; text-align: center; font-weight: 400; letter-spacing: .03em;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1.15;
}
.page-title::after {
  content: ""; display: block; width: 2.5rem; height: 1px;
  background: var(--gold); margin: 1.2rem auto 0;
}
.lede {
  max-width: 44rem; margin: 1.75rem auto 0; text-align: center;
  font-size: 1.25rem; color: var(--ink-2); text-wrap: balance;
}

/* ---------- Home ---------- */
.home-hero { margin: 0; }
.home-hero img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1489 / 561; object-fit: cover;
}
@media (max-width: 640px) { .home-hero img { aspect-ratio: 4 / 3; } }
.tagline {
  max-width: var(--measure); margin: 2.75rem auto 0; text-align: center;
  font-style: italic; font-size: 1.4rem; color: var(--ink-2); text-wrap: balance;
}
.tiles {
  max-width: 960px; margin: 3.25rem auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2.5rem 2.25rem;
}
.tile { display: grid; gap: 1rem; align-content: start; color: inherit; text-decoration: none; min-width: 0; }
.tile img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: opacity .3s;
}
.tile-art img { object-position: 82% 50%; }
.tile:hover img { opacity: .9; }
.tile h2 { margin: 0; font-size: 1.55rem; letter-spacing: .02em; line-height: 1.2; }
.tile p { margin: -.5rem 0 0; font-size: 1.05rem; color: var(--ink-2); }
.tile .more {
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong); justify-self: start; padding-bottom: .15rem;
  transition: border-color .25s;
}
.tile:hover .more { border-bottom-color: var(--ink); }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem 4rem;
  align-items: start; margin-top: 3.25rem;
}
.about figure { margin: 0; max-width: 360px; }
.about figure img { display: block; width: 100%; }
.about figcaption { margin-top: .7rem; font-size: 1rem; font-style: italic; color: var(--ink-2); }
.about .text { max-width: var(--measure); min-width: 0; font-size: 1.2rem; }
.about .text p { margin: 0 0 1.25em; }
.about .text p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about figure { max-width: 300px; }
}

/* ---------- Classes ---------- */
.classes { max-width: 920px; margin: 3.25rem auto 0; }
.classes + .classes { margin-top: 4rem; }
.section-label {
  margin: 0; padding-bottom: .8rem; border-bottom: 1px solid var(--line);
  font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2);
}
.class {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.25rem 3rem;
  padding-block: 2.25rem 2.5rem; border-bottom: 1px solid var(--line);
}
.class-when { font-size: 1.45rem; line-height: 1.25; }
.class-when small { display: block; margin-top: .35rem; font-size: 1.05rem; font-style: italic; color: var(--ink-2); }
.class-body { min-width: 0; }
.class h3 { margin: 0; font-size: 1.6rem; line-height: 1.25; }
.status {
  display: inline-flex; align-items: center; gap: .55rem; margin: .75rem 0 0;
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--past); flex: none; }
.class[data-status="available"] .status::before { background: var(--ok); }
.class[data-status="full"] .status { color: var(--full); }
.class[data-status="full"] .status::before { background: var(--full); }
.class.is-past { opacity: .55; filter: grayscale(1); }
.class.is-past .status::before { background: var(--past); }
.meta {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem 1.5rem;
  margin: 1.4rem 0 0; font-size: 1.08rem;
}
.meta dt { color: var(--ink-2); font-style: italic; }
.meta dd { margin: 0; }
.class .desc { max-width: var(--measure); margin-top: 1.4rem; }
.class .desc p { margin: 0 0 1em; }
.class .book { margin-top: 1.6rem; }
.empty-note, .booking-note { max-width: 920px; margin: 2.5rem auto 0; text-align: center; color: var(--ink-2); }
.booking-note a { color: var(--ink); }
@media (max-width: 640px) {
  .class { grid-template-columns: 1fr; gap: .9rem; }
  .class-when { font-size: 1.25rem; }
  .class-when small { display: inline; margin-left: .6rem; }
  .meta { grid-template-columns: 1fr; gap: .15rem; }
  .meta dt { margin-top: .5rem; }
}

/* ---------- Artworks ---------- */
.gallery {
  margin: 3.25rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2.5rem 1.75rem;
}
.gallery figure { margin: 0; display: grid; gap: .75rem; align-content: start; min-width: 0; }
.gallery a.zoom { display: block; cursor: zoom-in; }
/* Works are shown whole (never cropped) inside a uniform frame */
.gallery a.zoom, .gallery .frame {
  aspect-ratio: 4 / 5; background: var(--panel); border: 1px solid var(--line);
}
.gallery a.zoom img {
  display: block; width: 100%; height: 100%; object-fit: contain; padding: 1rem;
  transition: opacity .3s;
}
.gallery a.zoom:hover img { opacity: .9; }
.gallery .frame {
  display: grid; place-items: center;
  font-style: italic; color: var(--muted); font-size: 1rem;
}
.gallery figcaption { font-size: 1rem; color: var(--ink-2); }
.gallery figcaption.muted { color: var(--muted); font-style: italic; }

/* Lightbox (native <dialog>: focus is kept inside, Escape closes) */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; border: 0; background: var(--overlay); color: var(--on-overlay);
  padding: calc(3.75rem + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
           calc(1.5rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 1rem; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: .9rem; justify-items: center; max-width: 100%; max-height: 100%; min-height: 0; }
.lightbox img { display: block; max-width: min(100%, 1200px); max-height: 76vh; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: var(--on-overlay); font-size: 1.05rem; font-style: italic; text-align: center; }
.lightbox button {
  background: none; border: 0; color: var(--on-overlay); cursor: pointer; padding: .5rem .75rem;
  font: inherit; font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.lightbox button:hover { text-decoration: underline; text-underline-offset: .3em; }
.lightbox .lb-close {
  position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px));
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
}
.lightbox .lb-nav { display: flex; gap: 2rem; justify-content: center; }

/* ---------- Contact ---------- */
.contact { max-width: 40rem; margin: 3rem auto 0; text-align: center; }
.contact .name { margin: 0; font-size: 1.7rem; letter-spacing: .02em; }
.contact .lede { margin-top: .9rem; }
.contact-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.4rem; justify-items: center; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; font-size: 1.3rem; min-width: 0; }
.contact-list a {
  display: inline-flex; align-items: center; gap: .75rem; text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: .1rem; transition: border-color .25s; overflow-wrap: anywhere;
}
.contact-list a:hover { border-bottom-color: var(--ink); }
.icon { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.copy {
  font: inherit; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  background: none; border: 1px solid var(--control); color: var(--ink-2);
  padding: .35rem .7rem .3rem; cursor: pointer; transition: border-color .25s, color .25s;
}
.copy:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Text pages (privacy notice, confirmations, 404) ---------- */
.prose { max-width: var(--measure); margin: 3rem auto 0; font-size: 1.15rem; }
.prose h2 { margin: 2.4rem 0 .6rem; font-size: 1.45rem; line-height: 1.25; }
.prose h3 { margin: 1.6rem 0 .4rem; font-size: 1.2rem; font-weight: 500; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose .updated { color: var(--ink-2); font-style: italic; }
.todo { background: #f3e6b8; color: var(--ink); padding: 0 .2em; }
.simple { max-width: 40rem; margin: 3rem auto 0; text-align: center; }
.simple p { margin: 0 0 1em; }
.simple .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.simple .fine { margin-top: 2rem; font-size: 1rem; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
  color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0;
  padding: .85rem 1.5rem .75rem; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--bg); }
.btn[disabled] { cursor: progress; opacity: .7; }

/* ---------- Footer: sign-up and contact ---------- */
.site-footer { max-width: var(--max); margin: 0 auto; padding-block: 3.5rem 2.75rem; border-top: 1px solid var(--line); }
.signup {
  max-width: 46rem; margin: 0 auto; padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--line-strong); outline: 1px solid var(--line); outline-offset: 4px;
}
.signup h2 { margin: 0 0 .4rem; font-size: 1.65rem; letter-spacing: .01em; }
.signup > p { margin: 0 0 1.4rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.signup input[type="email"] {
  flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1.1rem; color: var(--ink);
  padding: .7rem 1rem; border: 1px solid var(--control); border-radius: 0; background: var(--panel);
}
.signup input::placeholder { color: var(--muted); opacity: 1; }
/* Bot trap: kept off-screen rather than display:none, so simple bots still see it */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:not(:empty) { margin-top: .9rem; }
.signup-error { margin: .9rem 0 0; color: var(--full); font-size: 1.05rem; }
.signup .fine { margin: 1.1rem 0 0; font-size: 1rem; color: var(--ink-2); }
.signup .thanks { margin: 0; font-size: 1.2rem; }
.signup .thanks:focus { outline: none; }
@media (max-width: 640px) { .signup { padding: 1.5rem 1.25rem 1.25rem; } }

.footer-meta { margin-top: 3rem; display: grid; gap: 1.1rem; justify-items: center; text-align: center; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.05rem; overflow-wrap: anywhere; }
.footer-contact a:hover { text-decoration: underline; }
.copyright { margin: 0; font-size: .95rem; letter-spacing: .03em; color: var(--ink-2); }
.copyright a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
