@font-face {
  font-family: "Baskervville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/baskervville.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Baskervville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/baskervville-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --ink: #151d29;
  --night: #141d2b;
  --paper: #f9f7f3;
  --warm: #ede5da;
  --soft: #5e5a55;
  --champagne: #ddc5a4;
  --rule: #d8d0c4;
  --display: "Baskervville", "Baskerville", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  --gutter: clamp(22px, 6vw, 100px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
::selection { color: var(--ink); background: var(--champagne); }
:focus-visible { outline: 2px solid #8b5c34; outline-offset: 5px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h2 { font-size: clamp(55px, 6.4vw, 94px); line-height: .92; letter-spacing: -.04em; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; z-index: 3; inset: 8px auto auto 8px; padding: 10px 16px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.content { width: min(100%, 1550px); margin-inline: auto; padding-inline: var(--gutter); }

.site-header { background: var(--paper); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 0 var(--gutter); gap: 18px; }
.wordmark { width: fit-content; }
.wordmark img { width: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 58px); }
.site-header nav a, .social-link { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.site-header nav a:hover, .social-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.social-link { justify-self: end; }

.hero-images { display: grid; grid-template-columns: 1.08fr 1fr; gap: 2px; height: clamp(430px, 43vw, 670px); overflow: hidden; background: var(--paper); }
.hero-images img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hero-portrait { object-position: 50% 12%; }
.hero-tailoring { object-position: 50% 73%; }
.hero-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px var(--gutter) 22px; border-bottom: 1px solid var(--rule); }
.hero h1 { font-size: clamp(30px, 3.2vw, 52px); letter-spacing: -.035em; line-height: 1.03; }
.hero-location { display: inline-block; margin-top: 6px; color: var(--soft); font-size: 13px; }
.hero-location:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 50px; padding: 12px 17px; border: 1px solid transparent; font-size: 12px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.button-dark { background: var(--night); color: var(--paper); }
.button-dark:hover { background: transparent; border-color: var(--night); color: var(--ink); }

.catalog { padding-block: clamp(66px, 8vw, 128px) clamp(65px, 8vw, 110px); }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 40px; }
.catalog-heading p { width: min(100%, 34ch); color: var(--soft); }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; }
.filters button { position: relative; min-height: 50px; border: 0; padding: 4px 0; background: none; color: var(--soft); font-size: 13px; }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -1px; inset-inline: 0; border-bottom: 2px solid var(--ink); }
.catalog-count { margin-left: auto; color: var(--soft); font-size: 11px; letter-spacing: .14em; white-space: nowrap; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(12px, 2vw, 32px); }
.look { position: relative; min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.look figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--warm); }
.look img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .55s cubic-bezier(.22, .68, 0, 1); }
.look[data-category="haljine"] img { object-position: center 8%; }
.look:has(button:hover) img, .look:has(button:focus-visible) img { transform: scale(1.045); }
.look-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 82px; border-bottom: 1px solid var(--rule); padding-block: 13px 16px; }
.look-caption span { display: block; margin-top: 5px; color: var(--soft); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.look-caption h3 { font-size: clamp(21px, 2.2vw, 32px); line-height: 1.03; }
.look-open { display: grid; place-items: center; border: 1px solid var(--rule); background: transparent; padding: 0; width: 42px; height: 42px; flex: 0 0 auto; transition: background .2s, color .2s; }
.look-open::after { content: ""; position: absolute; inset: 0; }
.look-open:hover, .look-open:focus-visible { background: var(--ink); color: var(--paper); }
.catalog-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 29px; color: var(--soft); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; min-height: 44px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover { color: #77512f; }
.text-link .icon { width: 16px; height: 16px; }

.visit { display: grid; grid-template-columns: 48% 52%; background: var(--warm); }
.visit-image { min-height: 570px; position: relative; background: #ad9981; }
.visit-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.visit-content { align-self: center; padding: 75px var(--gutter); }
.visit-content p { max-width: 40ch; margin: 24px 0 26px; color: var(--soft); }
address { font-style: normal; line-height: 1.55; }
address strong { font-weight: 700; }
.visit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 19px; margin-top: 25px; }
.phone { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--soft); font-size: 14px; }
.phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 25px; min-height: 108px; }
.footer-inner p { color: var(--soft); font-size: 13px; }

.look-dialog { position: fixed; border: 0; padding: 0; color: var(--ink); background: var(--paper); width: min(810px, calc(100% - 36px)); max-height: calc(100% - 36px); }
.look-dialog::backdrop { background: rgb(11 16 24 / 72%); }
.dialog-layout { display: grid; grid-template-columns: 45% 55%; }
.dialog-photo { min-height: 455px; display: grid; place-items: center; background: var(--warm); }
.dialog-photo img { width: 100%; max-height: 600px; object-fit: contain; }
.dialog-copy { align-self: center; padding: 62px clamp(22px, 4vw, 50px) 45px; }
.dialog-copy h2 { font-size: clamp(37px, 5vw, 62px); line-height: .98; }
.dialog-copy p { margin-top: 16px; color: var(--soft); }
.dialog-contact { margin-top: 24px; }
.close { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--paper); border: 1px solid var(--rule); }
.close:hover { background: var(--warm); }

@media (max-width: 890px) {
  .visit-content { padding-block: 55px; }
}

@media (max-width: 650px) {
  .header-inner { min-height: 62px; gap: 12px; }
  .site-header .wordmark img { height: 23px; }
  .site-header nav { gap: 19px; }
  .social-link { width: 36px; justify-content: end; }
  .social-link span { display: none; }
  .hero-images { grid-template-columns: 1fr; height: clamp(345px, 108vw, 490px); }
  .hero-images .hero-tailoring { display: none; }
  .hero-portrait { object-position: 50% 8%; }
  .hero-bar { align-items: start; flex-direction: column; gap: 3px; padding-block: 19px 12px; }
  .catalog-heading { display: block; margin-bottom: 24px; }
  .catalog-heading p { margin-top: 12px; font-size: 14px; }
  .catalog-controls { margin-bottom: 14px; gap: 8px; align-items: start; }
  .filters { gap: 0 14px; }
  .filters button { min-height: 44px; font-size: 12px; }
  .catalog-count { margin-top: 14px; letter-spacing: .04em; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .look-caption { min-height: 69px; padding: 10px 0; gap: 3px; }
  .look-caption h3 { font-size: clamp(17px, 4.4vw, 25px); }
  .look-open { width: 30px; height: 34px; }
  .look-open .icon { width: 15px; height: 15px; }
  .catalog-footer { margin-top: 15px; align-items: start; flex-direction: column; gap: 0; }
  .visit { grid-template-columns: 1fr; }
  .visit-image { min-height: 0; height: clamp(285px, 75vw, 440px); }
  .visit-content { padding: 51px var(--gutter) 43px; }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; padding-block: 23px; }
  .footer-inner p { order: 3; flex-basis: 100%; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-photo { min-height: 0; height: min(38vh, 340px); }
  .dialog-photo img { height: 100%; min-height: 0; }
  .dialog-copy { padding: 24px 20px 28px; }
}

@media (max-width: 360px) {
  .site-header nav { gap: 14px; }
  .filters { gap: 0 9px; }
  .catalog-controls { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
