@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f1ec;
  --card: #fffcf8;
  --ink: #161513;
  --muted: #3a342c;
  --line: #ddd6cc;
  --well: #f7f4ee;
  --brass: #8a6232;
  --button: #161513;
  --button-text: #f6f3ec;
  --max: 1080px;
  --focus: 3px solid #161513;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

body::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--ink);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--button);
  color: var(--button-text);
  padding: 0.7rem 1rem;
  z-index: 2;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  transform: none;
  top: 0.75rem;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #f3f1ec;
}

.mast {
  padding: 2.2rem 0 0.4rem;
}

.owner {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.owner::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.55rem;
  background: var(--brass);
}

h1, h2, h3, h4, .proposition {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.4rem);
  line-height: 0.98;
  max-width: 12ch;
  font-weight: 500;
}

.lede {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--ink);
}

.status, .noscript, .empty {
  color: var(--ink);
}

.status {
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
}

.group { margin-top: 2rem; }

.group-title {
  margin: 0 0 0.85rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.group-list {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(22, 21, 19, 0.05);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem 1rem;
  margin: 0;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.status-label {
  display: inline-block;
  margin: 0;
  border: 1.5px solid var(--ink);
  padding: 0.18rem 0.5rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.logo-block {
  margin: 0;
  padding: 1rem 1.15rem 0;
  background: var(--card);
}

.logo-block img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4efe2;
}

.card-grid {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.15rem 1.2rem;
}

.shot, .related-shot {
  margin: 0;
}

.shot img.cover,
.shot img.wide,
.phone-art,
.window-art,
.related-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #14181d;
  border-radius: 10px;
}

.shot img.cover,
.phone-art,
.window-art {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shot img.wide {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.shot img.contain {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin-inline: auto;
  border-radius: 10px;
  background: #f3f0e8;
}

.shot img.natural {
  display: block;
  width: min(220px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--well);
}

.shot-fallback {
  display: grid;
  place-items: center;
  min-height: 10rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--well);
  color: var(--ink);
  font-weight: 600;
}

figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

h3 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.02;
  font-weight: 600;
}

.proposition {
  margin: 0.35rem 0 0.7rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.proposition-small {
  font-size: 1.15rem;
  margin-top: 0.25rem;
}

.summary {
  margin: 0;
  max-width: 62ch;
}

.actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.05rem;
}

.actions.single { margin-top: 1.3rem; }

.action { min-width: min(100%, 14rem); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.05rem;
  border: 2px solid var(--button);
  border-radius: 6px;
  background: var(--button);
  color: var(--button-text);
  font: 600 1rem/1 "Outfit", sans-serif;
  text-decoration: none;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button:focus-visible {
  outline: 3px solid #161513;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #f3f1ec, 0 0 0 10px #8a6232;
}

.button:hover { background: #2c2925; color: var(--button-text); }

.button-secondary:hover { background: var(--ink); color: var(--button-text); }

.icon { flex: none; }

.host {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.related {
  margin: 0 1.15rem 1.15rem;
  padding: 0.9rem;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.related-grid {
  display: grid;
  gap: 0.85rem;
}

.relation {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h4 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.7rem;
  line-height: 1.05;
  font-weight: 600;
}

.unlinked {
  margin: 1rem 0 0;
  padding-left: 0.75rem;
  border-left: 3px solid var(--ink);
  font-weight: 600;
}

.colophon {
  padding: 2rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.colophon p { margin: 0.2rem 0; }

.noscript { padding-bottom: 2rem; }

@media (min-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 4rem)); }

  .related-grid {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
  }

  .actions { display: flex; flex-wrap: wrap; }

  .button, .action { width: auto; }

  .action .button { min-width: 11.5rem; }
}

@media (min-width: 720px) {
  .mast { padding-top: 3.2rem; }

  .card-grid.has-visual {
    grid-template-columns: minmax(280px, 1.08fr) minmax(280px, 0.92fr);
    gap: 1.4rem 1.6rem;
    align-items: center;
    padding: 1.2rem 1.3rem 1.4rem;
  }

  .card-grid.is-diagram {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }

  .visual-hero .shot img.cover,
  .visual-hero .shot img.wide,
  .visual-hero .shot img.contain,
  .visual-hero .phone-art,
  .visual-hero .window-art {
    border-radius: 12px;
  }
}

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

@media (forced-colors: active) {
  .button, .status-label, .card, .related {
    border: 1px solid ButtonText;
  }
}

.service-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.3rem;
}

.price-card h2,
.service-block h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.price {
  margin: 0.35rem 0 0.55rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.7rem;
  line-height: 1;
  font-weight: 600;
}

.fine-print {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-block { margin-top: 2.1rem; }

.steps {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.steps li { margin: 0.5rem 0; }

.phone-line {
  margin: 0.4rem 0 0.2rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  font-weight: 600;
}

.phone-line a {
  color: inherit;
  display: inline-block;
  min-height: 48px;
  padding-block: 0.15rem;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.service-block .actions .button {
  min-width: min(100%, 12.5rem);
}

.owner a {
  color: inherit;
}

@media (min-width: 720px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  body::before { display: none; }
  .button::after {
    content: " (" attr(href) ")";
    font-weight: 400;
  }
}
