@font-face {
  font-family: 'DM Sans'; src: url('/assets/dm-sans.woff2') format('woff2');
  font-weight: 100 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif'; src: url('/assets/instrument-serif.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #122b3c;
  --encre: #21475a;
  --muted: #4e6470;
  --paper: #f7f5ef;
  --linen: #eeece4;
  --white: #fffefa;
  --line: #d9dfda;
  --blue: #d9edf1;
  --warm: #ffcf77;
  --gold: #9d6305;
  --error: #8d2b33;
  --green: #245f43;
  --shadow: 0 5px 17px #132e3c0d;
  --sans: 'DM Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.55;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 250px; }
body:not(.page-embed) { min-height: 100vh; display: flex; flex-direction: column; }
body:not(.page-embed) > main { flex: 1; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .57; }
textarea { resize: vertical; }
img, video { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid #16738c;
  outline-offset: 3px;
}
h1, h2, h3 { margin: 0; line-height: 1.04; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.3rem, 8vw, 7.05rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2.2rem, 4.1vw, 3.25rem); letter-spacing: -.022em; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.wrap { width: min(100% - 3rem, 1140px); margin-inline: auto; }
.sr-only, .mode-choices input, .rating-item input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; z-index: 9; top: .5rem; left: .5rem; padding: .7rem 1rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; gap: .68rem; align-items: center; text-decoration: none; font-weight: 750; font-size: 1.02rem; }
.brand img { flex-shrink: 0; border-radius: 11px; object-fit: cover; }
.site-header nav { display: flex; gap: clamp(.65rem, 3vw, 1.75rem); align-items: center; font-weight: 650; font-size: .92rem; }
.site-header nav > a { text-decoration: none; white-space: nowrap; }
.site-header nav > a:hover, .site-header nav a[aria-current='page'] { text-decoration: underline; }
.site-header nav .nav-action { padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); font-size: .89rem; color: var(--muted); }
.footer-inner { min-height: 76px; justify-content: flex-start; gap: 1.45rem; flex-wrap: wrap; padding-block: .85rem; }
.footer-inner span { margin-right: auto; font-weight: 750; color: var(--ink); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 45px; border: 1px solid transparent; border-radius: 9px; padding: .58rem 1.03rem;
  text-decoration: none; color: var(--white); font-weight: 690; background: var(--ink);
  text-align: center; line-height: 1.23;
}
.button:hover { background: var(--encre); }
.button-gold { background: var(--warm); color: var(--ink); }
.button-gold:hover { background: #ffe0a6; }
.button-outline { background: transparent; color: var(--ink); border-color: #9badb1; }
.button-outline:hover { background: var(--blue); }
.button-small { min-height: 36px; font-size: .87rem; padding: .42rem .73rem; }
.wall-hero { background: radial-gradient(ellipse at 90% 8%, #326477 0%, transparent 60%), #122b3c; color: #fffefa; }
.wall-hero :focus-visible { outline-color: var(--warm); }
.wall-hero-inner {
  min-height: 396px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(1rem, 5.4vw, 5.3rem);
  align-items: center; padding-block: clamp(2.4rem, 5.3vw, 4.5rem);
}
.wall-intro h1 { white-space: nowrap; }
.wall-intro h1 em { color: var(--warm); font-style: normal; }
.wall-intro > p { color: #eff7f7; font-size: clamp(1.02rem, 1.55vw, 1.25rem); max-width: 29rem; margin-top: 1rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.15rem; margin-top: 1.55rem; }
.hero-link { color: #fffefa; font-size: .95rem; font-weight: 650; }
.hero-link span { margin-left: .15rem; }
.wall-stats { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; color: #f3f5eb; font-size: .88rem; margin-top: 1.7rem; }
.wall-stats strong { font-weight: 720; }
.wall-stats .stars { color: var(--warm); }
.wall-feature { align-self: center; }
.feature-card { background: #fffefa; color: var(--ink); padding: .55rem; border-radius: 15px; box-shadow: 0 14px 45px #061b2790; }
.feature-card video { width: 100%; aspect-ratio: 1.78; object-fit: cover; background: #15252c; border-radius: 10px; }
.feature-card video.playing { object-fit: contain; }
.feature-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .61rem .45rem .3rem; font-weight: 750; }
.feature-meta .field-hint { font-weight: 600; }
.banner-image { width: 100%; object-fit: cover; height: auto; border-radius: 12px; border: 1px solid #91c2ce66; }
.reviews-section { padding-block: clamp(2.15rem, 5vw, 3.75rem) 3rem; }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 1.22rem; }
.filter-group { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .32rem; }
.filter {
  border: 1px solid var(--line); border-radius: 999px; padding: .42rem .82rem;
  background: var(--white); color: var(--ink); font-size: .92rem; font-weight: 660;
}
.filter:hover { border-color: #79929b; }
.filter[aria-pressed='true'] { background: var(--ink); color: white; border-color: var(--ink); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.review-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow); min-width: 0; overflow: hidden; padding: 1.16rem;
}
.review-card:focus-within { overflow: visible; }
.review-byline { display: flex; align-items: center; gap: .73rem; }
.avatar {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center;
  color: #173c4d; background: #d9edf2; font-size: .83rem; font-weight: 760; letter-spacing: .025em;
}
.avatar[data-colour='1'] { background: #f5ead5; color: #56391c; }
.avatar[data-colour='2'] { background: #dfe9d8; color: #2c4f3c; }
.avatar[data-colour='3'] { background: #eee5f3; color: #523f6b; }
.review-byline h3 { font-size: 1rem; line-height: 1.22; overflow-wrap: anywhere; }
.review-date { display: block; margin-top: .15rem; color: var(--muted); font-size: .78rem; }
.stars { display: inline-flex; gap: .14rem; color: var(--gold); vertical-align: middle; }
.star-icon { display: inline-block; width: 1em; height: 1em; background: currentColor; clip-path: polygon(50% 1%,64% 33%,99% 38%,73% 62%,79% 98%,50% 80%,21% 98%,27% 62%,1% 38%,36% 33%); }
.star-icon.empty { color: #c2cbcf; }
.review-card .stars { margin-top: .83rem; font-size: .93rem; }
.review-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .96rem; color: #263e4b; margin: .57rem 0 0; }
.review-card video { width: 100%; aspect-ratio: 16/10; object-fit: contain; border-radius: 8px; background: #132a36; margin-top: .75rem; }
.text-button { border: none; padding: .26rem 0; color: #1e536a; background: none; font-weight: 720; text-decoration: underline; text-underline-offset: .2em; text-align: left; }
.review-card .text-button { margin-top: .15rem; font-size: .87rem; }
.photo-list { display: flex; flex-wrap: wrap; gap: .42rem; margin-top: .75rem; }
.photo-list img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.more-row { display: grid; place-items: center; }
.more-row .button { margin-top: 1.35rem; }
.state-message { color: var(--muted); margin-block: .6rem 1rem; }
.state-message:empty { display: none; }
.panel { padding: clamp(1.25rem, 3.2vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.collect-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(1.6rem, 6.7vw, 6rem); padding-block: clamp(2rem, 5.8vw, 5.25rem); align-items: start; }
.collect-intro h1 { margin: 1.05rem 0 1.17rem; }
.collect-intro p:not(.host-signature) { color: #2f4a59; font-size: clamp(1.03rem, 1.7vw, 1.22rem); max-width: 26rem; }
.back-link { text-decoration: none; font-size: .9rem; font-weight: 680; color: var(--muted); }
.back-link:hover { text-decoration: underline; }
.host-signature { margin-top: 1.15rem; color: var(--ink); font-weight: 740; }
.host-signature span { margin-left: .38rem; color: var(--muted); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.collect-banner { width: 100%; max-width: 430px; height: auto; border-radius: 10px; margin-top: 1.75rem; }
.collect-panel h2 { margin-bottom: .87rem; }
.form-fields, .rating-field, .mode-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-fields { display: grid; gap: 1.08rem; }
legend { padding: 0; font-weight: 690; }
.field { display: grid; gap: .35rem; font-weight: 690; }
.field-hint, .optional { color: var(--muted); font-size: .86rem; font-weight: 500; }
.field-hint:empty { display: none; }
.optional { display: inline; }
input:not([type='radio'], [type='checkbox']), textarea, select {
  min-width: 0; min-height: 43px; padding: .5rem .66rem; border: 1px solid #aebcc0;
  border-radius: 8px; color: var(--ink); background: #fff; font-weight: 500;
}
input::placeholder, textarea::placeholder { color: #627580; }
input[type='checkbox'] { accent-color: var(--ink); width: 18px; height: 18px; }
.check-label { display: flex; align-items: flex-start; gap: .56rem; cursor: pointer; font-size: .92rem; }
.check-label input { flex: 0 0 18px; margin: .2rem 0 0; }
.rating-choices { display: flex; align-items: center; gap: .35rem; margin: .28rem 0 .1rem; }
.rating-item { display: grid; place-items: center; width: 42px; height: 43px; border-radius: 6px; cursor: pointer; color: #adb9be; }
.rating-item .star-icon { width: 29px; height: 29px; }
.rating-item.on { color: #a46a0d; }
.rating-item:has(input:focus-visible), .mode-choices label:has(input:focus-visible) { outline: 3px solid #16738c; outline-offset: 2px; }
.mode-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .36rem; margin-top: .43rem; padding: .33rem; border-radius: 10px; background: #eef2f1; }
.mode-choices label { position: relative; border-radius: 7px; cursor: pointer; }
.mode-choices span { display: block; padding: .51rem .35rem; text-align: center; color: var(--muted); font-size: .9rem; font-weight: 720; border-radius: 7px; }
.mode-choices input:checked + span { color: white; background: var(--ink); }
.video-mode { display: grid; gap: .65rem; }
.video-options, .camera-controls { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }
.video-options .field { flex: 1 1 15rem; }
input[type='file'] { width: 100%; font-size: .88rem; }
.guest-preview { width: 100%; max-height: 285px; background: var(--ink); object-fit: contain; border-radius: 8px; }
.recording-time { color: var(--error); font-weight: 720; }
progress { width: 100%; accent-color: var(--green); }
.form-status, .notice { padding: .64rem .83rem; border-radius: 8px; color: #214757; background: #e3f1f2; font-size: .91rem; }
.form-status[data-tone='error'] { color: var(--error); background: #fbe8e7; }
.form-done p { margin: .7rem 0 1.2rem; }
.success-mark { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .75rem; border-radius: 50%; color: var(--green); background: #e1f0e7; font-size: 1.5rem; }
.manage-layout { padding-block: clamp(1.7rem, 4vw, 3.7rem); }
.manage-intro { margin-bottom: 1.1rem; }
.manage-intro h1 { font-size: clamp(3rem, 7.3vw, 5.6rem); }
.manage-intro p, .widget-builder p { margin-top: .55rem; color: var(--muted); }
.manage-layout > .form-status { margin-block: .75rem; }
.sign-in-panel { max-width: 440px; }
.sign-in-panel .field { margin: .9rem 0 .75rem; }
#admin-setup p { margin: .65rem 0 .9rem; }
.admin-links { display: flex; gap: .55rem; flex-wrap: wrap; margin-block: .85rem 1.7rem; }
.admin-section .section-top { margin-bottom: .72rem; }
.tab-count { display: inline-block; margin-left: .39rem; font-size: .83em; opacity: .9; }
.admin-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .92rem; margin-top: .95rem; }
.admin-card .actions { display: flex; flex-wrap: wrap; gap: .42rem; align-items: center; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.admin-card .review-video { max-width: 450px; }
.status-label { background: var(--linen); border-radius: 100px; color: #2f4653; display: inline-block; font-size: .79rem; font-weight: 730; padding: .14rem .5rem; }
.status-label[data-status='published'] { background: #dfeee6; color: #235239; }
.status-label[data-status='pending'] { background: #faedd0; color: #614515; }
.admin-card .remove-button { margin-left: auto; color: var(--error); font-size: .85rem; }
.admin-card .metadata-line { margin-top: .7rem; display: flex; gap: .48rem; align-items: center; flex-wrap: wrap; }
.widget-builder { margin-top: 2.15rem; display: grid; grid-template-columns: minmax(0,.76fr) minmax(0,1fr); align-items: start; gap: 1.35rem; scroll-margin-top: 1rem; }
.widget-controls, .widget-preview { min-width: 0; }
.widget-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .9rem; }
.widget-controls > .field { margin: .65rem 0; }
.widget-check { margin-top: .67rem; }
#widget-code { font: .79rem ui-monospace, monospace; white-space: pre-wrap; }
.widget-preview h3 { margin: .18rem 0 .54rem; }
.widget-preview iframe { display: block; width: 100%; height: 470px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.page-embed { background: var(--paper); }
.embed-layout { padding: clamp(.74rem, 2vw, 1.12rem); }
.embed-layout .review-grid { gap: .63rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); }
.embed-layout .review-card { padding: .77rem; border-radius: 10px; box-shadow: none; }
.embed-top { display: flex; gap: .55rem; align-items: center; justify-content: space-between; margin-bottom: .78rem; }
.embed-top h1 { font-size: clamp(1.83rem, 5.5vw, 2.4rem); }
.embed-credit { display: inline-block; margin-top: .75rem; color: #304d5b; font-size: .79rem; font-weight: 660; }
.carousel-controls { display: flex; gap: .3rem; }
.carousel-controls button { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; border: 1px solid #9badb1; background: var(--white); color: var(--ink); font-weight: 760; }
.carousel-controls button:disabled { cursor: default; }
.embed-layout .review-carousel { display: flex; overflow: auto; scroll-snap-type: x mandatory; padding: 2px 1px .4rem; }
.review-carousel .review-card { flex: 0 0 min(85%, 320px); scroll-snap-align: start; }
@media (max-width: 860px) {
  .review-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wall-hero-inner { grid-template-columns: minmax(0,1fr) minmax(0,.85fr); }
  .wall-intro h1 { font-size: clamp(3.25rem, 9.2vw, 5rem); }
  .collect-layout { gap: 1.65rem; }
  .widget-builder { grid-template-columns: 1fr; }
}
@media (max-width: 610px) {
  .wrap { width: min(100% - 1.45rem, 1140px); }
  .header-inner { min-height: 61px; }
  .brand { gap: .4rem; font-size: .85rem; line-height: 1.16; }
  .brand img { width: 31px; height: 31px; border-radius: 7px; }
  .site-header nav { font-size: .79rem; }
  .site-header nav .nav-action { padding: .36rem .48rem; }
  .wall-hero-inner, .collect-layout { grid-template-columns: 1fr; }
  .wall-hero-inner { gap: 1.45rem; }
  .wall-intro h1 { font-size: clamp(3.45rem, 13vw, 5.1rem); }
  .wall-feature { max-width: min(100%, 435px); }
  .wall-stats { margin-top: 1rem; }
  .review-grid, .admin-reviews { grid-template-columns: 1fr; }
  .collect-intro h1 { margin-block: .65rem; }
  .desktop-break, .collect-banner { display: none; }
  .host-signature { margin-top: .6rem; }
  .rating-choices { gap: .15rem; }
  .footer-inner { gap: .62rem .96rem; }
}
@media (max-width: 365px) {
  .site-header nav { gap: .42rem; }
  .brand img { display: none; }
  .widget-fields { grid-template-columns: 1fr; }
}
