/* Hallmark · theme: Sylven Pets locked design system · genre: editorial · shape: small catalogue · hero: real tumbler in use · nav: edge-aligned · footer: mast · signature: pet portrait and its subject together · v2.0.0 */
/* Critique: make the photo the lead, keep the product prices and operator easy to find, and give closed ordering a plain sentence instead of a dormant control. */

@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Bricolage;
  src: url("/assets/bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #243d31;
  --ink-hover: #355441;
  --paper: #fbfcf8;
  --body-ink: #465d4b;
  --muted: #5d6b60;
  --line: #dce2d8;
  --pale: #f0f2e9;
  --photo-ground: #eaede4;
  --focus: #684759;
  --focus-dark: #f5dc7a;
  --footer-muted: #d5dfd0;
  --font-heading: Bricolage, Georgia, serif;
  --font-body: Manrope, Arial, sans-serif;
  --weight-heading: 600;
  --page: 73rem;
  --gutter: clamp(1.3rem, 4.6vw, 3.9rem);
  --gap: clamp(1.35rem, 3.6vw, 3.25rem);
  --radius: .875rem;
  --radius-control: .4375rem;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; overflow-x: clip; }

body {
  background: var(--paper);
  color: var(--body-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
figure { margin: 0; min-width: 0; }
h1, h2, h3 { margin: 0; min-width: 0; overflow-wrap: break-word; color: var(--ink); font-family: var(--font-heading); font-weight: var(--weight-heading); }
h1 { font-size: clamp(2.8rem, 6.6vw, 5.45rem); line-height: .99; letter-spacing: -.045em; }
h2 { font-size: clamp(1.85rem, 4vw, 3.1rem); line-height: 1.07; letter-spacing: -.035em; }
h3 { font-size: clamp(1.23rem, 2.4vw, 1.65rem); line-height: 1.16; letter-spacing: -.022em; }

.wrap { width: min(calc(100% - var(--gutter) - var(--gutter)), var(--page)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: .55rem; left: .55rem; padding: .6rem .9rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus-visible { transform: translateY(0); }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 1rem; min-height: 4.4rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-family: var(--font-heading); font-weight: var(--weight-heading); font-size: 1.45rem; letter-spacing: -.035em; text-decoration: none; }
.masthead nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 clamp(.8rem, 2vw, 1.8rem); }
.masthead nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.opening { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: var(--gap); padding-block: clamp(1.8rem, 4.8vw, 4.5rem) clamp(2.5rem, 7vw, 6.2rem); }
.opening-copy { min-width: 0; padding-block: .4rem; }
.opening-copy h1 { max-width: 8.6ch; }
.opening-copy > p:first-of-type { max-width: 29ch; margin-block: 1.15rem 1.4rem; font-size: clamp(1rem, 2vw, 1.24rem); }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.2rem; border: 1px solid var(--ink); border-radius: var(--radius-control); background: var(--ink); color: var(--paper); font-size: .93rem; font-weight: 700; text-decoration: none; }
.primary:hover { background: var(--ink-hover); text-decoration: underline; }
.primary:active { background: var(--ink); }
.closed { margin-top: .85rem; color: var(--muted); font-size: .87rem; }
.opening-photo img, .listing-photo img, .product-photo img { width: 100%; background: var(--photo-ground); border-radius: var(--radius); object-fit: cover; }
.opening-photo img { aspect-ratio: 1.12; object-position: center 51%; }
figcaption { margin-top: .55rem; color: var(--muted); font-size: .83rem; line-height: 1.45; }

.collection { padding-block: clamp(1.75rem, 4.5vw, 3rem) clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.collection h2 { margin-bottom: clamp(1.3rem, 3vw, 2.1rem); }
.listings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.listing { min-width: 0; }
.listing-photo img { aspect-ratio: 1.38; object-position: center 57%; }
.listing-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-top: .9rem; }
.listing-caption a { display: inline-flex; align-items: center; min-height: 44px; }
.listing p { max-width: 46ch; margin-top: .25rem; }
.price { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notice { background: var(--pale); }
.notice-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--gap); padding-block: clamp(2rem, 5vw, 4rem); }
.notice-inner > div { max-width: 49ch; }
.notice-inner a { display: inline-flex; align-items: center; min-height: 44px; }

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--gap); padding-block: clamp(2rem, 5.2vw, 4.6rem); }
.product-summary { min-width: 0; }
.product-summary h1, .document h1 { font-size: clamp(2.45rem, 5vw, 4.3rem); line-height: 1.02; }
.product-summary > p { max-width: 41ch; }
.product-summary .product-price { margin-block: .75rem; font-size: 1.35rem; }
.product-summary .closed { margin-top: 1rem; }
.product-photo { grid-column: 2; grid-row: span 2; }
.product-photo img { aspect-ratio: 4 / 5; object-position: center 50%; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .7rem; font-size: .91rem; }
.product-details { grid-column: 1; min-width: 0; }
.product-details h2 { font-size: clamp(1.65rem, 2.7vw, 2.35rem); }
.product-details p { margin-top: 1.15rem; }
dl { margin: 1rem 0 0; }
dl > div { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); gap: .55rem 1rem; border-top: 1px solid var(--line); padding-block: .55rem; }
dt { color: var(--ink); font-weight: 700; }
dd { margin: 0; }

.document { max-width: 46rem; min-height: 60vh; padding-block: clamp(2.4rem, 6vw, 5rem); }
.document h1 { margin-bottom: 1.45rem; }
.document h2 { margin: 1.65rem 0 .55rem; font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
.document p + p, .document section + p, .document p + .primary { margin-top: 1.1rem; }
.document a { overflow-wrap: anywhere; }
.contact-link { display: inline-block; padding-block: .55rem; }

.site-footer { background: var(--ink); color: var(--footer-muted); }
.footer-inner { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: start; gap: var(--gap); padding-block: clamp(1.55rem, 4vw, 3rem); }
.site-footer a { color: var(--paper); }
.site-footer a:focus-visible { outline-color: var(--focus-dark); }
.site-footer p { margin-top: .2rem; font-size: .86rem; }

@media (max-width: 42rem) {
  .opening, .listings, .notice-inner, .product, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .opening-copy h1 { max-width: 11ch; }
  .opening-photo img { aspect-ratio: 1.28; }
  .product-photo { grid-column: auto; grid-row: auto; }
  .product-photo img { aspect-ratio: 1 / 1; }
  .product-details { grid-column: auto; }
  .footer-inner { gap: .8rem; }
}

@media (max-width: 23rem) {
  dl > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
