/* Marie-Louise Hoilund-Carlsen — watercolours
 * Fonts: the brief asks for Brandon Grotesque (titles) and Garamond Premier Pro (text).
 * Both are commercial, so the self-hosted OFL fonts below stand in; if licensed
 * webfont files are added later, they take precedence via the font stacks. */

@font-face { font-family: "Josefin Sans"; src: url("../fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("../fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f2f2f2;          /* pale background */
  --paynes: #536878;         /* Payne's grey — text */
  --paynes-deep: #3e4f5c;
  --accent: #a5573a;         /* burnt sienna — active page, links */
  --accent-light: #f2bea4;   /* accent on the inverted (Payne's grey) menu */
  --rule: rgba(83, 104, 120, .25);
  --title: "Brandon Grotesque", "Josefin Sans", "Futura", system-ui, sans-serif;
  --text: "Garamond Premier Pro", "EB Garamond", Garamond, Georgia, serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--paynes);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--paynes-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, .title {
  font-family: var(--title);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--paynes-deep);
}
h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 .75em; }
h2 { font-size: 1.2rem; margin: 2.2em 0 .9em; }
h3 { font-size: .95rem; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paynes); color: var(--paper); padding: 8px 12px; z-index: 20; }

/* ------------------------------------------------------------------ header */
.site-header { padding: 40px 0 24px; text-align: center; }
.brand { text-decoration: none; color: var(--paynes-deep); display: inline-block; }
.brand .name { font-family: var(--title); font-size: clamp(1.25rem, 3.4vw, 1.9rem); letter-spacing: .22em; text-transform: uppercase; display: block; }
.brand .sub { font-style: italic; font-size: 1.05rem; color: var(--paynes); letter-spacing: .02em; }

.nav { margin-top: 22px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px 30px; flex-wrap: wrap; }
.nav li { position: relative; }
.nav a, .nav button {
  font-family: var(--title); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--paynes); text-decoration: none; background: none; border: 0; padding: 8px 2px; cursor: pointer;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav button:hover { color: var(--accent); }
.nav [aria-current="page"], .nav .is-active > button { color: var(--accent); border-bottom-color: var(--accent); }
.nav button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-3px) rotate(45deg); }

/* dropdown — colours inverted: Payne's grey ground, pale text, light accent */
.dropdown {
  list-style: none; margin: 0; padding: 10px 0; min-width: 210px;
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); z-index: 10;
  background: var(--paynes); text-align: left; box-shadow: 0 10px 30px rgba(30, 40, 50, .18);
  display: none;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { display: block; }
.dropdown a { display: block; color: var(--paper); padding: 9px 22px; border: 0; }
.dropdown a:hover { color: var(--accent-light); background: var(--paynes-deep); }
.dropdown a[aria-current="page"] { color: var(--accent-light); border: 0; box-shadow: inset 3px 0 0 var(--accent-light); }

.menu-toggle { display: none; }

@media (max-width: 760px) {
  .site-header { padding: 24px 0 12px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
    font-family: var(--title); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
    background: none; border: 1px solid var(--rule); color: var(--paynes); padding: 10px 18px; cursor: pointer;
  }
  .nav { display: none; margin-top: 12px; background: var(--paynes); padding: 8px 0; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav a, .nav button { color: var(--paper); display: block; width: 100%; padding: 12px 20px; border: 0; }
  .nav [aria-current="page"], .nav .is-active > button { color: var(--accent-light); border: 0; }
  .dropdown { position: static; transform: none; box-shadow: none; display: block; background: var(--paynes-deep); text-align: center; padding: 4px 0; }
  .dropdown a { font-size: .74rem; }
  .dropdown a[aria-current="page"] { box-shadow: none; }
}

/* ------------------------------------------------------------------- pages */
main { padding-bottom: 72px; }
.lede { max-width: 640px; margin: 0 auto 8px; text-align: center; font-size: 1.25rem; }
.page-head { text-align: center; margin: 24px auto 40px; max-width: 720px; }
.page-head p { margin: 0; }
.prose { max-width: 680px; margin: 0 auto; }
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }

.hero { margin: 8px auto 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero img { width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 40px rgba(62,79,92,.14); }
.hero p { margin: 0 0 1em; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 28px; } }

.button {
  display: inline-block; font-family: var(--title); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--paper); background: var(--paynes); padding: 13px 24px; border: 0; cursor: pointer;
}
.button:hover { background: var(--accent); color: #fff; }
.button.ghost { background: none; color: var(--paynes); box-shadow: inset 0 0 0 1px var(--paynes); }
.button.ghost:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.notice { text-align: center; font-style: italic; margin: 0 auto 36px; max-width: 640px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 56px 40px; align-items: end; }
.work { margin: 0; }
.work button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.work button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.work .frame { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; }
.work img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 26px rgba(62,79,92,.13); transition: transform .3s ease; }
.work button:hover img { transform: translateY(-3px); }
.work figcaption { text-align: center; margin-top: 18px; }
.work .meta { font-size: 1rem; margin-top: 4px; }
.work .price { color: var(--accent); }

.section-link { text-align: center; margin-top: 48px; }

/* prices table */
.prices { width: 100%; max-width: 420px; margin: 0 auto 1.4em; border-collapse: collapse; }
.prices th, .prices td { padding: 8px 4px; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.prices th { font-family: var(--title); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.prices td:last-child, .prices th:last-child { text-align: right; }

/* about */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.about .portrait img { width: 100%; }
.about .portrait figcaption { font-style: italic; font-size: .95rem; margin-top: 8px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about .portrait { max-width: 320px; margin: 0 auto; } }
.beliefs { border-left: 2px solid var(--accent); padding-left: 24px; margin: 1.4em 0 2em; }
.beliefs h2 { margin-top: 0; }

/* contact form */
.contact { max-width: 620px; margin: 0 auto; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--title); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--paynes-deep); background: #fafafa;
  border: 1px solid var(--rule); border-radius: 0; padding: 10px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-style: italic; min-height: 1.6em; }

/* lightbox */
.lightbox { border: 0; padding: 0; max-width: min(1100px, 94vw); width: 100%; background: var(--paper); color: var(--paynes); }
.lightbox::backdrop { background: rgba(40, 52, 61, .82); }
.lightbox .lb-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); }
.lightbox .lb-img { background: #f9f9f9; display: flex; align-items: center; justify-content: center; padding: 28px; }
.lightbox .lb-img img { max-height: 78vh; width: auto; }
.lightbox .lb-text { padding: 40px 32px; align-self: center; }
.lightbox .lb-text p { margin: .5em 0; }
.lightbox .lb-text .price { color: var(--accent); font-size: 1.25rem; }
.lightbox .lb-small { font-size: .95rem; font-style: italic; }
.lightbox .lb-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--paynes); cursor: pointer; padding: 6px 10px; }
@media (max-width: 760px) {
  .lightbox .lb-inner { grid-template-columns: 1fr; }
  .lightbox .lb-img { padding: 16px; }
  .lightbox .lb-img img { max-height: 58vh; }
  .lightbox .lb-text { padding: 20px 24px 28px; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 40px; font-size: 1rem; text-align: center; }
.site-footer p { margin: .3em 0; }
.site-footer .small { font-size: .9rem; }
.site-footer a { color: var(--paynes); }
.site-footer a:hover { color: var(--accent); }
