/* BETWEEN TIDES prototype */
:root {
  --ocean: #0F3348;
  --ocean-deep: #0A2231;
  --aqua: #4BB3AE;
  --aqua-soft: #BFE3DF;
  --sand: #D8C3A0;
  --earth: #8A6A4B;
  --charcoal: #23292C;
  --shell: #F1F1EC;
  --wall: #FAFAF7;
  --ochre: #C38B2F;
  --muted: #5B6468;
  --line: #D9DBD4;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--charcoal);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
.art { display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; font-variation-settings: 'SOFT' 100, 'opsz' 96; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.45rem; font-variation-settings: 'SOFT' 100, 'opsz' 24; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.4; font-variation-settings: 'SOFT' 100, 'opsz' 24; max-width: 38ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vw, 120px) 0; }

/* Prototype notice */
.proto-bar { background: var(--charcoal); color: var(--shell); font-size: .82rem; padding: 8px var(--gutter); text-align: center; }
.proto-bar a { color: var(--aqua-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--wall) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 1.15rem; font-weight: 400; letter-spacing: .22em; font-variation-settings: 'SOFT' 100, 'opsz' 24; white-space: nowrap; }
.wordmark svg { width: 34px; height: 20px; flex: none; }
.nav { display: flex; gap: 26px; font-size: .95rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a[aria-current='page'], .nav a:hover { border-bottom-color: var(--aqua); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; color: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--wall); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Hero: two bodies of water meeting */
.hero { position: relative; min-height: min(88vh, 820px); background: var(--ocean); color: var(--shell); overflow: hidden; display: grid; align-items: end; padding: 0; }
.hero svg.tide-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; width: 100%; padding-top: 140px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(3rem, 10vw, 8.5rem); letter-spacing: .06em; font-weight: 300; line-height: .95; }
.hero .tagline { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 2rem); margin: 18px 0 30px; font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.hero p { color: color-mix(in srgb, var(--shell) 82%, transparent); }
.tide-field path:not(.dots) { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 3.6s cubic-bezier(.3,.1,.2,1) forwards; animation-delay: var(--d); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tide-field path.dots { animation: rise 1.6s 1.8s backwards; }
@keyframes rise { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tide-field path { animation: none !important; stroke-dashoffset: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font: 500 1rem var(--body); text-decoration: none; border: 1.5px solid currentColor; cursor: pointer; background: none; color: inherit; }
.btn.solid { background: var(--ocean); border-color: var(--ocean); color: var(--shell); }
.btn.solid:hover { background: var(--ocean-deep); }
.hero .btn.solid { background: var(--shell); color: var(--ocean); border-color: var(--shell); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tide divider: a single line used between major sections */
.tideline { height: 28px; width: 100%; color: var(--aqua); }

/* Section heading row */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { margin: 12px 0 0; }

/* Artwork grid (salon-style, images keep their own proportions) */
.works { columns: 3 300px; column-gap: clamp(20px, 3vw, 44px); }
.work { break-inside: avoid; margin: 0 0 clamp(28px, 4vw, 52px); display: block; text-decoration: none; }
.work .frame { background: var(--shell); padding: clamp(10px, 1.6vw, 20px); transition: background .25s; }
.work:hover .frame { background: var(--aqua-soft); }
.work img { width: 100%; height: auto; }
.work .cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; margin-top: 14px; font-size: .95rem; }
.work .cap .t { font-family: var(--display); font-size: 1.2rem; font-variation-settings: 'SOFT' 100, 'opsz' 24; }
.work .cap .a { color: var(--muted); grid-column: 1; }
.work .cap .p { grid-row: 1; grid-column: 2; text-align: right; }
.status { font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }
.status.sold::before { background: #B4483B; }
.status.reserved::before { background: var(--ochre); }

/* Exhibition feature */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature .art { background: var(--charcoal); padding: clamp(18px, 3vw, 40px); }
.feature .meta { color: var(--muted); margin-bottom: 18px; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } }

/* Artists */
.artist-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.artist-card { border-top: 1px solid var(--charcoal); padding: 24px 0 36px; text-decoration: none; display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.artist-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.artist-card .thumbs { display: flex; gap: 8px; }
.artist-card .thumbs img { width: 64px; height: 64px; object-fit: cover; }
.artist-card blockquote { margin: 0; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 1.1rem; line-height: 1.4; font-variation-settings: 'SOFT' 100, 'opsz' 24; }

/* Dark band */
.band { background: var(--ocean); color: var(--shell); }
.band .muted { color: color-mix(in srgb, var(--shell) 70%, transparent); }
.band a { color: var(--shell); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 48px; }
.principles h3 { margin-bottom: 10px; color: var(--aqua-soft); }
.principles p { color: color-mix(in srgb, var(--shell) 80%, transparent); }

/* Artwork detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.detail .art { background: var(--shell); padding: clamp(16px, 3vw, 48px); position: sticky; top: 92px; }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 28px 0; font-size: .95rem; border-top: 1px solid var(--line); padding-top: 20px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }
.price { font-family: var(--display); font-size: 2rem; font-weight: 300; margin: 20px 0 6px; }
.note { background: var(--shell); border-left: 3px solid var(--aqua); padding: 18px 20px; font-size: .93rem; margin-top: 28px; }
.note strong { display: block; margin-bottom: 4px; }
.split-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.split-bar span:first-child { background: var(--ocean); }
.split-bar span:last-child { background: var(--sand); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail .art { position: static; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: end; padding: 20px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.filters label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.filters select { font: inherit; font-size: 1rem; color: var(--charcoal); background: var(--wall); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; min-width: 170px; }
.filters .count { margin-left: auto; color: var(--muted); font-size: .95rem; }
.empty { padding: 60px 0; text-align: center; }

/* Page intro */
.page-intro { padding-bottom: 32px; }
.page-intro h1 { margin-bottom: 20px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 28px; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; border: 1px solid #C9CCC4; border-radius: 8px; padding: 12px 14px; background: #fff; color: var(--charcoal); }
.form .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form .check { display: flex; gap: 10px; align-items: start; font-weight: 400; }
.form-done { background: var(--aqua-soft); padding: 20px; border-radius: 8px; }

/* Ideas / roadmap */
.ideas { display: grid; gap: 0; border-top: 1px solid var(--line); }
.idea { display: grid; grid-template-columns: minmax(180px, 1fr) 2.2fr; gap: 12px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.idea h3 { font-size: 1.3rem; }
.idea .tag { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 99px; background: var(--shell); margin-top: 10px; color: var(--muted); }
.idea .tag.q { background: #F4E6CC; color: #7A5519; }
.idea ul { margin: 0; padding-left: 1.1em; }
.idea li { margin-bottom: 6px; max-width: 70ch; }
@media (max-width: 700px) { .idea { grid-template-columns: 1fr; } }
.phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: phase; }
.phases li { background: var(--wall); padding: 24px; counter-increment: phase; }
.phases li::before { content: counter(phase); font-family: var(--display); font-size: 2.2rem; font-weight: 300; color: var(--aqua); display: block; line-height: 1; margin-bottom: 12px; }
.phases li.now { background: var(--shell); }
.phases li.now::after { content: 'We are here'; display: inline-block; margin-top: 12px; font-size: .8rem; background: var(--ocean); color: var(--shell); padding: 3px 10px; border-radius: 99px; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--shell); padding: 64px 0 36px; font-size: .93rem; }
.site-footer .ack { font-family: var(--display); font-weight: 300; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 60ch; font-variation-settings: 'SOFT' 100, 'opsz' 24; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid #3A4246; color: #B7BCBA; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; color: var(--shell); }
.site-footer .warn { max-width: 60ch; }
