/* Layout: two categories, succession all white and distress all black; the logo's open frame is the one graphic idea
   (giant in the hero, rebuilt as the container of the contact section).
   Two colors only, no greys: hierarchy comes from scale and inversion. */

@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/saira-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --display: "Saira Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --band: clamp(4.5rem, 10vw, 9rem);
  --stroke: clamp(0.75rem, 1.6vw, 1.5rem);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 1.125rem/1.55 var(--text);
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, .category h3, .focus-list dt, .benefits dt, .steps h4 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: clamp(3.5rem, 8.6vw, 8.5rem); line-height: 0.9; }
h2 { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 0.95; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
section[id] { scroll-margin-top: 1.5rem; }

.wrap {
  width: 100%;
  max-width: 100rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2;
  padding: 0.75rem 1rem;
  background: var(--black);
  color: var(--white);
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.9rem; }
.site-header nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); font-weight: 500; font-size: 1rem; }
.site-header nav a { padding-block: 0.5rem; text-decoration: none; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-bottom-color: currentColor; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(2rem, 5vw, 5rem) var(--band);
}
.hero-text { display: grid; justify-items: start; gap: clamp(1.5rem, 2.6vw, 2.5rem); }
.lede { max-width: 34ch; font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.4; }
.hero-mark { width: 100%; max-width: 42rem; justify-self: end; animation: raise 900ms cubic-bezier(0.7, 0, 0.2, 1); }

@keyframes raise {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}

.button {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--white); color: var(--black); }
.button:focus-visible { outline-color: var(--black); }

/* Doors: the two categories, one white and one black */
.doors { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--stroke) solid var(--black); }
.door { display: grid; gap: 0.9rem; align-content: start; min-width: 0; padding: clamp(2rem, 4vw, 3.5rem) var(--gutter); text-decoration: none; }
.door-white { background: var(--white); color: var(--black); padding-left: max(var(--gutter), calc((100vw - 100rem) / 2 + var(--gutter))); }
.door-black { background: var(--black); color: var(--white); }
.door-name { font: 600 clamp(2.5rem, 5.4vw, 5rem)/0.95 var(--display); text-transform: uppercase; }
.door-line { max-width: 34ch; }
.door:hover .door-name { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.door:focus-visible { outline-offset: -8px; }

/* Categories: succession is all white, distress is all black; rules follow the text color */
.category { padding-block: var(--band); }
.succession { background: var(--white); color: var(--black); border-top: var(--stroke) solid var(--black); }
.distress { background: var(--black); color: var(--white); }
.category h2 { font-size: clamp(3.5rem, 8.6vw, 8.5rem); line-height: 0.9; }
.category h3 { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.prose { display: grid; gap: 1.25rem; align-content: start; max-width: 40rem; font-size: clamp(1.125rem, 1.4vw, 1.35rem); }
.block { margin-top: clamp(3.5rem, 7vw, 6.5rem); }
.focus-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}
.focus-list > div { border-top: var(--stroke) solid currentColor; padding-top: 1.5rem; }
.focus-list dt { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1; margin-bottom: 0.9rem; }
.focus-list dd { max-width: 36ch; }
.steps { counter-reset: step; margin-top: clamp(1.75rem, 3vw, 2.75rem); border-bottom: 2px solid currentColor; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-top: 2px solid currentColor;
}
.steps li::before { content: counter(step); font: 600 1.5rem/1 var(--display); }
.steps h4 { margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1; }
.steps p { max-width: 48ch; }

.benefits { margin-top: clamp(1.75rem, 3vw, 2.75rem); border-bottom: 2px solid currentColor; }
.benefits > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; gap: 0.6rem 1.5rem; padding-block: 1.25rem; border-top: 2px solid currentColor; }
.benefits dt { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1; }
.benefits dd { max-width: 48ch; }

/* Contact: the logo's frame, with its cut left post and short right foot */
.contact { padding-block: var(--band); }
.frame { position: relative; border-top: var(--stroke) solid var(--black); border-right: var(--stroke) solid var(--black); }
.frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--stroke);
  height: 74%;
  background: var(--black);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--stroke) * 0.58), 0 100%);
}
.frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18%;
  height: var(--stroke);
  background: var(--black);
}
.frame-inner { padding: clamp(2rem, 6vw, 5.5rem); padding-left: calc(var(--stroke) + clamp(1.25rem, 5vw, 5rem)); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(1.75rem, 3vw, 3rem);
}
.include { display: grid; gap: 2rem; align-content: start; }
.contact-grid p { max-width: 42ch; }
.contact-grid .confidential { margin-top: 1rem; }
.contact-grid h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.6rem; }
.contact-grid li { padding-block: 0.35rem; }
.email {
  display: inline-block;
  margin-top: 1.75rem;
  font: 600 clamp(1.5rem, 3vw, 2.75rem)/1.1 var(--display);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
button.email { border: 0; padding: 0; background: none; color: inherit; cursor: pointer; text-align: left; text-decoration-line: underline; }
.no-js { margin-top: 1.75rem; }
.details { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; margin-top: 2rem; }
.details dt { font-weight: 600; margin-bottom: 0.25rem; }
.details address { font-style: normal; }
.email:hover, button.email:hover { background: var(--black); color: var(--white); text-decoration: none; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2.5rem 4rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.legal { display: grid; gap: 1rem; flex: 1 1 18rem; max-width: 62ch; font-size: 0.9375rem; }

@media (max-width: 48rem) {
  .hero, .doors, .split, .focus-list, .benefits > div, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { width: 78%; justify-self: end; }
  .steps li { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.6rem 1rem; }
  .steps p { grid-column: 2; }
}

@media (max-width: 30rem) {
  .brand-word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark { animation: none; }
}
