@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --paper: #f5f0e4;
  --ivory: #fbf8f1;
  --green: #253c31;
  --green-hover: #3a5443;
  --muted: #4c584b;
  --sage: #e8ecdf;
  --line: #c9cfc0;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--green);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

.container {
  width: min(100% - clamp(36px, 9vw, 128px), 1120px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset: 8px auto auto 8px;
  z-index: 2;
  transform: translateY(-150%);
  padding: 12px 16px;
  color: var(--paper);
  background: var(--green);
}
.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer { background: var(--paper); }
.header-inner {
  min-height: 93px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
}
.brand img {
  flex-shrink: 0;
  object-fit: contain;
}
.brand-name {
  display: grid;
  gap: 5px;
  font-family: var(--serif);
  font-size: 1.52rem;
  line-height: 1;
  letter-spacing: -.045em;
}
.brand-name small {
  font: 700 .57rem/1 var(--sans);
  letter-spacing: .21em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.site-nav a {
  padding-block: 12px;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: .35em;
}
.site-nav a:hover { text-decoration: underline; }
.header-booking { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: fit-content;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.button-primary { border-color: var(--green); background: var(--green); color: var(--paper); }
.button-primary:hover { border-color: var(--green-hover); background: var(--green-hover); }
.button-outline { border-color: var(--green); }
.button-outline:hover { background: var(--green); color: var(--paper); }
.button-primary:focus-visible, .button-outline:hover:focus-visible { outline-color: var(--green); }

.external-arrow, .down-arrow {
  display: inline-block;
  flex: 0 0 10px;
  position: relative;
  width: 10px;
  height: 10px;
}
.external-arrow::before, .down-arrow::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 0;
  right: 0;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
}
.external-arrow::after, .down-arrow::after {
  content: "";
  position: absolute;
  top: 4px;
  left: -1px;
  width: 11px;
  border-top: 1.5px solid;
  transform: rotate(-45deg);
}
.down-arrow { transform: rotate(135deg); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 5.2vw, 74px) clamp(50px, 6.3vw, 90px);
}
.eyebrow {
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow span { margin-inline: .16em; }
.hero h1 {
  margin-block: 16px 23px;
  font-size: clamp(3.75rem, 9vw, 7.15rem);
  line-height: .97;
  letter-spacing: -.045em;
}
.hero-description {
  max-width: 29ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.24rem);
  line-height: 1.55;
}
.hero .button { padding-inline: 22px; }
.hero-photos {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(10px, 1.6vw, 22px);
  width: 100%;
  max-width: 510px;
  justify-self: end;
}
.hero-photos img {
  width: 100%;
  height: auto;
}
.hero-cut {
  grid-column: 2;
  grid-row: 1;
  border-radius: 50% 50% 3px 3px / 34% 34% 3px 3px;
}
.hero-beard {
  grid-column: 1;
  grid-row: 1;
  border-radius: 3px;
}

.work-section, .services-section, .visit-section { scroll-margin-top: 20px; }
.work-section {
  padding-block: clamp(44px, 6vw, 80px);
  background: var(--ivory);
  border-block: 1px solid var(--line);
}
.services-section {
  padding-block: clamp(26px, 4.2vw, 50px);
  background: var(--sage);
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  column-gap: 25px;
  row-gap: 18px;
  margin-bottom: clamp(26px, 4vw, 47px);
}
.section-heading h2, .visit-details h2 {
  font-size: clamp(2.35rem, 4.6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  min-height: 44px;
  font-size: .92rem;
  font-weight: 700;
  text-underline-offset: .33em;
}
.text-link:hover { text-decoration-thickness: 2px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 28px);
}
.work-figure { display: block; text-decoration: none; }
.work-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  background: var(--sage);
}
.work-photo img { width: 100%; height: 100%; object-fit: cover; }
.work-photo-design { object-position: center 46%; }
.work-photo-quiff { object-position: center 96%; }
.work-photo-beard { object-position: 49% center; }
.work-photo-process { object-position: center 88%; }
.work-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0 5px;
  font: 600 clamp(1rem, 1.58vw, 1.35rem)/1.25 var(--serif);
}
.work-figure:hover .work-caption { text-decoration: underline; text-underline-offset: .2em; }
.work-figure[aria-haspopup="dialog"] { cursor: zoom-in; }
.work-figure[aria-haspopup="dialog"] .external-arrow::before {
  width: 6px;
  height: 6px;
}
.work-figure[aria-haspopup="dialog"] .external-arrow::after {
  inset: auto auto 0 0;
  width: 6px;
  height: 6px;
  border: 0;
  border-bottom: 1.5px solid;
  border-left: 1.5px solid;
  transform: none;
}
.photo-dialog {
  width: min(100% - 28px, 600px);
  max-height: calc(100dvh - 28px);
  padding: clamp(12px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
  color: var(--green);
}
.photo-dialog::backdrop { background: rgb(27 39 33 / 72%); }
body:has(.photo-dialog[open]) { overflow: hidden; }
.photo-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.photo-dialog-heading h2 {
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  line-height: 1.13;
}
.photo-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 1.6rem/1 var(--sans);
  cursor: pointer;
}
.photo-close:hover { background: var(--sage); }
.photo-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.photo-detail {
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--sage);
}
.photo-detail img {
  width: auto;
  height: auto;
  max-height: min(65dvh, 640px);
  object-fit: contain;
}
.photo-source { margin-top: 6px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px) clamp(24px, 4vw, 56px);
}
.service-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 20px;
  padding: 17px 0 12px;
  border-bottom: 1px solid var(--line);
}
.service-title h3 {
  font-size: clamp(1.5rem, 3vw, 2.42rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.price { flex-shrink: 0; font-weight: 700; font-size: .98rem; }
.service-card p { margin-top: 11px; color: var(--muted); line-height: 1.55; }

.visit-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5.5vw, 80px);
  padding-block: clamp(53px, 8vw, 112px);
}
.visit-details h2 { margin-top: 10px; }
.visit-details address {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: normal;
  line-height: 1.6;
}
.opening-hours { margin-top: 12px; color: var(--muted); line-height: 1.55; }
.visit-details .text-link { margin-top: 10px; }
.contact-card {
  display: grid;
  justify-items: start;
  padding: clamp(24px, 3.6vw, 47px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ivory);
}
.contact-card h3 {
  font-size: clamp(1.9rem, 3.3vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.contact-card p {
  margin: 11px 0 23px;
  color: var(--muted);
  line-height: 1.55;
}
.contact-actions {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 10px;
  width: min(100%, 274px);
}
.contact-actions .button {
  justify-content: space-between;
  width: 100%;
  text-align: left;
}
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 23px;
}
.site-footer .brand-name { font-size: 1.25rem; }

@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 13px 4px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; }
  .header-booking { grid-column: 2; grid-row: 1; }
  .hero { gap: 25px; }
  .hero h1 { font-size: clamp(3.5rem, 10.8vw, 5.5rem); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit-section { gap: 26px; }
}

@media (max-width: 595px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(3.8rem, 16vw, 6.1rem); }
  .hero-photos { justify-self: start; max-width: 455px; }
  .section-heading { align-items: start; flex-direction: column; row-gap: 5px; }
  .service-grid, .visit-section { grid-template-columns: 1fr; }
  .service-grid { gap: 13px; }
}

@media (max-width: 365px) {
  .brand { gap: 6px; }
  .brand img { width: 37px; height: auto; }
  .header-booking { padding-inline: 10px; gap: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
