/* Article stylesheet; style.css is not loaded here. 404.html also uses it.
   §0 duplicates the homepage foundations (variables, reset, .wrap, .lnk, .btn,
   .site-head) because there is no build step: changes to those in style.css
   must be repeated here by hand. */

:root {

  --navy:        #344454;
  --navy-deep:   #2A3544;
  --teal:        #1F9A8B;
  --teal-mid:    #76B4A9;
  --teal-light:  #9FCAC4;
  --peri:        #A6B1CE;
  --mist:        #D2E2EC;
  --crimson:     #C7404E;
  --maroon:      #641F21;
  --paper:       #FBFCFD;
  --ink:         #000000;

  --display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --tech:    var(--display);

  --wrap:  1240px;
  --gutter: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--teal-light); color: var(--navy); }

:root { caret-color: var(--teal); scrollbar-color: var(--teal-mid) var(--mist); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: var(--teal-mid); border: 3px solid var(--mist); }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lnk {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms var(--ease), color 160ms var(--ease);
}
.lnk:hover { color: var(--maroon); text-decoration-color: var(--maroon); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding-inline: 28px;
  border-radius: 16px / 50%;
  background: var(--navy-deep);
  color: var(--paper);
  font-family: var(--tech);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 4px 0 0 var(--peri);
  transition: box-shadow 180ms var(--ease), transform 180ms var(--ease);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 0 var(--peri); }
}
/* Keep :active after :hover so pressing overrides the hover state. */
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 0 var(--peri); }

.btn__label { flex: 0 1 auto; min-inline-size: 0; }
.btn__rule {
  flex: 0 0 auto;
  align-self: stretch;
  margin-block: 18px;
  border-inline-start: 2px dotted var(--teal-mid);
}
.btn__arrow {
  flex: 0 0 auto;
  stroke: var(--teal-light);
}

.site-head {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
}

.site-head__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-head__logo { display: flex; flex: 0 0 auto; }
.site-head__logo img { height: 40px; width: auto; }

@media (max-width: 620px) {

  body { font-size: 14px; }
  .site-head__inner { gap: 12px; }
  .site-head__logo img { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.article-back {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.article-back__label { position: relative; padding-block: 4px; }
.article-back__label::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.article-back:hover .article-back__label::after { transform: scaleX(1); }
.article-back__arrow { flex: 0 0 auto; stroke: var(--teal); }

.article-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--mist);
  padding-block: calc(64px + clamp(36px, 5vw, 64px)) clamp(44px, 5.5vw, 72px);
}
.article-top__contours {
  position: absolute;
  z-index: -1;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0.26;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(110deg, transparent 18%, #000 92%);
          mask-image: linear-gradient(110deg, transparent 18%, #000 92%);
}
.article-top__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}

.article-top h1 {
  margin-block-start: 22px;
  font-size: clamp(48px, 4.4vw, 75px);
  color: var(--paper);
}
.article-top__lead {
  margin-block-start: 15px;
  font-size: clamp(14px, 1.2vw, 17px);
  max-width: 46ch;
}

.article-breadcrumbs,
.article-title-block dt,
.article-card__label,
.article-footer__slogan,
.article-aside h3 {
  font-family: var(--tech);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.article-breadcrumbs a { color: inherit; text-decoration: none; white-space: nowrap; }
.article-breadcrumbs a:hover { color: var(--mist); }
.article-breadcrumbs__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--peri) 58%, transparent);
}

.article-title-block {
  margin: 0;
  display: grid;
  gap: 10px;
  font-family: var(--tech);
  font-variant-numeric: tabular-nums;
}
.article-title-block div { display: flex; align-items: baseline; gap: 14px; }
.article-title-block dt {
  flex: 0 0 auto;
  white-space: nowrap;
}

.article-title-block dd {
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-align: right;
}
.article-title-block dd::before {
  content: "";
  flex: 1 1 24px;
  align-self: center;
  block-size: 2px;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--peri) 58%, transparent) 0.9px, transparent 1.1px);
  background-size: 6px 2px;
  background-repeat: repeat-x;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(44px, 5.5vw, 80px);
  align-items: start;
  padding-block: clamp(44px, 4.5vw, 64px) clamp(48px, 5vw, 72px);
}
.article-prose h2 {
  font-size: clamp(28px, 2.4vw, 34px);
  margin-block-end: 18px;
}

.article-prose p {
  font-size: 16.5px;
  max-width: 62ch;
}
.article-prose p + p { margin-block-start: 18px; }

.article-prose figure + p { margin-block-start: 32px; }
.article-prose p + h2,
.article-prose figure + h2 { margin-block-start: 44px; }

.article-prose a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms var(--ease), color 160ms var(--ease);
}
.article-prose a:hover { color: var(--maroon); text-decoration-color: var(--maroon); }

.article-photo { margin: 36px 0 0; }
.article-photo picture { display: block; }
.article-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 32%;
}
.article-photo--wide img { aspect-ratio: 21 / 9; }
.article-legend {
  margin-block-start: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 24px;
  font-family: var(--tech);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.07em;
  color: var(--navy);
}
.article-legend .is-marker { display: flex; align-items: center; gap: 9px; color: var(--maroon); }
.article-legend .is-marker::before {
  content: "";
  inline-size: 22px;
  block-size: 3px;
  background: var(--crimson);
}

.article-aside {
  position: sticky;
  top: calc(64px + 24px);
  display: grid;
  gap: 28px;
}
.article-card {
  background: var(--navy-deep);
  color: var(--mist);
  padding: 28px 28px 26px;
}
.article-card__label { display: block; }
.article-card__tel {
  display: block;
  margin-block-start: 8px;
  font-family: var(--tech);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  text-decoration: none;
}
.article-card__tel:hover { color: var(--teal-light); }
.article-card p { margin-block-start: 12px; font-size: 14.5px; line-height: 1.5; }

.article-aside h3 { margin-block-end: 12px; color: var(--maroon); }

.article-towns {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--tech);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.015em;
  line-height: 1.5;
}
.article-towns .is-base {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.article-towns .is-base::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
}

.article-towns a { color: var(--navy); text-decoration: none; }
.article-towns a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-footer {
  background: var(--navy-deep);
  color: var(--mist);
  padding-block: 36px;
}
.article-footer__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.article-footer__logo { height: 40px; width: auto; }

.article-footer__company {
  font-family: var(--tech);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--peri);
}

.article-footer__credit::before { content: "· "; }
.article-footer__credit a { color: inherit; text-decoration: none; }
.article-footer__credit a:hover { color: var(--mist); text-decoration: underline; text-underline-offset: 4px; }
.article-footer__slogan { margin-inline-start: auto; }

.notfound {
  display: flex;
  align-items: center;
  min-block-size: 76svh;
  padding-block: calc(64px + clamp(48px, 7vw, 96px)) clamp(48px, 7vw, 96px);
}
/* :has() scopes the sticky footer to 404.html; without it the min-block-size
   above still gives the section its height. */
body:has(.notfound) {
  min-block-size: 100svh;
  display: flex;
  flex-direction: column;
}
body:has(.notfound) .notfound { flex: 1 0 auto; }
.notfound__code {
  font-family: var(--tech);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
}
.notfound h1 {
  margin-block-start: 22px;
  font-size: clamp(48px, 4.4vw, 75px);
}
.notfound__lead {
  margin-block-start: 15px;
  max-width: 46ch;
  font-size: clamp(14px, 1.2vw, 17px);
}
.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: clamp(32px, 4vw, 44px);
}

@media (max-width: 900px) {
  .article-top__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .article-body { grid-template-columns: minmax(0, 1fr); }

  .article-aside { position: static; }
}

@media (max-width: 620px) {

  .article-top { padding-block-start: calc(54px + 36px); }
  .article-top h1 { margin-block-start: 16px; }
  .notfound { padding-block-start: calc(54px + clamp(48px, 7vw, 96px)); }
  .notfound h1 { margin-block-start: 16px; }
  .article-breadcrumbs,
  .article-title-block dt,
  .article-card__label,
  .article-footer__slogan,
  .notfound__code,
  .article-aside h3 { font-size: 13.5px; }
  .article-title-block dd { font-size: 13.5px; }

  .article-top__lead,
  .notfound__lead,
  .article-prose p { font-size: 14px; }
  .article-prose h2 { margin-block-end: 15px; }

  .article-card p { font-size: 13.5px; }

  .article-legend { font-size: 10.5px; letter-spacing: 0.05em; }

  .article-card {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .article-footer { padding-block: 28px; }
  .article-footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .article-footer__slogan { margin-inline-start: 0; }
  .article-footer__credit { display: block; }
  .article-footer__credit::before { content: none; }
}
