@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --ink: #172139;
  --paper: #f8f7f2;
  --white: #fffefa;
  --lime: #e2f65a;
  --line: #d7d8ce;
  --muted: #535b64;
  --text: "Archivo", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(22px, 5vw, 82px);
  --shell: 1536px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--text); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button, input, select { border-radius: 0; }
:focus-visible { outline: 2px solid #3a63aa; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 900; line-height: .94; letter-spacing: -.073em; word-spacing: .075em; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 4; top: 10px; left: 10px; padding: 10px 15px; background: var(--lime); }
.shell { width: min(100%, var(--shell)); margin-inline: auto; padding-inline: var(--gutter); }
.site-header { background: var(--paper); }
.header-inner { min-height: 79px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 21px; font-weight: 900; line-height: .82; letter-spacing: -.065em; }
.brand-dot { color: #657331; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 14px); gap: 2px; transform: rotate(-10deg); }
.brand-mark i { display: block; height: 14px; background: var(--ink); border-radius: 1px 7px 1px 7px; }
.brand-mark i:last-child { background: #819145; }
.header-nav { display: flex; gap: clamp(19px, 3.8vw, 59px); font-weight: 600; font-size: 14px; }
.header-nav a:hover, .site-footer nav a:hover, .site-footer nav button:hover { text-decoration: underline; text-underline-offset: 5px; }
.saved-trigger { justify-self: end; display: flex; align-items: center; gap: 9px; border: 1px solid var(--ink); background: transparent; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.saved-trigger:hover { background: var(--lime); }
.saved-trigger > span:first-child { font-size: 21px; line-height: 1; }
#saved-count { background: var(--ink); color: white; min-width: 21px; text-align: center; padding: 2px 4px; font: 500 11px/1.4 var(--mono); }
.hero { display: grid; grid-template-columns: .94fr 1.06fr; min-height: clamp(470px, 38vw, 655px); background: var(--ink); color: var(--paper); }
.hero-copy { padding: clamp(56px, 6vw, 106px) 22px clamp(56px, 6vw, 100px) max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter))); display: flex; flex-direction: column; align-items: start; justify-content: center; }
.overline { display: flex; align-items: center; gap: 10px; font: 600 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.signal { flex: none; width: 9px; height: 9px; background: #77843c; }
.hero .signal, .approach .signal { background: var(--lime); }
.hero h1 { font-size: clamp(48px, 6.35vw, 113px); word-spacing: .065em; margin: 25px 0 26px; }
.hero em, .approach em { color: var(--lime); font-style: normal; }
.hero-description { color: #e4e8ed; font-size: clamp(16px, 1.4vw, 22px); max-width: 380px; line-height: 1.45; }
.action { display: inline-flex; justify-content: space-between; align-items: center; gap: 22px; padding: 13px 17px; min-height: 47px; border: 1px solid transparent; font-size: 14px; line-height: 1.3; font-weight: 800; }
.action span { font-size: 18px; line-height: 1; }
.action.accent { background: var(--lime); color: var(--ink); margin-top: 29px; }
.action.accent:hover { background: var(--white); }
.action.outline { border-color: var(--ink); background: transparent; }
.action.outline:hover { color: var(--white); background: var(--ink); }
.hero-image { position: relative; overflow: hidden; min-width: 0; background: #a89c82; }
.hero-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.departments { background: var(--lime); }
.department-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.departments a { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 64px; padding: 13px clamp(9px, 2.4vw, 42px); border-inline-start: 1px solid rgba(23,33,57,.24); font-size: clamp(12px, 1.25vw, 17px); font-weight: 800; line-height: 1.25; }
.departments a:last-child { border-inline-end: 1px solid rgba(23,33,57,.24); }
.departments a:hover { background: var(--ink); color: var(--lime); }
.departments a span:last-child { font-size: 1.15em; }
.collection { padding-block: clamp(49px, 6.3vw, 96px) clamp(55px, 7vw, 100px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 33px; }
.section-heading h2, .at-home h2 { font-size: clamp(43px, 6vw, 94px); margin-top: 13px; }
.section-heading > p { color: var(--muted); max-width: 245px; padding-bottom: 3px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; padding: 12px 0; border-block: 1px solid var(--line); }
.filters, .catalog-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button, .search-field, .sort-field { display: flex; align-items: center; border: 1px solid var(--line); background: transparent; min-height: 38px; font-size: 13px; }
.filters button { gap: 7px; padding: 7px 11px; font-weight: 700; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filters small { font: 500 10px/1 var(--mono); opacity: .76; }
.search-field { gap: 9px; padding-inline: 11px 5px; }
.search-field input { min-width: 0; width: 125px; padding: 6px 4px; border: 0; background: transparent; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-icon { position: relative; width: 11px; height: 11px; border: 1px solid var(--ink); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; height: 1px; width: 5px; background: var(--ink); transform: rotate(45deg); top: 9px; left: 8px; }
.sort-field select { border: 0; background: transparent; padding: 6px 9px; }
.catalog-status { display: flex; justify-content: space-between; gap: 9px; margin: 15px 0; font: 500 10px/1.5 var(--mono); letter-spacing: .045em; text-transform: uppercase; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 29px 14px; }
.product-card { position: relative; min-width: 0; background: var(--white); border: 1px solid var(--line); }
.product-media { display: block; border: 0; padding: 0; width: 100%; aspect-ratio: 1.04; background: #e8e7de; overflow: hidden; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .23s ease; }
.product-media:hover .product-image { transform: scale(1.045); }
.product-info { padding: 14px 14px 17px; }
.product-brand, .detail-brand { color: var(--muted); font: 600 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.product-name { margin: 5px 0 5px; font-size: 19px; line-height: 1.12; letter-spacing: -.035em; }
.product-title { text-align: left; background: none; border: 0; padding: 0; font: inherit; font-weight: 800; }
.product-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-price { font: 600 11px/1.5 var(--mono); margin-top: 8px; }
.product-description { font-size: 13px; color: var(--muted); margin-top: 8px; }
.product-save { display: grid; place-items: center; position: absolute; top: 9px; right: 9px; background: var(--paper); border: 1px solid var(--ink); font-size: 20px; line-height: 1; width: 34px; height: 34px; }
.product-save:hover, .product-save[aria-pressed="true"] { background: var(--lime); }
.catalog-empty { grid-column: 1 / -1; padding: 40px 20px; border: 1px dashed var(--line); text-align: center; }
.more-row { display: flex; justify-content: center; margin-top: 25px; }
.source-note { color: var(--muted); font-size: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 33px; border-top: 1px solid var(--line); padding-top: 15px; }
.source-note a, a.detail-credit, .detail-credit a { text-decoration: underline; text-underline-offset: 3px; }
.approach { background: var(--ink); color: var(--paper); }
.approach-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px 55px; padding-block: clamp(45px, 7vw, 105px); }
.approach-inner .overline { grid-column: 1 / -1; }
.approach h2 { font-size: clamp(46px, 6.9vw, 111px); word-spacing: .05em; }
.approach-text { align-self: end; max-width: 410px; font-size: clamp(16px, 1.65vw, 24px); line-height: 1.45; }
.text-link { width: fit-content; display: inline-flex; gap: 15px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 14px; font-weight: 800; margin-top: 21px; }
.text-link:hover { border-bottom-width: 2px; padding-bottom: 3px; }
.approach .text-link { color: var(--lime); }
.at-home { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(27px, 6vw, 104px); padding-block: clamp(49px, 7vw, 106px); }
.at-home img { width: 100%; height: auto; }
.at-home h2 { font-size: clamp(42px, 5.6vw, 83px); }
.at-home div > p:not(.overline) { max-width: 360px; color: var(--muted); margin-top: 20px; }
.site-footer { background: var(--lime); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-block: 38px 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 9px 22px; justify-content: center; font-weight: 700; font-size: 13px; }
.site-footer nav button { background: transparent; border: 0; padding: 0; font: inherit; }
.back-top { font-size: 13px; font-weight: 700; }
.footer-legal { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #a8b646; grid-column: 1 / -1; padding-top: 13px; font: 500 11px/1.5 var(--mono); }
.dialog { border: 1px solid var(--ink); color: var(--ink); background: var(--paper); padding: 0; max-width: calc(100% - 30px); max-height: calc(100% - 30px); }
.dialog::backdrop { background: rgba(18,27,45,.72); }
.dialog-close-form { position: absolute; z-index: 1; top: 10px; right: 10px; }
.dialog-close { width: 37px; height: 37px; background: var(--paper); border: 1px solid var(--ink); line-height: 1; font-size: 25px; }
.dialog-close:hover { background: var(--lime); }
.product-dialog { width: 850px; }
#product-detail { display: grid; grid-template-columns: 1.05fr 1fr; }
.detail-media { background: #e8e7de; }
.detail-image { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.detail-content { padding: 43px 29px 27px; }
.detail-title { font-size: clamp(27px, 4vw, 49px); margin: 8px 0 14px; }
.detail-description { margin: 13px 0; }
.detail-price { font: 600 14px/1.4 var(--mono); }
.detail-note, .detail-credit, .dialog-note { font-size: 13px; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.detail-actions > *, .saved-item-remove, .catalog-retry { display: inline-flex; align-items: center; background: var(--lime); border: 1px solid var(--ink); padding: 8px 11px; font-size: 13px; font-weight: 700; }
.detail-note, .detail-credit { display: block; margin-top: 12px; }
.saved-dialog { width: 550px; padding: 34px 23px 24px; }
.saved-dialog h2 { font-size: 39px; margin-bottom: 10px; padding-right: 27px; }
.saved-dialog p + p { margin-top: 12px; }
.saved-items { list-style: none; margin: 13px 0 0; padding: 0; }
.saved-item { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 7px 0; }
.saved-item-open { display: flex; align-items: center; flex: 1; gap: 10px; border: 0; padding: 0; background: transparent; text-align: left; }
.saved-item-image { width: 64px; height: 64px; object-fit: cover; }
.saved-item-info { display: grid; gap: 3px; }
.saved-empty { padding-top: 14px; }
@media (max-width: 950px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 660px) {
  .header-inner { grid-template-columns: 1fr 1fr; gap: 0 12px; min-height: auto; padding-top: 14px; }
  .header-nav { grid-row: 2; grid-column: 1 / -1; gap: 25px; min-height: 43px; align-items: center; font-size: 13px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px var(--gutter) 39px; }
  .hero h1 { font-size: clamp(40px, 11.8vw, 75px); margin-block: 19px; }
  .hero-image { aspect-ratio: 1.38; }
  .department-inner { padding-inline: 0; }
  .departments a { min-height: 56px; }
  .section-heading { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 22px; }
  .section-heading > p { max-width: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 9px; }
  .product-info { padding: 11px 9px 12px; }
  .product-name { font-size: 16px; }
  .source-note, .approach-inner, .at-home { grid-template-columns: 1fr; }
  .source-note { gap: 11px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .site-footer nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  #product-detail { grid-template-columns: 1fr; }
  .detail-image { max-height: 40vh; min-height: 0; }
  .detail-content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.detail-specs { margin: 14px 0; border-top: 1px solid var(--line); }
.detail-spec { display: grid; grid-template-columns: minmax(88px, .7fr) 1fr; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.detail-spec dt { color: var(--muted); font-weight: 600; }
.detail-spec dd { margin: 0; }
