/* Portfolio website – styles. Change the colours in :root. */
:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --line: #e3ddd2;
  --text: #1c1c1c;
  --muted: #6b665e;
  --accent: #a6814c;          /* brass */
  --accent-dark: #7f6136;
  --dark: #121212;
  --radius: 4px;
  --wide: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 17px/1.7 Jost, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, .h2, .h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2, .h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3, .h3 { font-size: 1.45rem; }
strong { font-weight: 500; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.section-tight { padding-bottom: 70px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .22em; color: var(--accent); font-weight: 500; }
.eyebrow a { text-decoration: none; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(246, 244, 240, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: grid; text-decoration: none; line-height: 1.1; }
.brand-name { font: 500 1.55rem "Cormorant Garamond", Georgia, serif; letter-spacing: .04em; }
.brand-sub { font-size: .7rem; text-transform: uppercase; letter-spacing: .28em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a, .nav .linkbtn { text-decoration: none; padding: 8px 12px; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.nav a:hover { color: var(--accent-dark); }
.nav a.active { box-shadow: inset 0 -1px 0 var(--text); }
.menu-btn { display: none; background: none; border: 1px solid var(--text); padding: 8px 14px; font: 500 .85rem Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: var(--text); }

/* Buttons */
.btn { display: inline-block; background: var(--text); color: #fff !important; border: 1px solid var(--text); border-radius: var(--radius); padding: 13px 28px; font: 500 .85rem Jost, sans-serif; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text) !important; }
.btn-ghost:hover { background: var(--text); color: #fff !important; border-color: var(--text); }
.btn-small { padding: 8px 16px; font-size: .75rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.linkbtn { background: none; border: 0; font: inherit; cursor: pointer; padding: 4px 8px; color: var(--text); }
.linkbtn.danger { color: #a4322b; }
.textlink { text-decoration: none; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; background: var(--dark); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.65)); }
.hero-text { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 70px; width: 100%; }
.hero .eyebrow { color: #e9d7b6; }
.hero h1 { color: #fff; margin-bottom: .1em; }
.hero .lead { color: #e8e4dc; }
.hero .btn-ghost { color: #fff !important; border-color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--text) !important; }

/* Page head */
.page-head { padding-top: 70px; padding-bottom: 36px; }
.page-head h1 { margin-bottom: .2em; }
.prose p { margin: 0 0 1.1em; }
.narrow { max-width: 720px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head a { text-decoration: none; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Series */
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.series-card { display: grid; gap: 12px; text-decoration: none; }
.series-cover { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #e8e3d9; }
.series-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.series-card:hover .series-cover img { transform: scale(1.04); }
.series-meta { display: grid; }
.series-meta strong { font: 500 1.5rem "Cormorant Garamond", Georgia, serif; }
.series-meta span { color: var(--muted); font-size: .9rem; }
.series-nav { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 80px; }
.series-nav a { text-decoration: none; font: italic 500 1.3rem "Cormorant Garamond", Georgia, serif; }

/* Masonry */
.masonry { column-count: 3; column-gap: 18px; }
.tile { position: relative; display: block; margin: 0 0 18px; break-inside: avoid; overflow: hidden; background: #e8e3d9; }
.tile img { width: 100%; height: auto; transition: transform .6s ease, opacity .3s; }
.tile:hover img { transform: scale(1.03); }
.tile-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; }
.tile:hover .tile-caption, .tile:focus .tile-caption { opacity: 1; }
.protect img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, .96); display: flex; align-items: center; justify-content: center; padding: 50px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.lightbox figcaption { color: #d9d4cb; font-size: .92rem; letter-spacing: .04em; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 2.6rem/1 Jost, sans-serif; width: 54px; height: 54px; cursor: pointer; opacity: .75; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-nav { display: none; }
body.lb-open { overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: #fff; padding: 10px 18px; font-size: .88rem; opacity: 0; transition: opacity .25s, transform .25s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post-card { display: grid; gap: 6px; text-decoration: none; align-content: start; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 8px; }
.post-card strong { font: 500 1.45rem/1.2 "Cormorant Garamond", Georgia, serif; }
.post-date { font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.article { max-width: 820px; padding-top: 70px; padding-bottom: 80px; }
.article-img { width: 100%; margin: 10px 0 30px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 50px; }

/* Services, CV */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--surface); padding: 34px 30px; display: grid; gap: 8px; align-content: start; }
.service h2 { margin: 0; }
.price { margin: 0; font: italic 500 1.35rem "Cormorant Garamond", Georgia, serif; color: var(--accent-dark); }
.cv { list-style: none; padding: 0; margin: 0; }
.cv li { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cv-year { flex: 0 0 60px; color: var(--accent); font-weight: 500; }
.lists h2 { font-size: 1.7rem; }

/* CTA, footer */
.cta { background: var(--dark); color: #fff; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 70px; padding-bottom: 70px; }
.cta h2 { color: #fff; margin: 0; }
.cta .btn { background: #fff; color: var(--text) !important; border-color: #fff; }
.footer { border-top: 1px solid var(--line); padding: 44px 0 20px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer p { margin: 2px 0; color: var(--muted); }
.footer-name { font: 500 1.4rem "Cormorant Garamond", Georgia, serif; }
.footer-links { display: grid; gap: 4px; font-size: .92rem; }
.footer-links a { text-decoration: none; color: var(--muted); }
.copyright { font-size: .8rem; color: var(--muted); margin-top: 30px; }

/* Forms */
.card { background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  width: 100%; font: 300 16px Jost, system-ui, sans-serif; padding: 12px 14px; color: var(--text); background: #fff; border: 1px solid #d8d1c3; border-radius: var(--radius); text-transform: none; letter-spacing: normal; }
.form textarea { resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: normal; font-size: .95rem; color: var(--text); font-weight: 300; }
.form .check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--text); }
.form .btn { justify-self: start; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.fields .wide { grid-column: 1 / -1; }
.trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.contact-info p { margin: 0 0 22px; font-size: 1.05rem; }
.thanks h2 { margin-top: 0; }
.notice { margin: 18px 0; padding: 14px 18px; border: 1px solid; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice-ok { background: #edf5ee; border-color: #b9d8be; color: #1d4a2b; }
.notice-error { background: #fbecea; border-color: #ebbdb7; color: #7a1f18; }
.notice-demo { background: #fbf3e2; border-color: #e5cf9e; color: #5a4400; }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; padding: 8px 16px; background: var(--text); color: #fff; font: 400 .88rem Jost, system-ui, sans-serif; text-align: center; }
.demo-bar a { color: #e9d7b6; }

/* Admin */
.admin-main { padding-top: 34px; padding-bottom: 70px; display: grid; gap: 22px; align-content: start; }
.admin-main h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.login { max-width: 420px; margin: 40px auto; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stats a { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; text-decoration: none; }
.stats strong { display: block; font: 500 2.4rem/1 "Cormorant Garamond", Georgia, serif; }
.stats span { color: var(--muted); font-size: .9rem; }
.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li { display: flex; justify-content: space-between; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--line); }
.simple-list li:last-child { border-bottom: 0; }
.simple-list form, .row-actions form, .inline-form { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 7px 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .9rem; }
.tabs a.active { background: var(--text); color: #fff; border-color: var(--text); }
.admin-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.admin-image { padding: 10px; display: grid; gap: 8px; align-content: start; }
.admin-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-image .form { gap: 6px; grid-template-columns: 1fr auto; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.delete-form { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.status { display: inline-block; padding: 2px 10px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid; }
.status-new { color: #8a3a0c; border-color: #e7b48c; background: #fdf0e4; }
.status-replied { color: #234a70; border-color: #a8c2dd; background: #edf3fa; }
.status-booked { color: #1d5a32; border-color: #a9cfb0; background: #edf5ee; }
.status-closed { color: #555; border-color: #ccc; background: #f2f2f2; }
.stack { display: grid; gap: 12px; }
.enquiry.is-new { border-left: 4px solid var(--accent); }
.enquiry-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.enquiry-msg { white-space: normal; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; }
.mini { width: 60px; height: 60px; object-fit: cover; display: inline-block; vertical-align: middle; }
.narrow-form { max-width: 860px; }
details summary { cursor: pointer; font-weight: 500; }
details[open] summary { margin-bottom: 12px; }
code { background: #efeae0; padding: 1px 6px; }

/* Responsive */
@media (max-width: 1000px) {
  .series-grid, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; gap: 34px; }
  .masonry { column-count: 2; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 10px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a, .nav .linkbtn { padding: 12px 0; text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-top: 54px; padding-bottom: 54px; }
  .series-grid, .posts { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
  .fields { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .lightbox { padding: 50px 6px; }
  .lb-nav { top: auto !important; bottom: 8px; transform: none !important; }
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 14px; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
