/* Modern Man — house style.
   Ink, ivory and one brass. A Garamond for the voice, a geometric sans for the labels.
   Square corners, hairline rules, no shadows. */

:root {
  --ink: #14130f;
  --ink-raised: #1d1b17;
  --ivory: #f5f1e8;
  --paper: #ebe5d8;
  --line: #d6cdbb;
  --line-dark: #3a362f;
  --muted: #5b564d;
  --stone: #b9b2a5;
  --brass: #b8955c;
  --brass-deep: #7a5c2b;
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --font-text: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 0;
  --wrap: 78rem;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --space: clamp(4.5rem, 10vw, 9rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  padding: .75rem 1.25rem; background: var(--ink); color: var(--ivory);
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 6.4vw, 6rem); line-height: .98; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.5rem); line-height: 1.04; }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.15; font-weight: 600; }
h1 em, h2 em { font-style: italic; font-weight: 500; }

p { margin: 0 0 1.1em; max-width: 36em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.6; color: var(--muted); font-weight: 300; }

/* ---------- links and buttons ---------- */

.button {
  display: inline-block;
  padding: 1.05rem 2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--ivory);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.button:hover { background: transparent; color: var(--ink); }
.button--light { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.button--light:hover { background: transparent; color: var(--ivory); }

.text-link {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .2rem;
}
.text-link:hover { color: var(--brass-deep); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; margin-top: 2.75rem; max-width: none; }

/* ---------- header ---------- */

.topline {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 0; max-width: none;
  padding: .6rem var(--gutter);
  background: var(--ink); color: var(--stone);
  font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase;
}
.topline a { text-decoration: none; color: var(--ivory); }
.topline a:hover { color: var(--brass); }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.wordmark { grid-column: 2; display: grid; justify-items: center; gap: .6rem; text-decoration: none; }
.wordmark img { display: block; width: auto; }
.wordmark__mono { height: 3rem; }
.wordmark__word { height: 1.0625rem; }

.primary { grid-column: 1; grid-row: 1; }
.primary ul, .phone-menu ul { list-style: none; margin: 0; padding: 0; }
.primary ul { display: flex; gap: 2.25rem; }
.primary a, .masthead__cta {
  font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding-bottom: .25rem; border-bottom: 1px solid transparent;
}
.primary a:hover, .primary a[aria-current="page"] { border-bottom-color: var(--ink); }
.masthead__cta { grid-column: 3; justify-self: end; border-bottom-color: var(--ink); }
.masthead__cta:hover { color: var(--brass-deep); border-bottom-color: var(--brass-deep); }

.phone-menu { display: none; }

/* ---------- photographs (one file per slot: images/photos/<name>.webp) ---------- */

.frame { position: relative; margin: 0; overflow: hidden; background: var(--ink-raised); }
/* The frame's size comes from the layout, never from the photo, so a new photo of any shape drops into the same slot. */
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.credit {
  position: absolute; left: 0; bottom: 0;
  padding: .45rem .75rem;
  background: rgba(20, 19, 15, .78); color: var(--stone);
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
}
.credit a { color: var(--ivory); text-decoration: none; }
.credit a:hover { color: var(--brass); }

.caption { margin-top: .9rem; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- home: hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: min(52rem, calc(100svh - 7.5rem));
  border-bottom: 1px solid var(--line);
}
.hero__text { align-self: center; padding: var(--space) var(--gutter); }
.hero__text h1 { max-width: 10.5em; }
.hero__text .lede { margin-top: 2rem; }
.hero__picture { border-left: 1px solid var(--line); min-height: 34rem; }
.hero__picture img { object-position: 50% 30%; }

/* ---------- home: the house label ---------- */

.label {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.label__picture { aspect-ratio: 1; border-right: 1px solid var(--line); }
.label__text { align-self: center; padding: var(--space) var(--gutter); }
.label__text h2 { max-width: 13em; margin-bottom: 2.75rem; }
.label__facts { margin: 0; border-top: 1px solid var(--ink); max-width: 40rem; }
.label__facts > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.label__facts dt { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; }
.label__facts dd { margin: 0; color: var(--muted); }

/* ---------- home: the wardrobe, head to toe ---------- */

.wardrobe {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: var(--space) var(--gutter);
  max-width: var(--wrap);
  margin: 0 auto;
}
.wardrobe h2 { margin-bottom: 3rem; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ledger li { border-bottom: 1px solid var(--line); }
.ledger a {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.4rem 0;
  text-decoration: none;
}
.ledger__no { font-size: .75rem; letter-spacing: .2em; color: var(--brass-deep); font-weight: 500; }
.ledger__name { font-family: var(--font-display); font-size: clamp(1.875rem, 3vw, 2.625rem); line-height: 1; transition: transform .3s ease; }
.ledger__note { font-size: .8125rem; letter-spacing: .06em; color: var(--muted); text-align: right; }
.ledger a:hover .ledger__name { transform: translateX(.6rem); font-style: italic; }
.wardrobe__picture { align-self: end; aspect-ratio: 3 / 4; }

/* ---------- dark band ---------- */

.band { background: var(--ink); color: var(--ivory); }
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: end;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--space) var(--gutter);
}
.band .eyebrow { color: var(--brass); }
.band h2 { font-size: clamp(2.4rem, 4.6vw, 4.25rem); }
.band p { color: var(--stone); }
.band__body { border-top: 1px solid var(--brass); padding-top: 2rem; }
.band .actions { margin-top: 2.25rem; }

/* ---------- home: inside the shop ---------- */

.inside { max-width: var(--wrap); margin: 0 auto; padding: var(--space) var(--gutter); }
.inside__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.inside__head p { color: var(--muted); max-width: 26em; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.mosaic .frame { min-height: 18rem; }
.mosaic__a { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 38rem; }
.mosaic__b { grid-column: 8 / 13; grid-row: 1; }
.mosaic__c { grid-column: 8 / 13; grid-row: 2; }

/* ---------- visit strip ---------- */

.visit-strip { background: var(--paper); border-top: 1px solid var(--line); }
.visit-strip__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); }
.visit-strip h2 { margin-bottom: 2.5rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.facts > div { padding: 1.75rem 2rem 0 0; }
.facts > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.facts dt { font-size: .6875rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: .9rem; }
.facts dd { margin: 0; font-size: 1rem; }
.facts dd + dd { margin-top: .9rem; }
.facts .big { font-family: var(--font-display); font-size: 1.625rem; line-height: 1.2; }
.facts a { text-decoration-thickness: 1px; text-underline-offset: .2em; }

.hours { margin: 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { color: var(--muted); }
.note { font-size: .875rem; color: var(--muted); }

/* ---------- inner pages: shared openings ---------- */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
.page-head .lede { margin: 0; }

.index { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.index a { font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .2rem; }
.index a:hover { border-bottom-color: var(--ink); }
.page-head__aside { display: grid; gap: 2rem; }

/* ---------- collection rows ---------- */

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.row__text { padding: clamp(3rem, 7vw, 6.5rem) var(--gutter); align-self: center; }
.row__no { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--brass-deep); margin-bottom: 1.25rem; }
.row h2 { margin-bottom: 1.5rem; }
.row p { color: var(--muted); }
.row__pictures { display: grid; gap: 1px; background: var(--line); }
.row__pictures .frame { min-height: 36rem; }
.row__pictures--pair { grid-template-rows: 1fr 1fr; }
.row__pictures--pair .frame { min-height: 20rem; }
.row--flip .row__text { order: 2; }
.row--flip .row__pictures { order: 1; }
.row--flip .row__statement { border-left: 0; border-right: 1px solid var(--line); }

.row--quiet { background: var(--paper); }
.row__statement {
  display: flex; align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) var(--gutter);
  border-left: 1px solid var(--line);
}
.row__statement p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 14em;
}

.closing { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.closing p { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; max-width: 22em; }

/* ---------- fittings ---------- */

.fitting {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter) var(--space);
}
.fitting h1 { margin-bottom: 2rem; }
.steps { list-style: none; margin: 3.5rem 0 0; padding: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: .75rem; font-weight: 500; letter-spacing: .2em; color: var(--brass-deep); padding-top: .55rem; }
.steps h2 { font-size: clamp(1.625rem, 2.4vw, 2rem); margin-bottom: .5rem; }
.steps p { color: var(--muted); }

.fitting__side { align-self: start; position: sticky; top: 2rem; display: grid; gap: 0; }
.fitting__picture { aspect-ratio: 4 / 5; }
.call-card {
  background: var(--ink); color: var(--ivory);
  padding: clamp(2rem, 4vw, 3.25rem);
}
.call-card .eyebrow { color: var(--brass); }
.call-card__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.05;
  text-decoration: none;
  margin-bottom: 1.75rem;
}
.call-card__number:hover { color: var(--brass); }
.call-card p { color: var(--stone); font-size: .9375rem; }
.call-card p a:not(.button) { color: var(--ivory); }
.alterations { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--ink); }
.alterations h2 { margin-bottom: 1rem; }
.alterations p { color: var(--muted); }
.call-card .hours li { border-bottom-color: var(--line-dark); }
.call-card .hours span:last-child { color: var(--stone); }
.call-card__rule { border: 0; border-top: 1px solid var(--line-dark); margin: 2rem 0; }

.pending {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border: 1px dashed var(--brass-deep);
  background: transparent;
}
.pending .eyebrow { margin-bottom: .75rem; }
.pending p { color: var(--muted); font-size: .9375rem; }

/* ---------- visit ---------- */

.visit {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border-bottom: 1px solid var(--line);
}
.visit__text { padding: clamp(4rem, 9vw, 8rem) var(--gutter) var(--space); }
.visit__text h1 { margin-bottom: 2rem; }
.visit__picture { border-left: 1px solid var(--line); min-height: 36rem; }
.visit .facts { grid-template-columns: minmax(0, 1fr); margin-top: 3.5rem; }
.visit .facts > div { padding: 1.5rem 0; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
.visit .facts > div + div { padding-left: 0; border-left: 0; }

.directions { max-width: var(--wrap); margin: 0 auto; padding: var(--space) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.directions ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.directions li { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.directions li strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: .25rem; }
.directions li p { color: var(--muted); }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: var(--stone); font-size: .9375rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter) 3rem;
}
.site-footer .wordmark { justify-items: start; }
.site-footer__brand p { margin-top: 1.5rem; max-width: 18em; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--stone); }
.site-footer h2 { font-family: var(--font-text); font-size: .6875rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.1rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer__base {
  max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
}
.site-footer__base p { margin: 0; max-width: none; }

/* ---------- tablet ---------- */

@media (max-width: 60rem) {
  .hero, .wardrobe, .band__grid, .page-head, .row, .fitting, .visit, .directions, .inside__head { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero__picture, .visit__picture { border-left: 0; border-top: 1px solid var(--line); }
  .hero__picture { min-height: 0; aspect-ratio: 4 / 5; }
  .visit__picture { min-height: 0; aspect-ratio: 4 / 3; }
  .row--flip .row__text, .row--flip .row__pictures { order: 0; }
  .row__pictures .frame { min-height: 24rem; }
  .row__pictures--pair { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .row__pictures--pair .frame { min-height: 16rem; }
  .row__statement, .row--flip .row__statement { border-left: 0; border-right: 0; border-top: 1px solid var(--line); }
  .inside__head { display: grid; }
  .mosaic__a { grid-column: 1 / -1; grid-row: auto; }
  .mosaic__a { min-height: 24rem; }
  .mosaic__b { grid-column: 1 / 7; grid-row: auto; }
  .mosaic__c { grid-column: 7 / 13; grid-row: auto; }
  .fitting__side { position: static; }
  .label { grid-template-columns: minmax(0, 1fr); }
  .label__picture { border-right: 0; aspect-ratio: 4 / 3; }
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__inner > :first-child { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */

@media (max-width: 44rem) {
  body { font-size: 1rem; }
  .topline span { display: none; }
  .topline { justify-content: center; }
  .masthead { grid-template-columns: 1fr auto; padding: 1.1rem var(--gutter); }
  .wordmark { grid-column: 1; display: flex; align-items: center; gap: .7rem; }
  .wordmark__mono { height: 2.25rem; }
  .wordmark__word { height: .8125rem; }
  .primary, .masthead__cta { display: none; }
  .phone-menu { display: block; grid-column: 2; }
  .phone-menu summary {
    list-style: none; cursor: pointer;
    font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
    padding: .65rem 0 .65rem 1rem;
  }
  .phone-menu summary::-webkit-details-marker { display: none; }
  .phone-menu summary::after { content: " +"; }
  .phone-menu[open] summary::after { content: " \2212"; }
  .phone-menu ul {
    position: absolute; left: 0; right: 0; z-index: 5;
    background: var(--ivory);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--ink);
    padding: .5rem var(--gutter) 1.5rem;
  }
  .phone-menu li a {
    display: block; padding: 1rem 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-size: 1.75rem; text-decoration: none;
  }
  .masthead { position: relative; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div + div { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ledger a { grid-template-columns: 2.5rem minmax(0, 1fr); padding: 1.1rem 0; gap: .35rem 1rem; }
  .ledger__name { font-size: 1.875rem; }
  .row__pictures .frame { min-height: 20rem; }
  .row__pictures--pair .frame { min-height: 16rem; }
  .ledger__note { grid-column: 2; text-align: left; margin-top: -.25rem; }
  .mosaic__b, .mosaic__c { grid-column: 1 / -1; }
  .row__pictures--pair { grid-template-columns: minmax(0, 1fr); }
  .label__facts > div { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .fitting__picture { aspect-ratio: 4 / 3; }
  .actions { gap: 1.25rem 1.5rem; }
  .button { width: 100%; text-align: center; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner > :first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
