/* Waters Edge Gallery & Framery — site stylesheet
   Palette comes from the logo and the original site notes:
   logo indigo #262262, harbor blue #597090, gold #97834D, mat tan #E3D4BA */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  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: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #262262;
  --text: #2a2b3d;
  --muted: #565a6e;
  --harbor: #597090;
  --harbor-deep: #3f5675;
  --gold: #97834d;
  --gold-text: #6f5f2e;
  --mat: #e3d4ba;
  --paper: #ffffff;
  --wash: #f2f4f8;
  --rule: #cdd3de;

  --sans: "Jost", "Futura", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --page: 1080px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--harbor-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--harbor); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  font-family: var(--sans); font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { padding-block: 22px 0; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px 36px; flex-wrap: wrap;
}
.brand { display: block; line-height: 0; flex: none; }
.brand img { width: clamp(168px, 22vw, 230px); height: auto; }

.nav ul { display: flex; flex-wrap: wrap; gap: 4px 30px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 0 6px;
  font-family: var(--sans); font-size: 1.1rem; font-weight: 500; letter-spacing: .01em;
  color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--harbor); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* The logo's thin-over-thick double line, reused as the site's divider */
.rule {
  height: 7px; margin: 0; border: 0;
  border-top: 1px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 3px no-repeat;
}
.site-header .rule { margin-top: 20px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--sans); color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.012em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); letter-spacing: -.008em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; max-width: 64ch; }
h2 + p, h3 + p { margin-top: 12px; }
.lede { font-size: 1.28rem; line-height: 1.6; color: var(--text); }
.small { font-size: .98rem; }
.sans { font-family: var(--sans); }

/* ---------- Framed pictures: the one thing that is distinctive ---------- */
.frame { margin: 0; }
.frame .mat {
  display: block; background: var(--mat);
  padding: clamp(9px, 1.6vw, 15px);
  border: 2px solid var(--ink);
  line-height: 0;
}
.frame .mat img {
  display: block; width: 100%; height: auto;
  outline: 1px solid rgba(38, 34, 98, .45); outline-offset: 0;
  background: #fff;
}
.frame figcaption {
  font-family: var(--sans); font-size: .98rem; line-height: 1.35;
  color: var(--muted); padding-top: 9px;
}
.frame figcaption strong { color: var(--ink); font-weight: 500; }
a.mat { text-decoration: none; }
a.zoom { cursor: zoom-in; }
.mat.video { position: relative; }
.mat.video::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23262262' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 34px no-repeat;
  border: 2px solid var(--ink);
}
a.mat:hover { border-color: var(--harbor-deep); }

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(34px, 6vw, 64px) clamp(22px, 3vw, 34px); }
.page-head p { margin: 14px 0 0; font-size: 1.25rem; color: var(--muted); max-width: 52ch; }
.crumbs { font-family: var(--sans); font-size: 1rem; margin: 0 0 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { padding: 0 .4em; }

.section { padding-block: clamp(40px, 6vw, 72px); }
.band { background: var(--wash); }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(34px, 6vw, 68px) clamp(40px, 6vw, 72px); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 1.4em; }
.hero .frame { max-width: 500px; justify-self: end; width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 1.05rem;
  padding: 12px 22px; text-decoration: none; line-height: 1.2;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
}
.btn:hover { background: var(--harbor-deep); border-color: var(--harbor-deep); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Visit strip ---------- */
.visit .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.visit h2 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 600; }
.visit p { margin: 0 0 .5em; font-size: 1.05rem; line-height: 1.55; }
.visit .note { color: var(--muted); font-size: .98rem; }

/* ---------- Two-column text + side ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split.flip { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.split h2 { margin-bottom: 18px; }
.split .frame { width: 100%; }
.split .frame.narrow { max-width: 300px; }

.shop { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 28px; }
.shop-video { display: grid; grid-template-columns: minmax(0, 225px) minmax(0, 1fr); gap: 28px; align-items: start; }
.stack { display: grid; gap: 30px; align-content: start; }
.stack .frame.narrow { max-width: 300px; }
.stuff { columns: 3 12em; column-gap: 28px; list-style: none; padding: 0; margin: 22px 0 28px; font-family: var(--sans); font-size: 1.05rem; line-height: 1.9; color: var(--ink); }
.stuff li { break-inside: avoid; padding-left: 16px; position: relative; }
.stuff li::before { content: ""; position: absolute; left: 0; top: .78em; width: 7px; height: 7px; background: var(--gold); }

/* ---------- Gallery grids ---------- */
.shelf { columns: 4 200px; column-gap: 22px; margin-top: 26px; }
.shelf .frame { break-inside: avoid; margin: 0 0 24px; }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 30px 26px; align-items: start; }

/* Artist directory */
.group + .group { margin-top: clamp(40px, 6vw, 64px); }
.group h2 { margin-bottom: 8px; }
.group .rule { margin-bottom: 26px; max-width: 220px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 22px; list-style: none; margin: 0; padding: 0; }
.tile a { display: block; text-decoration: none; }
.tile .mat {
  display: grid; place-items: center; background: var(--mat); aspect-ratio: 1 / 1;
  padding: 9px; border: 2px solid var(--ink); line-height: 0;
}
.tile img { display: block; width: 150px; max-width: 100%; height: auto; outline: 1px solid rgba(38, 34, 98, .45); }
.tile .name { display: block; font-family: var(--sans); font-weight: 500; font-size: 1.08rem; color: var(--ink); padding-top: 9px; line-height: 1.25; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tile a:hover .mat { border-color: var(--harbor-deep); }
.tile a:hover .name { text-decoration-thickness: 2px; }
.also { font-family: var(--sans); font-size: 1.05rem; margin-top: 24px; color: var(--muted); }

/* ---------- Artist page ---------- */
.bio { max-width: 64ch; }
.site-link { font-family: var(--sans); font-weight: 500; font-size: 1.05rem; margin-top: 4px; }
.back { font-family: var(--sans); font-weight: 500; font-size: 1.08rem; margin-top: 48px; }

/* ---------- Hello page ---------- */
.letter {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "portrait text" "photos text";
  column-gap: clamp(28px, 5vw, 64px); row-gap: 28px; align-items: start;
}
.letter .side { grid-area: portrait; }
.letter .text { grid-area: text; }
.letter .photos { grid-area: photos; display: grid; gap: 22px; }
.portrait { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); display: block; }
.letter .side figcaption { text-align: center; }
.letter .opening { font-family: var(--sans); font-size: 2rem; font-weight: 500; color: var(--ink); margin-bottom: .4em; }
.letter p { font-size: 1.15rem; }
.sig { display: block; width: 190px; mix-blend-mode: multiply; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(48px, 7vw, 88px); background: var(--wash); }
.site-footer .rule { margin: 0; }
.site-footer .wrap { padding-block: 40px 34px; display: grid; grid-template-columns: auto 1fr; gap: 28px 56px; align-items: start; }
.site-footer img.mark { width: 200px; height: auto; display: block; }
.fcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px; font-size: 1rem; line-height: 1.55; }
.fcols h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.fcols p { margin: 0 0 .4em; }
.fnav { list-style: none; padding: 0; margin: 0; font-family: var(--sans); }
.fnav li { margin: 0 0 .25em; }
.fine { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 18px; font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center; }
.fine p { margin: 0; max-width: none; }

/* ---------- Lightbox ---------- */
dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%; color: #fff;
}
dialog.lightbox::backdrop { background: rgba(20, 18, 56, .92); }
.lb-stage { height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 64px 22px; gap: 14px; }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: 12px; min-height: 0; max-height: 100%; }
.lb-fig img { max-width: min(100%, 980px); max-height: calc(100vh - 190px); width: auto; height: auto; border: 8px solid var(--mat); outline: 2px solid #fff; background: #fff; }
.lb-fig figcaption { font-family: var(--sans); font-size: 1.05rem; text-align: center; max-width: 60ch; }
.lb-count { font-family: var(--sans); font-size: .95rem; opacity: .75; }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 2px solid rgba(255, 255, 255, .7);
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  font-family: var(--sans); font-size: 1.5rem; line-height: 1; padding: 0;
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .frame { justify-self: start; max-width: 460px; }
  .visit .wrap { grid-template-columns: 1fr; gap: 24px; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .shop > .frame { max-width: 300px; }
  .split .frame, .split .frame.narrow { max-width: 360px; }
  .letter { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "portrait" "text" "photos"; }
  .letter .side { max-width: 240px; }
  .letter .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .fcols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; }
  .shelf { columns: 2 140px; column-gap: 14px; }
  .shelf .frame { margin-bottom: 16px; }
  .shop-video { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 18px; }
  body { font-size: 1.06rem; }
  .site-header .bar { justify-content: center; text-align: center; }
  .nav ul { justify-content: center; gap: 2px 20px; }
  .nav a { font-size: 1.05rem; }
  .fcols { grid-template-columns: 1fr; }
  .letter .photos { grid-template-columns: 1fr; }
  .lb-stage { padding: 64px 14px 14px; }
  .lb-prev { left: 6px; top: auto; bottom: 14px; transform: none; }
  .lb-next { right: 6px; top: auto; bottom: 14px; transform: none; }
}

@media print {
  .nav, .skip, .actions, .lb-btn { display: none; }
  body { font-size: 11pt; }
}
