@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --enduit: #F1F0EB;
  --enduit-2: #E3E2DB;
  --encre: #1C2427;
  --email: #233A4A;
  --ardoise: #5E6B70;
  --soleil: #F0BE45;
  --engrave: #ECE8DC;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 4px;
  --gutter: 16px;
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--enduit);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
  padding-bottom: 72px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration-color: var(--soleil); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 50; background: var(--encre); color: var(--enduit); padding: 8px 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px;
  border-radius: var(--radius);
  font-family: var(--sans); font-weight: 600; font-size: 17px;
  text-decoration: none; white-space: nowrap;
  transition: background-color 300ms, color 300ms;
}
.btn--sun { background: var(--soleil); color: var(--encre); }
.btn--line { box-shadow: inset 0 0 0 2px var(--encre); color: var(--encre); }
.nw { white-space: nowrap; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }

/* Header */
.top { background: var(--enduit); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: 24px; }
.mark { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.mark__name { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.mark__title { font-size: 13px; color: var(--ardoise); margin-top: 2px; }
.top__nav, .top__call { display: none; }

/* Hero */
.hero__in { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; padding-bottom: 48px; }

.plaque {
  position: relative;
  background: var(--email);
  color: var(--engrave);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  text-align: center;
}
.plaque__name {
  font-family: var(--serif); font-weight: 500;
  font-size: 34px; line-height: 1.08;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-variation-settings: "opsz" 72;
}
.plaque__title {
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em;
  margin-top: 12px;
}
.plaque__rule { display: block; width: 48px; height: 1px; background: var(--engrave); opacity: 0.6; margin: 20px auto 18px; }
.plaque__line { font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.5; }
.screw {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #3B5566;
}
.screw::after {
  content: ""; position: absolute; left: 1px; right: 1px; top: 4.5px; height: 1px; background: #1A2C38;
}
.screw--tl { top: 12px; left: 12px; } .screw--tl::after { transform: rotate(35deg); }
.screw--tr { top: 12px; right: 12px; } .screw--tr::after { transform: rotate(-20deg); }
.screw--bl { bottom: 12px; left: 12px; } .screw--bl::after { transform: rotate(80deg); }
.screw--br { bottom: 12px; right: 12px; } .screw--br::after { transform: rotate(10deg); }

.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 34px; line-height: 1.1; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
}
.hero__where { margin-top: 12px; color: var(--ardoise); }
.hero__today { display: block; color: var(--encre); }
.proof { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.proof__score { font-family: var(--serif); font-size: 28px; line-height: 1; }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* Reviews */
.reviews { padding: 64px 0 72px; }
.quote blockquote p { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.35; }
.quote figcaption { margin-top: 12px; font-size: 15px; color: var(--ardoise); }
.quote.quote--big blockquote p { font-size: 40px; line-height: 1.08; font-weight: 400; font-variation-settings: "opsz" 72; letter-spacing: -0.01em; }
.quote--big figcaption { margin-top: 16px; }
.reviews__pair { display: grid; gap: 40px; margin-top: 56px; }
.reviews__more { margin-top: 40px; }

/* Cabinet */
.cabinet { padding: 24px 0 72px; }
.cabinet__num {
  font-family: var(--serif); font-weight: 300;
  font-size: 128px; line-height: 0.85; letter-spacing: -0.03em;
  color: var(--email);
  font-variation-settings: "opsz" 72;
}
.cabinet__where { margin-top: 24px; }
.cabinet h2, .who h2, .close h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; line-height: 1.1;
  font-variation-settings: "opsz" 72;
}
.cabinet__address { margin-top: 12px; font-size: 19px; }
.cabinet__access { margin-top: 4px; color: var(--ardoise); }
.cabinet__where .btn { margin-top: 24px; }
.cabinet__sub { font-size: 15px; font-weight: 600; margin-top: 48px; }
.hours { margin-top: 8px; max-width: 420px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--enduit-2); }
.hours dd span + span::before { content: ", "; }
.hours .off { color: var(--ardoise); }

/* Who */
.who { padding: 0 0 80px; }
.who__in { display: flex; flex-direction: column; gap: 32px; }
.who__photo { order: 2; width: 62%; max-width: 280px; }
.who__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.who__about { margin-top: 16px; font-size: 19px; line-height: 1.5; max-width: 34em; }
.facts { margin-top: 28px; }
.facts div { padding: 12px 0; box-shadow: inset 0 -1px 0 var(--enduit-2); }
.facts dt { font-size: 14px; color: var(--ardoise); }
.facts dd { margin-top: 2px; }

/* Close */
.close { background: var(--email); color: var(--engrave); padding: 72px 0 80px; }
.close h2 { color: var(--engrave); }
.close__num { margin-top: 16px; font-family: var(--serif); font-size: 44px; line-height: 1.05; letter-spacing: 0.01em; white-space: nowrap; }
.close__num a { text-decoration: none; }
.close .btn { margin-top: 32px; }

/* Footer */
.foot { padding: 40px 0 32px; font-size: 15px; color: var(--ardoise); }
.foot__in { display: flex; flex-direction: column; gap: 24px; }
.foot__name { color: var(--encre); font-weight: 600; }
.foot__legal a { margin-right: 16px; }
.foot__legal p + p { margin-top: 8px; }

/* Pinned call bar, phone only */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--enduit);
  transition: transform 300ms;
}
.bar__btn { width: 100%; }
.io .bar:not(.is-shown) { transform: translateY(calc(100% + 24px)); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .btn--sun:hover { background: var(--encre); color: var(--soleil); }
  .btn--line:hover { background: var(--encre); color: var(--enduit); }
  .close .btn--sun:hover { background: var(--engrave); color: var(--email); }
  a:not(.btn):hover { text-decoration-color: currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bar { transition: none; }
}

/* Tablet */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero__in { padding-top: 24px; }
  .plaque { padding: 56px 40px 52px; }
  .plaque__name { font-size: 52px; }
  .plaque__title { font-size: 19px; }
  .plaque__line { font-size: 19px; }
  .hero h1 { font-size: 44px; }
  .actions { flex-direction: row; }
  .reviews__pair { grid-template-columns: 1fr 1fr; gap: 48px; }
  .quote.quote--big blockquote p { font-size: 56px; }
  .who__in { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
  .who__photo { order: 0; width: 100%; max-width: 400px; }
  .bar { left: auto; right: var(--gutter); bottom: 16px; padding: 0; background: none; }
  .bar__btn { width: auto; }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --header: 80px; }
  body { font-size: 18px; padding-bottom: 0; }
  .bar { display: none; }
  .top { position: sticky; top: 0; z-index: 30; }
  .mark__name { font-size: 24px; }
  .top__nav { display: flex; gap: 32px; margin-left: auto; }
  .top__nav a { text-decoration: none; font-size: 16px; }
  .top__call { display: inline-flex; min-height: 48px; font-size: 16px; }

  .hero__in {
    display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: 72px;
    min-height: calc(100vh - var(--header)); padding-top: 32px; padding-bottom: 64px;
  }
  .plaque { max-width: none; padding: 80px 64px 72px; }
  .plaque__name { font-size: 68px; }
  .plaque__title { font-size: 21px; margin-top: 18px; }
  .plaque__rule { width: 72px; margin: 32px auto 28px; }
  .plaque__line { font-size: 22px; }
  .screw { width: 14px; height: 14px; }
  .screw::after { top: 6.5px; }
  .screw--tl { top: 18px; left: 18px; } .screw--tr { top: 18px; right: 18px; }
  .screw--bl { bottom: 18px; left: 18px; } .screw--br { bottom: 18px; right: 18px; }
  .hero h1 { font-size: 56px; }
  .hero__where { font-size: 19px; margin-top: 16px; }
  .proof { margin-top: 32px; }
  .proof__score { font-size: 36px; }
  .actions { margin-top: 40px; }

  .reviews { padding: 120px 0 128px; }
  .quote--big { max-width: 1100px; }
  .quote.quote--big blockquote p { font-size: 88px; line-height: 1.02; }
  .quote--big figcaption { font-size: 17px; margin-top: 24px; }
  .reviews__pair { margin-top: 96px; gap: 96px; max-width: 1100px; margin-left: auto; }
  .quote blockquote p { font-size: 26px; }

  .cabinet { padding: 48px 0 128px; }
  .cabinet__head { display: grid; grid-template-columns: auto 1fr; gap: 80px; align-items: end; }
  .cabinet__num { font-size: 320px; line-height: 0.76; }
  .cabinet__where { margin-top: 0; padding-bottom: 4px; }
  .cabinet__address { font-size: 22px; margin-top: 16px; }
  .cabinet h2, .who h2, .close h2 { font-size: 48px; }
  .cabinet__sub { margin-top: 96px; }
  .hours { display: grid; grid-template-columns: repeat(7, 1fr); max-width: none; margin-top: 16px; }
  .hours div { display: block; padding: 16px 16px 0 0; box-shadow: inset 0 1px 0 var(--encre); }
  .hours div:nth-child(n+6) { box-shadow: inset 0 1px 0 var(--enduit-2); }
  .hours dt { font-size: 15px; color: var(--ardoise); }
  .hours dd { margin-top: 4px; font-family: var(--serif); font-size: 26px; line-height: 1.2; }

  .who { padding-bottom: 128px; }
  .who__in { grid-template-columns: minmax(0, 400px) 1fr; gap: 120px; }
  .who__photo { max-width: 400px; }
  .who__about { font-size: 21px; }

  .close { padding: 112px 0 120px; }
  .close__in { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
  .close__num { font-size: 96px; grid-column: 1; }
  .close__in > p:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: end; }

  .foot__in { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .foot__legal { text-align: right; }
  .foot__legal a { margin: 0 0 0 16px; }
}
