/* Lowenfold — site styles */
:root {
  --bg: #f7f7f5;
  --ink: #161615;
  --mid: #6b6b67;
  --rule: #e6e6e2;
  --tone: #d9d8d2;
  --tone-deep: #b9b8b1;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3.4vw, 48px);
  --nav-h: 72px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mid); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
.serif { font-family: var(--serif); }
.wrap { padding-inline: var(--gutter); }
.label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.link-ul { display: inline-block; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid var(--ink); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: #333331; }
.btn.wide { width: 100%; }

/* Admin preview banner */
.preview-note { display: flex; justify-content: center; gap: 24px; align-items: center; padding: 10px 16px; background: var(--ink); color: var(--bg); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }
.preview-note a { border-bottom: 1px solid currentColor; }

/* Announcement + header */
.bar { height: 32px; display: flex; align-items: center; justify-content: center; text-align: center; padding-inline: 16px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); border-bottom: 1px solid var(--rule); white-space: nowrap; overflow: hidden; }
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); background: rgba(247,247,245,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--rule); }
.nav-links { display: flex; gap: 28px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links.right { justify-content: flex-end; }
.nav-links a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
.logo img { height: 44px; width: auto; }
.menu-btn { display: none; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 9; max-height: 82vh; min-height: 420px; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: 0 var(--gutter) clamp(32px, 4.5vw, 64px); }
.hero-copy h1 { font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.hero-copy .link-ul { margin-top: 8px; width: fit-content; }

/* Image slots */
.ph { position: relative; margin: 0; background: linear-gradient(170deg, var(--tone) 0%, var(--tone-deep) 100%); overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:not(:has(img))::after { content: attr(data-slot); position: absolute; left: 12px; bottom: 10px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(22,22,21,0.45); }
.hero .ph { position: absolute; inset: 0; }
.ph.portrait { aspect-ratio: 3 / 4; }

/* Sections */
.section { padding-block: clamp(64px, 7vw, 112px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 34px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card .meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.card .meta .sub { color: var(--mid); }
.card .ph { transition: opacity .3s; }
.card:hover .ph { opacity: .92; }
.tile { display: flex; flex-direction: column; gap: 16px; }
.tile .ph { aspect-ratio: 4 / 5; }
.tile .row { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.statement { padding-block: clamp(96px, 11vw, 160px); display: flex; justify-content: center; }
.statement p { max-width: 760px; text-align: center; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; text-wrap: pretty; }

/* Footer */
.footer { border-top: 1px solid var(--rule); padding-block: 56px 40px; display: flex; flex-direction: column; gap: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: 12px; line-height: 2; letter-spacing: 0.04em; }
.footer-grid .col { display: flex; flex-direction: column; }
.footer-grid .col .label { color: var(--mid); margin-bottom: 8px; }
.news { display: flex; flex-direction: column; gap: 12px; }
.news form { display: flex; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.news input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); padding: 0; }
.news input::placeholder { color: var(--mid); }
.news button { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--mid); letter-spacing: 0.08em; }

/* Shop */
.page-head { padding-block: clamp(48px, 6vw, 80px) 0; display: flex; flex-direction: column; gap: 24px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); line-height: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.filters button { padding-bottom: 3px; border-bottom: 1px solid transparent; color: var(--mid); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.shop-grid { padding-block: 40px 0; }

/* Product */
.product { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; padding-block: 32px 0; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 16px; }
.details { position: sticky; top: calc(var(--nav-h) + 32px); display: flex; flex-direction: column; gap: 28px; }
.details h1 { font-family: var(--serif); font-size: clamp(32px, 3vw, 44px); line-height: 1.1; }
.details .price { font-size: 15px; }
.details .colour { color: var(--mid); font-size: 13px; }
.details .desc { font-size: 14px; line-height: 1.7; max-width: 46ch; text-wrap: pretty; }
.sizes { display: flex; flex-direction: column; gap: 12px; }
.sizes .row { display: flex; justify-content: space-between; }
.sizes .row a { color: var(--mid); font-size: 12px; border-bottom: 1px solid var(--rule); }
.size-list { display: flex; gap: 8px; flex-wrap: wrap; }
.size-list button { min-width: 48px; height: 44px; padding: 0 12px; border: 1px solid var(--rule); font-size: 12px; letter-spacing: 0.08em; }
.size-list button:hover { border-color: var(--ink); }
.size-list button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.spec { display: flex; flex-direction: column; font-size: 13px; }
.spec details { border-top: 1px solid var(--rule); }
.spec details:last-child { border-bottom: 1px solid var(--rule); }
.spec summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 14px 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.spec summary::-webkit-details-marker { display: none; }
.spec summary::after { content: "+"; font-size: 14px; }
.spec details[open] summary::after { content: "–"; }
.spec .body { padding: 0 0 16px; color: var(--mid); line-height: 1.7; max-width: 46ch; }
.form-note { font-size: 12px; color: var(--mid); }
.related { padding-block: clamp(80px, 9vw, 128px) 0; }

/* About */
.about-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; padding-block: 32px 0; }
.about-hero .ph { aspect-ratio: 4 / 5; }
.about-copy { display: flex; flex-direction: column; gap: 24px; padding: 0 clamp(0px, 4vw, 64px); }
.about-copy h1 { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); line-height: 1.05; text-wrap: balance; }
.about-copy p { font-size: 15px; line-height: 1.7; max-width: 52ch; text-wrap: pretty; }
.prose { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-block: clamp(64px, 8vw, 120px) 0; }
.prose .label { grid-column: span 3; color: var(--mid); }
.prose .text { grid-column: 5 / span 6; display: flex; flex-direction: column; gap: 20px; font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.prose h2 { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; }

/* Bag drawer + mobile menu */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(22,22,21,0.3); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; z-index: 50; height: 100dvh; width: min(440px, 100vw); background: var(--bg); transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); padding: 0 24px; border-bottom: 1px solid var(--rule); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.drawer-empty { color: var(--mid); font-size: 13px; }
.line { display: grid; grid-template-columns: 88px 1fr; gap: 16px; }
.line .ph { aspect-ratio: 3 / 4; }
.line .ph::after { display: none; }
.line .info { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.line .info .sub { color: var(--mid); }
.line .qty { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.line .qty button { width: 28px; height: 28px; border: 1px solid var(--rule); }
.line .remove { color: var(--mid); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.drawer-foot { border-top: 1px solid var(--rule); padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.drawer-foot .total { display: flex; justify-content: space-between; font-size: 13px; }
.drawer-foot .note { font-size: 12px; color: var(--mid); }
.menu { position: fixed; inset: 0; z-index: 50; background: var(--bg); transform: translateX(-100%); transition: transform .3s ease; display: flex; flex-direction: column; padding: 0 var(--gutter) 32px; }
.menu.open { transform: none; }
.menu-head { display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.menu-list { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; font-family: var(--serif); font-size: 36px; }
.menu-small { margin-top: auto; display: flex; flex-direction: column; gap: 12px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); padding: 12px 20px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav-links.left { display: none; }
  .nav-links.right a.hide-m { display: none; }
  .menu-btn { display: inline-block; }
  .logo img { height: 32px; }
  .hero { aspect-ratio: 4 / 5; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .details { position: static; }
  .about-hero { grid-template-columns: 1fr; }
  .prose { grid-template-columns: 1fr; }
  .prose .label, .prose .text { grid-column: auto; }
  .bar { height: auto; padding: 8px 16px; white-space: normal; line-height: 1.4; font-size: 10px; }
  .gallery { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .ph { flex: 0 0 84%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .menu, .scrim, .toast, .card .ph, .btn { transition: none; }
}

[hidden] { display: none !important; }
