/* Millington Adams: fine English furniture, clocks and paintings. */

:root {
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --card: #fffdf9;
  --ink: #1d1b18;
  --ink-2: #3a362f;
  --muted: #6b6358;
  --line: #ddd5c8;
  --accent: #7c2d22;        /* oxblood */
  --accent-ink: #fff;
  --brass: #9c7b45;
  --red: #e40505;          /* the thin red rules carried over from the old site */
  --focus: #1f5fbf;
  --ok: #2f6b3a;
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font: 500 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: .9em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.no-js .js-only { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #efe9df; }
.section-dark a { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.6em; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: #fff; font: 500 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: #5e2018; border-color: #5e2018; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.link-arrow { font: 500 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }

/* ---------- header */
.topbar { background: var(--ink); color: #d9d1c3; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 50; }
.red-rule { border: 0; border-top: 1px solid var(--red); margin: 0; }
.red-rule-foot { margin-top: clamp(40px, 6vw, 72px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { text-decoration: none; color: var(--ink); display: block; line-height: 1; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-name { font: 500 clamp(1.5rem, 3vw, 2rem)/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--red); }
.brand-tag { display: block; margin-top: 7px; font: 500 .62rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 560px) {
  .header-row { min-height: 72px; gap: 12px; }
  .brand-name { font-size: 1.3rem; letter-spacing: .14em; }
  .brand-tag { font-size: .5rem; letter-spacing: .12em; }
  .topbar-offer { display: none; }
}
.brand-tag span + span { border-left: 1px solid var(--red); margin-left: .7em; padding-left: .7em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 26px; flex-wrap: wrap; }
.nav a { text-decoration: none; font: 500 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 10px 0; display: block; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); min-height: 44px; padding: 0 14px; font: 500 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 20px; gap: 0; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .no-js .nav { display: block; position: static; }
}

/* ---------- hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(78vh, 760px); background: var(--paper-2); }
.hero-media { position: relative; overflow: hidden; background: #fff; }
/* Stock photos are shot on white, so show the whole piece rather than cropping it. */
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: clamp(16px, 4vw, 48px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 88px); }
.hero-copy h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin-bottom: .35em; }
.hero-copy .lead { margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-caption { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.hero-caption a { color: var(--ink); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; min-height: 0; } .hero-media { aspect-ratio: 4 / 3.4; } }

.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .25em; }
.page-head .lead { margin: 0; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 .5em; }

/* ---------- grids and cards */
.grid { display: grid; gap: clamp(20px, 3vw, 36px) clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-3 { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.piece { position: relative; }
.piece-img { aspect-ratio: 4 / 5; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.piece-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s ease; }
.piece:hover .piece-img img { transform: scale(1.035); }
.piece-body { padding-top: 14px; }
.piece-cat { font: 500 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 6px; }
.piece h3 { font-size: 1.25rem; margin: 0 0 6px; }
.piece h3 a { text-decoration: none; }
.piece h3 a::after { content: ""; position: absolute; inset: 0; }
.piece-price { margin: 0; font-size: .95rem; }
.piece-sold { opacity: .9; }
.badge { display: inline-block; font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; background: var(--ink); color: #fff; }
.piece .badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.badge-sold { background: var(--accent); }

.dept { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.dept:hover { color: var(--accent); border-color: var(--ink); }
.dept img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8%; transition: transform .6s ease; }
.dept:hover img { transform: scale(1.03); }
.dept-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-top: 1px solid var(--line); }
.dept-label h3 { font-size: 1.8rem; margin: 0; }
.dept-label p { margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: var(--card); font: 500 .78rem/1 var(--sans); letter-spacing: .06em; color: var(--ink); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { margin-left: 8px; opacity: .6; }
.toolbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.search-box { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-box input { width: 100%; padding-left: 40px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.result-count { color: var(--muted); font-size: .9rem; margin: 0; }
.empty { padding: 40px 0; color: var(--muted); }

/* ---------- item page */
.item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); }
@media (max-width: 900px) { .item { grid-template-columns: 1fr; } }
.gallery-main { background: #fff; border: 1px solid var(--line); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.gallery-main a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.thumbs a { display: block; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); }
.thumbs a[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.item-info { position: sticky; top: 110px; }
@media (max-width: 900px) { .item-info { position: static; } }
.item-info h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.item-sub { font: italic 400 1.3rem/1.4 var(--serif); color: var(--ink-2); margin-bottom: 1.2em; }
.price { font: 500 2rem/1 var(--serif); margin: 0 0 .25em; }
.price-note { font-size: .85rem; color: var(--muted); margin-bottom: 1.4em; }
.item-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.6em; }
@media (max-width: 420px) { .item-actions { grid-template-columns: 1fr; } }
.assurances { list-style: none; margin: 0 0 1.8em; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: .9rem; }
.assurances li { display: flex; gap: 10px; align-items: start; }
.assurances svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brass); }
.facts { margin: 0 0 1.6em; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prose p { max-width: 68ch; }
.prose h2 { font-size: 1.7rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.item-text h2 { font-size: 1.5rem; margin-top: 1.2em; }

/* ---------- forms */
.form-panel { background: var(--card); border: 1px solid var(--line); padding: clamp(20px, 4vw, 40px); }
.form-panel h2 { margin-bottom: .2em; }
.order-summary { display: flex; gap: 16px; align-items: center; padding: 14px; background: var(--paper); border: 1px solid var(--line); margin: 18px 0 24px; }
.order-summary img { width: 84px; height: 84px; object-fit: contain; background: #fff; flex: none; }
.order-summary p { margin: 0; }
.order-summary strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
label, legend { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.req { color: var(--accent); }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b9b0a2; border-radius: 0; background: #fff;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 400; margin: 0; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.choice strong { display: block; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form-foot { margin-top: 24px; display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-left: 3px solid var(--brass); background: var(--paper); font-size: .92rem; }

/* ---------- steps, quotes, info */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { border-top: 1px solid currentColor; padding-top: 18px; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font: 400 2.4rem/1 var(--serif); color: var(--brass); margin-bottom: 12px; }
.steps h3 { font-size: 1.35rem; }
.steps p { margin: 0; font-size: .95rem; opacity: .9; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.quote { font: italic 400 clamp(1.5rem, 2.6vw, 2rem)/1.35 var(--serif); margin: 0; }
.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.info-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .info-layout { grid-template-columns: 1fr; } }
.side-nav { position: sticky; top: 110px; border-left: 1px solid var(--line); }
@media (max-width: 860px) { .side-nav { position: static; } }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 8px 0 8px 18px; text-decoration: none; font-size: .92rem; color: var(--muted); }
.side-nav a:hover { color: var(--ink); }
.info-block { scroll-margin-top: 110px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: 0; }
.event { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.event:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .event { grid-template-columns: 1fr; gap: 4px; } }
.event-date { font: 500 1.15rem/1.3 var(--serif); color: var(--accent); }
.event h3 { margin: 0 0 4px; font-size: 1.35rem; }
.event p { margin: 0; }
.contact-cards { display: grid; gap: 18px; }
.contact-card { padding: 22px; background: var(--card); border: 1px solid var(--line); }
.contact-card h3 { font-size: 1.25rem; margin-bottom: .3em; }
.contact-card p { margin: 0; }
.sold-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.sold-grid figure { margin: 0; }
.sold-grid img { aspect-ratio: 1; width: 100%; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 6%; }
.sold-grid figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ---------- footer */
.site-footer { background: var(--ink); color: #cfc7b9; font-size: .9rem; padding: clamp(48px, 7vw, 80px) 0 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand-name { color: #fff; font-size: 1.6rem; margin-bottom: 14px; display: inline-block; }
.footer-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid #3b362f; font-size: .78rem; color: #9d9589; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.members { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.members span { border: 1px solid #4a443b; padding: 6px 10px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(18, 16, 13, .94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 400 2.2rem/1 var(--serif); cursor: pointer; min-width: 48px; min-height: 48px; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
