/* Fieldnote Studio — demo theme (near-black, ivory, brass) */
@font-face { font-family: "Syne"; font-weight: 400 800; font-display: swap; src: url("../fonts/syne.woff2") format("woff2-variations"), url("../fonts/syne.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/dmsans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("../fonts/dmsans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("../fonts/dmsans-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0e0e0d;
  --bg-2: #171715;
  --bg-3: #22221f;
  --ivory: #efeae2;
  --muted: #a39d93;
  --dim: #8f897f;
  --line: #2c2b28;
  --brass: #c9a96e;
  --brass-2: #d9bd88;
  --display: "Syne", "Arial Black", Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ivory); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
section[id] { scroll-margin-top: 70px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 2px; font-weight: 700; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .8rem; }
.btn-brass { background: var(--brass); color: #16130d; }
.btn-brass:hover { background: var(--brass-2); }
.btn-ghost { border-color: rgba(239, 234, 226, .4); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); }
.btn-line { border-color: var(--line); color: var(--ivory); background: transparent; }
.btn-line:hover { border-color: var(--brass); color: var(--brass); }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--brass); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .85rem; justify-self: start; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(14, 14, 13, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ivory); text-decoration: none; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; }
.logo span { font-family: var(--body); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; font-size: .92rem; }
.top-nav a:hover { color: var(--ivory); }
@media (max-width: 640px) { .top-nav { display: none; } .top-inner > .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img svg { width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,14,13,.05) 20%, rgba(14,14,13,.55) 55%, rgba(14,14,13,.92) 100%); }
.hero-copy { padding-block: 48px clamp(40px, 7vw, 80px); display: grid; gap: 22px; }
.eyebrow { justify-self: start; font-size: .76rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ivory); padding: 6px 12px; background: rgba(14, 14, 13, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hero h1 { font-size: clamp(2.8rem, 1.4rem + 6vw, 6.4rem); font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .16; mix-blend-mode: overlay; }

/* Work */
.work { padding-block: clamp(56px, 8vw, 104px); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 28px; }
.work h2, .packages h2, .avail h2, .enquire h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .9rem; transition: all .2s ease; }
.filters button:hover { color: var(--ivory); border-color: var(--dim); }
.filters button[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--bg); }
.filters button sup { font-size: .7em; margin-left: 3px; opacity: .7; }
.masonry { list-style: none; columns: 3 300px; column-gap: 14px; }
.tile { break-inside: avoid; margin-bottom: 14px; animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }
.tile button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); cursor: zoom-in; overflow: hidden; }
.tile svg { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.tile button:hover svg { transform: scale(1.04); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: var(--ivory); font-size: .9rem; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.cap b { display: block; font-family: var(--display); font-size: 1.05rem; }
.cap span { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.tile button:hover .cap, .tile button:focus-visible .cap { opacity: 1; transform: none; }
@media (hover: none) { .cap { opacity: 1; transform: none; padding-top: 28px; } }

/* Packages */
.packages { padding-block: clamp(56px, 8vw, 104px); background: var(--bg-2); }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pk { position: relative; display: grid; gap: 14px; align-content: start; padding: 28px; border: 1px solid var(--line); background: var(--bg); }
.pk.feat { border-color: var(--brass); }
.pk-tag { position: absolute; top: -11px; left: 24px; background: var(--brass); color: #16130d; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; }
.pk h3 { font-size: 1.5rem; }
.pk-price { font-family: var(--display); font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brass); line-height: 1; }
.pk-price small { font-family: var(--body); font-size: .9rem; font-weight: 400; color: var(--muted); }
.pk ul { list-style: none; display: grid; gap: 8px; color: var(--muted); flex: 1; margin-bottom: 8px; }
.pk li { position: relative; padding-left: 20px; }
.pk li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--brass); }
@media (max-width: 860px) { .pk-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* Availability */
.avail { padding-block: clamp(56px, 8vw, 104px); }
.avail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.av-copy { color: var(--muted); margin-top: 14px; max-width: 42ch; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; }
.legend .free, .day-free::after { background: #7fb38a; }
.legend .few, .day-few::after { background: var(--brass); }
.legend .booked { background: var(--dim); }
.cal { border: 1px solid var(--line); background: var(--bg-2); padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { font-size: 1.3rem; }
.cal-head button { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ivory); font-size: 1.4rem; cursor: pointer; }
.cal-head button:hover:not(:disabled) { border-color: var(--brass); color: var(--brass); }
.cal-head button:disabled { opacity: .3; cursor: not-allowed; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-bottom: 6px; }
.cal-grid button, .cal-grid span { position: relative; aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--ivory); font-variant-numeric: tabular-nums; font-size: .95rem; }
.cal-grid button { cursor: pointer; background: var(--bg); border-color: var(--line); transition: border-color .15s ease, background-color .15s ease; }
.cal-grid button::after { content: ""; position: absolute; bottom: 14%; width: 5px; height: 5px; border-radius: 50%; }
.cal-grid button:hover { border-color: var(--brass); }
.cal-grid button[aria-pressed="true"] { background: var(--brass); color: #16130d; border-color: var(--brass); }
.cal-grid button[aria-pressed="true"]::after { background: #16130d; }
.cal-grid .booked { color: var(--dim); text-decoration: line-through; }
.cal-grid .past { color: #3d3b37; }
@media (max-width: 860px) { .avail-grid { grid-template-columns: 1fr; } }

/* Enquire */
.enquire { padding-block: clamp(56px, 8vw, 104px); background: var(--bg-2); }
.eq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.eq-form, .eq-done { display: grid; gap: 14px; }
.ef-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ef { display: grid; gap: 6px; align-content: start; }
.ef label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ef label em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--dim); }
.ef input, .ef select, .ef textarea { min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--ivory); font: inherit; }
.ef select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ef input:focus, .ef select:focus, .ef textarea:focus { outline: none; border-color: var(--brass); }
.ef input[aria-invalid="true"] { border-color: #e07a5f; }
.ef input[readonly] { cursor: pointer; }
.err { color: #e07a5f; font-size: .86rem; }
.demo-note { font-size: .84rem; color: var(--dim); text-align: center; }
.eq-done { padding: 32px; border: 1px solid var(--brass); }
.eq-done:focus { outline: none; }
.eq-done h3 { font-size: 2.4rem; color: var(--brass); }
.eq-done p { color: var(--muted); }
@media (max-width: 860px) { .eq-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ef-row { grid-template-columns: 1fr; } }

.foot { border-top: 1px solid var(--line); color: var(--dim); padding-block: 26px; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--brass); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 7, .985); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 12px; padding-top: calc(24px + env(safe-area-inset-top, 0px)); animation: fade .25s ease both; touch-action: pan-y; }
@keyframes fade { from { opacity: 0; } }
.lb-fig { margin: 0; display: grid; gap: 12px; justify-items: center; min-width: 0; max-height: 100%; }
.lb-img { position: relative; max-width: 100%; display: grid; place-items: center; }
.lb-img svg { display: block; height: min(calc(100vh - 150px), 920px); width: auto; max-width: 100%; animation: zoomIn .3s ease both; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.97); } }
.lb figcaption { display: flex; gap: 16px; align-items: baseline; color: var(--muted); font-size: .92rem; }
.lb figcaption span:first-child { color: var(--ivory); font-family: var(--display); font-size: 1.05rem; }
.lb-count { font-variant-numeric: tabular-nums; }
.lb-nav, .lb-close { border: 0; background: transparent; color: var(--ivory); cursor: pointer; }
.lb-nav { width: 56px; height: 56px; font-size: 2.6rem; line-height: 1; border-radius: 50%; }
.lb-nav:hover, .lb-close:hover { color: var(--brass); }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 14px; width: 48px; height: 48px; font-size: 2.2rem; line-height: 1; }
@media (max-width: 640px) {
  .lb { grid-template-columns: 1fr; padding-inline: 0; }
  .lb-nav { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.08); }
  .lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; }
  .lb-img svg { height: auto; width: 100%; max-height: calc(100vh - 200px); }
}

@media (max-width: 400px) {
  .logo span { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .hero-copy { min-width: 0; }
  .eyebrow { letter-spacing: .18em; }
}
.link { padding: 10px 0; }
.eyebrow { max-width: 100%; }
@media (max-width: 360px) {
  .hero h1 { font-size: 2.05rem; }
  .eyebrow { letter-spacing: .12em; font-size: .7rem; }
}
