@font-face {
  font-family: "Archivo Narrow Local";
  src: url("/cimentul-impaturit/assets/fonts/ArchivoNarrow.19b584eb9a10.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Local";
  src: url("/cimentul-impaturit/assets/fonts/AtkinsonHyperlegibleNext.abde1ad5cf78.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono Local";
  src: url("/cimentul-impaturit/assets/fonts/IBMPlexMono-Regular.81fc864103e7.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --mineral: #dce4e5;
  --paper: #f7f4eb;
  --ink: #10191c;
  --slate: #30464c;
  --muted: #4b5d62;
  --lamella: #8ca8a6;
  --lamella-dark: #587a7a;
  --coral: #cf4b38;
  --coral-dark: #8d281f;
  --heat: #167889;
  --yellow: #e3b735;
  --line: #91a2a4;
  --display: "Archivo Narrow Local", "Arial Narrow", sans-serif;
  --sans: "Atkinson Local", system-ui, sans-serif;
  --mono: "Plex Mono Local", monospace;
  --measure: 75rem;
}

* { box-sizing: border-box; }

html {
  background: var(--mineral);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.54;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body { margin: 0; overflow-x: hidden; }

a {
  align-items: center;
  color: inherit;
  display: inline-flex;
  min-height: 2.75rem;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.19em;
}

a:hover { text-decoration-thickness: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--heat); outline-offset: 4px; }

.skip-link {
  background: var(--ink);
  color: var(--paper);
  left: 1rem;
  padding: .75rem 1rem;
  position: fixed;
  top: 0;
  transform: translateY(-140%);
  z-index: 50;
}
.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: calc(var(--measure) + 4rem);
  padding: 1rem 2rem;
}

.site-header { border-bottom: 1px solid var(--ink); min-height: 4.5rem; }
.site-header nav { align-items: center; display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.maker {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 800;
  height: 2.75rem;
  justify-content: center;
  text-decoration: none;
  width: 2.75rem;
}
.language { border: 1px solid var(--ink); padding: 0 .8rem; text-decoration: none; }
main { overflow: clip; }
section, .hero { margin: 0 auto; max-width: var(--measure); }

.hero {
  display: grid;
  gap: clamp(2rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 1.3fr) minmax(18.5rem, .7fr);
  min-height: calc(100svh - 4.5rem);
  padding: clamp(2.8rem, 7vw, 6.3rem) 2rem 4rem;
  position: relative;
}

.hero::after {
  background: repeating-linear-gradient(0deg, transparent 0 15px, rgb(88 122 122 / 28%) 15px 17px);
  bottom: 1rem;
  content: "";
  height: 6rem;
  left: 2rem;
  pointer-events: none;
  position: absolute;
  right: 2rem;
  z-index: -1;
}

.hero-copy { align-self: start; }
.eyebrow, .section-number, .trust, .edition {
  font-family: var(--mono);
  font-size: clamp(.7rem, 1.2vw, .82rem);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow { border-left: .55rem solid var(--yellow); margin: 0 0 1.25rem; padding-left: .8rem; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, .heat-number, .metric strong, .orientation strong {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .96;
}
h1 { font-size: clamp(3.35rem, 6vw, 6.2rem); margin-bottom: 1.35rem; max-width: 11.5ch; }
h1 span { color: var(--coral-dark); }
h2 { font-size: clamp(2.65rem, 5vw, 5rem); margin-bottom: 0; max-width: 15ch; }
h3 { font-size: 1.25rem; }
.deck { font-size: clamp(1.08rem, 1.8vw, 1.36rem); line-height: 1.45; margin-bottom: 1.25rem; max-width: 47rem; }
.trust { color: var(--muted); line-height: 1.65; margin: 0; max-width: 49rem; }

.hero-ledger {
  align-self: end;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: .7rem .7rem 0 var(--yellow);
}
.metric { display: grid; padding: 1.1rem 1.3rem; }
.metric + .metric { border-top: 1px solid var(--ink); }
.metric strong { font-size: clamp(3.1rem, 5.7vw, 5.2rem); }
.metric span { font-size: .95rem; font-weight: 800; }
.metric small { color: var(--muted); font-family: var(--mono); font-size: .68rem; margin-top: .35rem; }
.metric.fracture strong { color: var(--coral-dark); }
.metric.heat strong { color: var(--heat); }
.hero-ledger > p { background: var(--ink); color: var(--paper); font-size: .88rem; margin: 0; padding: .9rem 1.3rem; }

.lab-section, .metrics-section, .direction-section, .heat-section, .making-section, .limits-section {
  border-top: 1px solid var(--ink);
  padding: clamp(4rem, 8vw, 7.5rem) 2rem;
}

.section-intro {
  display: grid;
  gap: 1rem clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .55fr);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-intro.compact { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-number { color: var(--muted); grid-column: 1 / -1; margin-bottom: 0; }
.section-intro > p:last-child { align-self: end; font-size: 1.08rem; margin: 0; max-width: 36rem; }

.lab { background: var(--paper); border: 2px solid var(--ink); }
.view-controls { border-bottom: 2px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); }
.view-controls button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: 800 .82rem var(--mono);
  min-height: 3.4rem;
  padding: .7rem 1rem;
  text-transform: uppercase;
}
.view-controls button + button { border-left: 1px solid var(--ink); }
.view-controls button[aria-pressed="true"] { background: var(--yellow); }
.view-controls button:hover { box-shadow: inset 0 -.3rem var(--coral); }
.specimen { margin: 0; padding: clamp(.7rem, 2.4vw, 2rem); }
.specimen svg { display: block; height: auto; max-height: 42rem; width: 100%; }
.specimen-bed { fill: #e8ecea; stroke: var(--ink); stroke-width: 4; }
.lamellae path { fill: none; stroke: var(--lamella-dark); stroke-linecap: round; stroke-width: 22; }
.cavities ellipse { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.layer { opacity: 0; transition: opacity .18s ease; }
.lab[data-view="crack"] .crack-layer, .lab[data-view="direction"] .direction-layer, .lab[data-view="heat"] .heat-layer { opacity: 1; }
.crack-path { fill: none; stroke: var(--coral); stroke-linecap: round; stroke-linejoin: round; stroke-width: 10; }
.crack-layer circle { fill: none; stroke: var(--yellow); stroke-width: 5; }
.load { fill: none; stroke-width: 9; }
.load.good { stroke: var(--yellow); }
.load.weak { stroke: var(--coral); }
.direction-layer text, .heat-layer text, .diagram-label { fill: var(--ink); font-family: var(--mono); font-size: 19px; font-weight: 800; }
.heat-path { fill: none; stroke: var(--heat); stroke-linecap: round; stroke-width: 12; }
.heat-path.second { opacity: .62; }
.diagram-label { fill: var(--muted); font-size: 15px; }
.specimen figcaption { align-items: baseline; border-top: 1px solid var(--line); display: flex; gap: 1rem; justify-content: space-between; padding: 1rem .25rem 0; }
.specimen output { font-size: 1.08rem; font-weight: 800; }
.specimen figcaption span { color: var(--muted); font-family: var(--mono); font-size: .68rem; text-align: right; text-transform: uppercase; }

.comparison { border: 2px solid var(--ink); }
.table-row { align-items: stretch; display: grid; grid-template-columns: 2fr .65fr .65fr 1.55fr; }
.table-row + .table-row { border-top: 1px solid var(--ink); }
.table-row > span { align-items: center; display: flex; min-width: 0; padding: 1rem; }
.table-row > span + span { border-left: 1px solid var(--ink); }
.table-row span:nth-child(2), .table-row span:nth-child(3) { font-family: var(--display); font-size: 1.8rem; font-weight: 800; justify-content: center; }
.table-head { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.table-head span:nth-child(2), .table-head span:nth-child(3) { font-family: var(--mono); font-size: .72rem; }
.table-row small { color: var(--muted); display: block; font-family: var(--mono); font-size: .66rem; margin-top: .3rem; }
.standout { background: #f2dbc9; }
.standout span:nth-child(3) { color: var(--coral-dark); }
.handoff { border-left: .45rem solid var(--yellow); font-size: 1.1rem; font-weight: 800; margin: 2.2rem 0 0; max-width: 48rem; padding: .25rem 0 .25rem 1rem; }

.orientation-pair { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.orientation { background: var(--paper); border: 2px solid var(--ink); display: grid; grid-template-columns: minmax(12rem, .85fr) 1fr; margin: 0; min-width: 0; }
.mini-specimen { align-items: center; background: var(--mineral); border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: .55rem; justify-content: center; min-height: 17rem; overflow: hidden; padding: 3rem 1rem; position: relative; }
.mini-specimen i { background: var(--lamella-dark); border-radius: 99px; display: block; height: .72rem; width: 72%; }
.mini-specimen b { color: var(--coral); font: 800 3rem var(--display); position: absolute; }
.favourable .mini-specimen b:first-of-type { top: .35rem; }
.favourable .mini-specimen b:last-of-type { bottom: .35rem; }
.weak .mini-specimen b:first-of-type { left: .45rem; }
.weak .mini-specimen b:last-of-type { right: .45rem; }
.orientation figcaption { align-self: center; display: grid; padding: 1.4rem; }
.orientation figcaption span { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.orientation strong { color: var(--coral-dark); font-size: clamp(3.4rem, 6vw, 5.5rem); }
.orientation small { color: var(--muted); }
.weak strong { color: var(--slate); }
.compression-note { align-items: center; background: var(--ink); color: var(--paper); display: grid; gap: 1rem; grid-template-columns: 1.5fr 1fr auto 1fr 1.6fr; margin-top: 1.5rem; padding: 1.2rem 1.4rem; }
.compression-note .section-number { color: #c1d0d0; grid-column: auto; }
.compression-note p { margin: 0; }
.compression-note strong { color: var(--yellow); display: block; font-family: var(--display); font-size: 2rem; }
.compression-note small { color: #c1d0d0; }

.heat-section { align-items: end; display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: minmax(0, 1fr) minmax(18rem, .75fr); }
.heat-number { color: var(--heat); font-size: clamp(4.8rem, 11vw, 10rem); overflow-wrap: anywhere; }
.heat-section h2 { margin-bottom: 1.3rem; }
.heat-section > div:last-child > p:not(.section-number) { font-size: 1.08rem; }
.boundary { border-top: 1px solid var(--ink); padding-top: 1rem; }

.fold-sequence { counter-reset: folds; display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.fold-sequence li { border: 1px solid var(--ink); min-width: 0; padding: 1rem; }
.fold-sequence li + li { border-left: 0; }
.fold-sequence li > span { background: var(--yellow); border: 1px solid var(--ink); display: grid; font: 800 1.1rem var(--mono); height: 2.75rem; place-items: center; width: 2.75rem; }
.fold-sequence p { font-weight: 800; margin: 1rem 0 0; }
.fold-icon { align-content: center; display: grid; gap: .35rem; height: 11rem; margin: .5rem auto 0; width: 80%; }
.fold-icon::before, .fold-icon::after { background: var(--lamella-dark); border-radius: 99px; content: ""; display: block; height: .75rem; }
.fold-icon.two { background: repeating-linear-gradient(0deg, transparent 0 1.5rem, rgb(88 122 122 / 45%) 1.5rem 2.1rem); }
.fold-icon.four { background: repeating-linear-gradient(0deg, transparent 0 1rem, rgb(88 122 122 / 55%) 1rem 1.45rem); }
.fold-icon.seven { background: repeating-linear-gradient(0deg, transparent 0 .65rem, rgb(88 122 122 / 70%) .65rem .98rem); }

.limits-section { display: grid; gap: clamp(2rem, 7vw, 6rem); grid-template-columns: minmax(0, 1fr) minmax(18rem, .85fr); }
.limits-list { border-top: 2px solid var(--ink); list-style: none; margin: 0 0 2.5rem; padding: 0; }
.limits-list li { border-bottom: 1px solid var(--line); padding: .95rem 0; }
.sources-list { padding-left: 1.2rem; }
.edition { color: var(--muted); line-height: 1.65; }
.site-footer { border-top: 1px solid var(--ink); min-height: 6rem; }
.site-footer p { margin: 0; }
.not-found { min-height: 100svh; padding: 15vh 2rem; }
.not-found h1 { max-width: 14ch; }

@media (max-width: 850px) {
  .hero, .section-intro, .heat-section, .limits-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-ledger { align-self: start; max-width: 34rem; }
  .section-intro > p:last-child { max-width: 46rem; }
  .orientation-pair { grid-template-columns: 1fr; }
  .compression-note { grid-template-columns: 1fr 1fr auto 1fr; }
  .compression-note .section-number, .compression-note small { grid-column: 1 / -1; }
  .fold-sequence { grid-template-columns: repeat(2, 1fr); }
  .fold-sequence li:nth-child(3) { border-left: 1px solid var(--ink); }
  .fold-sequence li:nth-child(n+3) { border-top: 0; }
}

@media (max-width: 620px) {
  .site-header, .site-footer { padding-inline: 1rem; }
  .site-header nav { gap: .7rem; }
  .site-header nav > a:first-child { display: none; }
  .hero, .lab-section, .metrics-section, .direction-section, .heat-section, .making-section, .limits-section { padding-left: 1rem; padding-right: 1rem; }
  .hero { gap: 1.5rem; padding-bottom: 3rem; padding-top: 2rem; }
  h1 { font-size: clamp(3.15rem, 15.5vw, 4.25rem); }
  .deck { font-size: 1.04rem; }
  .hero::after { left: 1rem; right: 1rem; }
  .hero-ledger { box-shadow: .45rem .45rem 0 var(--yellow); }
  .metric { padding: .85rem 1rem; }
  .metric strong { font-size: 3rem; }
  .view-controls { grid-template-columns: 1fr; }
  .view-controls button + button { border-left: 0; border-top: 1px solid var(--ink); }
  .specimen { padding: .4rem; }
  .specimen figcaption { align-items: flex-start; flex-direction: column; padding: .85rem; }
  .specimen figcaption span { text-align: left; }
  .diagram-label { font-size: 17px; }
  .comparison { border: 0; }
  .table-head { display: none; }
  .table-row { border: 2px solid var(--ink); grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
  .table-row + .table-row { border-top: 2px solid var(--ink); }
  .table-row > span { min-height: 4rem; }
  .table-row > span:first-child, .table-row > span:last-child { grid-column: 1 / -1; }
  .table-row > span + span { border-left: 0; }
  .table-row > span:nth-child(2), .table-row > span:nth-child(3) { border-top: 1px solid var(--ink); }
  .table-row > span:nth-child(3) { border-left: 1px solid var(--ink); }
  .table-row > span:last-child { border-top: 1px solid var(--ink); }
  .orientation { grid-template-columns: 1fr; }
  .mini-specimen { border-bottom: 1px solid var(--ink); border-right: 0; min-height: 12rem; }
  .compression-note { grid-template-columns: 1fr auto 1fr; }
  .compression-note .section-number { grid-column: 1 / -1; }
  .heat-number { font-size: 19vw; }
  .fold-sequence { grid-template-columns: 1fr; }
  .fold-sequence li + li { border-left: 1px solid var(--ink); border-top: 0; }
  .fold-icon { height: 8rem; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-block: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
