/* That Brand "palace" design layer. Hard edges, bone #EAE7DF + ink #16150F, Archivo 900 + Space Mono.
   Ported from the static mock (htdocs/thatbrand-palace). This is the ONE shared stylesheet: tokens, the three floating bars,
   frames, buttons, the tile grid, footer, forms. Page-specific CSS lives in palace-shop.css / palace-pages.css / palace-account.css,
   the bag drawer in palace-cart.css, hover + add-to-bag motion in palace-fx.css. */

/* WordPress / WooCommerce reset bits */
.screen-reader-text, .visually-hidden { position: absolute !important; 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; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--white); text-transform: uppercase; font-size: 12px; text-decoration: none; }
.skip-link:focus { left: 8px; }
body.admin-bar .util, body.admin-bar .menu, body.admin-bar .pill { top: 46px; }
@media (min-width: 783px) { body.admin-bar .util, body.admin-bar .menu, body.admin-bar .pill { top: 46px; } }
ul.menu { list-style: none; }

:root {
  --white: #EAE7DF; --ink: #16150F; --grey: #66635a; --tile: #DFDBD1; --line: #CBC7BC;
  --blue: #16150F; --blue-ink: #EAE7DF; /* the live store has no accent colour: the button is its ink */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "Courier New", monospace;
  --gap: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--mono); font-weight: 400; font-size: 13px; line-height: 1.6; letter-spacing: .06em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
input, button { border-radius: 0; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-weight: inherit; }

/* three floating bars, always on top: the menu at the far left, the logo in the middle, the store links (search, account, cart) at the far right */
.util, .menu { position: fixed; z-index: 20; top: 14px; right: 22px; display: flex; align-items: center; gap: 22px; padding: 12px 22px; background: var(--ink); color: var(--white); white-space: nowrap; }
.util a, .menu a { text-decoration: none; text-transform: uppercase; font-size: 12px; line-height: 1; transition: color .15s; }
.util a:hover, .menu a:hover { color: #b9b5a8; }
.menu { right: auto; left: 22px; }
.pill { position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 26px; padding: 12px 28px; background: var(--ink); color: var(--white); white-space: nowrap; }
.pill a { text-decoration: none; text-transform: uppercase; font-size: 12px; line-height: 1; transition: color .15s; }
.pill a:hover { color: #b9b5a8; }
.pill, .util, .menu { min-height: 42px; }
.util [data-cart-count] { font-variant-numeric: tabular-nums; }
.pill .mark { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: -.01em; }

/* a frame: one full-screen photograph, square-cornered, inset on the bone page */
.frame { position: relative; height: calc(100svh - 2 * var(--gap)); min-height: 520px; margin: var(--gap); overflow: hidden; background: var(--ink); }
.frame > .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.frame > .photo.is-on { opacity: 1; transform: none; }

/* the drops: an ink panel, one line each; the active one is bone, the rest grey */
.drops { position: absolute; left: 22px; bottom: 22px; z-index: 2; margin: 0; padding: 20px 28px 22px; list-style: none; background: var(--ink); max-width: calc(100% - 200px); }
.drops button { display: block; font-family: var(--display); font-weight: 900; letter-spacing: -.035em; font-size: clamp(26px, 3vw, 42px); line-height: 1.08; color: #8f8d82; transition: color .2s; }
.drops button:hover { color: #d6d2c7; }
.drops button[aria-pressed="true"] { color: var(--white); }
.drops button[aria-pressed="true"]::before { content: ""; display: inline-block; width: .34em; height: .34em; margin-right: .3em; background: var(--white); vertical-align: .08em; }

/* the one loud thing: an ink button with a bone hairline, so it reads on any photograph */
.btn { display: inline-block; padding: 16px 22px 15px; background: var(--blue); color: var(--blue-ink); text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 12px; letter-spacing: .08em; line-height: 1; box-shadow: 0 0 0 1px rgba(234, 231, 223, .6); transition: transform .15s var(--ease), background .15s; }
.btn:hover { background: #34322a; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.frame > .btn { position: absolute; z-index: 2; right: 22px; bottom: 22px; }

/* the web shop: tight grid, big pictures, tiny words */
.section { padding: 56px var(--gap) 0; }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 0 6px 14px; text-transform: uppercase; font-size: 12px; }
.bar .filters { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--grey); }
.bar .filters .on { color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.item { display: block; text-decoration: none; padding-bottom: 20px; }
.item .tile { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--tile); }
.item .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.item:hover .tile img { transform: scale(1.03); }
.item .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 6px 0; }
.item .name { font-family: var(--display); font-weight: 900; letter-spacing: -.035em; font-size: 26px; line-height: 1.05; }
.item .price { font-size: 14px; font-variant-numeric: tabular-nums; }
.item .note { padding: 6px 6px 0; color: var(--grey); font-size: 12px; text-transform: uppercase; }

/* advice: the brand story and the fine print, set big and flat */
.advice { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; padding: 0 6px; }
.advice h2 { margin: 0 0 22px; font-size: 12px; text-transform: uppercase; }
.advice .statement { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.04em; font-size: clamp(30px, 4.1vw, 62px); line-height: 1.04; }
.advice .statement .grey { color: #6b685f; }
.facts { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 13px; border-bottom: 1px solid var(--line); text-transform: uppercase; font-size: 13px; }
.facts li span:last-child { text-align: right; }
.advice p.body { margin: 22px 0 0; font-size: 13px; line-height: 1.7; max-width: 46ch; }

/* the closing frame: same language as the opening one */
.close .panel { position: absolute; left: 22px; bottom: 22px; z-index: 2; background: var(--ink); color: var(--white); padding: 24px 30px 26px; max-width: min(780px, calc(100% - 200px)); }
.close .panel h2 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.04em; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.02; }
.close .panel p { margin: 14px 0 0; font-size: 13px; color: #c9c5ba; }
.close > .photo { opacity: 1; transform: none; object-position: 50% 40%; }

/* footer: small columns, a monogram */
footer { margin: 0 var(--gap) var(--gap); padding: 40px 6px 0; }
.cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 24px; }
.cols h3 { margin: 0 0 14px; font-size: 11px; text-transform: uppercase; color: var(--grey); }
.cols ul { margin: 0; padding: 0; list-style: none; }
.cols li { margin: 0 0 6px; font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: 0; }
.cols a { text-decoration: none; }
.cols a:hover { color: var(--grey); }
.signup { display: block; }
.signup input { font: inherit; letter-spacing: .06em; text-transform: uppercase; padding: 14px 12px 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.signup button { align-self: stretch; text-align: center; padding: 14px 12px 12px; background: var(--tile); color: #6f6c62; text-transform: uppercase; cursor: not-allowed; }
.logo { justify-self: end; width: 120px; aspect-ratio: 1; display: grid; place-items: center; background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 900; font-size: 56px; letter-spacing: -.06em; }
.legal { display: flex; justify-content: space-between; margin-top: 36px; padding: 14px 0 6px; font-size: 11px; text-transform: uppercase; color: var(--grey); }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .advice { grid-template-columns: 1fr; gap: 36px; }
  .cols { grid-template-columns: repeat(2, 1fr); }
  .logo { justify-self: start; }
}
@media (max-width: 700px) {
  .util { top: 62px; right: 12px; }
}
@media (max-width: 600px) {
  .pill { gap: 16px; padding: 11px 20px; }
  .pill a { font-size: 11px; }
  .pill, .util { min-height: 38px; }
  .menu, .util .hide-sm { display: none; }
  .util { gap: 16px; padding: 11px 16px; }
  .util a { font-size: 11px; }
  .pill .mark { font-size: 15px; }
  .frame { min-height: 480px; }
  .drops { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 16px 20px 18px; }
  .drops button { font-size: 26px; }
  .frame > .btn { right: auto; left: 12px; bottom: auto; top: 62px; padding: 14px 16px 13px; }
  .grid { grid-template-columns: 1fr; }
  .close .panel { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 18px 20px 22px; }
  .cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame > .photo, .item .tile img, .btn { transition: none; }
}

/* shared: giant page heading (About, Contact, Collection, Account) */
.pg-head { padding: 118px 6px 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 32px; flex-wrap: wrap; }
.pg-head h1 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.05em; font-size: clamp(56px, 9vw, 140px); line-height: .9; }
.pg-head p { margin: 0 0 8px; max-width: 34ch; font-size: 13px; line-height: 1.7; }
@media (max-width: 900px) { .pg-head { padding-top: 130px; } }

/* shared: form bits */
/* shared form bits (same as checkout) */
.f { display: block; margin: 0 0 12px; }
.f > span { display: block; margin: 0 0 6px; font-size: 11px; text-transform: uppercase; color: var(--grey); }
.f input { width: 100%; font: inherit; letter-spacing: .02em; padding: 15px 14px 13px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 0; appearance: none; -webkit-appearance: none; }
.f input:hover { border-color: #a9a597; }
.f input:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.f input::placeholder { color: #a39f93; text-transform: uppercase; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.tick { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-size: 12px; text-transform: uppercase; cursor: pointer; }
.tick input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1px solid currentColor; border-radius: 0; background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.tick input:checked { background: currentColor; }
.tick input:checked::after { content: ""; width: 8px; height: 8px; background: var(--white); }
.tick input:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.go { display: block; width: 100%; margin-top: 22px; padding: 21px 22px 20px; background: var(--ink); color: var(--white); text-align: center; text-transform: uppercase; font-weight: 700; font-size: 12px; letter-spacing: .08em; line-height: 1; transition: background .15s, transform .15s var(--ease); }
.go:hover { background: #34322a; transform: translateY(-2px); }
.go:active { transform: translateY(0); }
.go.alt { background: var(--white); color: var(--ink); }
.go.alt:hover { background: #fff; }
.fine { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--grey); }
.fine a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mock { margin: 0 0 16px; font-size: 12px; line-height: 1.6; color: var(--grey); }
.f select, .f textarea { width: 100%; font: inherit; letter-spacing: .02em; padding: 15px 14px 13px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 0; appearance: none; -webkit-appearance: none; }
.f textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.f select { padding-right: 40px; cursor: pointer; text-transform: uppercase; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: #a9a597; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.f [aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
[hidden] { display: none !important; }

/* shared: ink slab (account register, contact details) */
.slab { background: var(--ink); color: var(--white); padding: 28px 28px 30px; }
.slab h2 { display: block; margin: 0 0 8px; padding: 0; border: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.045em; font-size: clamp(34px, 3.6vw, 56px); line-height: 1; text-transform: none; }
.slab h2 span { color: #8f8d82; }
.slab .why { margin: 0 0 22px; font-size: 13px; line-height: 1.7; color: #c9c5ba; max-width: 40ch; }

/* shared: newsletter slab */
.news { margin: 0 var(--gap); background: var(--ink); color: var(--white); padding: 64px 40px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 56px; align-items: end; }
.news .kick { margin: 0 0 22px; font-size: 12px; text-transform: uppercase; color: #b9b5a8; }
.news h2 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.045em; font-size: clamp(34px, 5.2vw, 80px); line-height: 1; }
.news h2 .grey { color: #8f8d82; }
.news form { display: flex; flex-direction: column; gap: 10px; }
.news label span { display: block; margin: 0 0 8px; font-size: 11px; text-transform: uppercase; color: #b9b5a8; }
.news input { width: 100%; font: inherit; font-size: 15px; letter-spacing: .06em; padding: 18px 16px 16px; border: 1px solid #5a5849; background: transparent; color: var(--white); border-radius: 0; }
.news input::placeholder { color: #8f8d82; text-transform: uppercase; }
.news input:hover { border-color: #a9a597; }
.news input:focus { outline: 0; border-color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.news button { padding: 20px 22px 19px; text-align: center; background: var(--white); color: var(--ink); text-transform: uppercase; font-weight: 700; font-size: 12px; letter-spacing: .08em; line-height: 1; transition: background .15s, transform .15s var(--ease); }
.news button:hover { background: #fff; transform: translateY(-2px); }
.news button:active { transform: translateY(0); }
.news .fine { margin: 6px 0 0; font-size: 12px; letter-spacing: .02em; color: #a9a597; line-height: 1.6; max-width: 46ch; }
.news .thanks { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.035em; font-size: clamp(26px, 3vw, 42px); line-height: 1.05; }
.news [hidden] { display: none; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; padding: 48px 28px 40px; } }
@media (max-width: 600px) { .news { padding: 36px 20px 30px; } }
.news .grey { color: #8f8d82; }
