/* swiadectwa.piotrbomba.com
   Brand of piotrbomba.com: hard outlines, square corners, hard offset shadows,
   monospace headings, peach highlight. Building theme kept light: graph paper
   behind some sections, dimension lines under headings, hand-drawn SVG. */

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/roboto-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/roboto-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/open-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* brand tokens */
  --ink: #140901;
  --teal: #26655f;
  --slate: #5a5f7d;
  --peach: #ffc594;
  --hair: #c9bfb5;
  --bg: #fbf7f1;
  --panel: #ffffff;
  --alt: #f4ede4;

  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow: 4px 4px 0 var(--ink);
  --bar: 4.5rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  /* room for the sticky call bar, so it never covers the footer */
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px));
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.6rem, 6vw, 2.6rem);
}

h2 {
  font-size: clamp(1.3rem, 4.2vw, 1.75rem);
}

h3 {
  font-size: 1.05rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--alt);
  padding: 0 0.25em;
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.narrow {
  max-width: 48rem;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

/* Peach highlight under key words, like the chips on piotrbomba.com */
.hl {
  box-shadow: inset 0 -0.42em 0 var(--peach);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hl a {
  color: inherit;
}

/* Graph paper: 5 mm minor and 25 mm major lines */
.paper {
  background-color: var(--bg);
  background-image: url("/img/grid.svg");
  background-size: 50px 50px;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -5rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--mono);
}

.skip:focus {
  top: 0.5rem;
}

/* Header */
.site-header {
  background: var(--panel);
  border-bottom: 3px solid var(--ink);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  text-decoration: none;
}

.brand img {
  image-rendering: pixelated;
  width: 32px;
  height: 32px;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 0.35rem 0.5rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.main-nav a:hover {
  border-color: var(--ink);
}

.main-nav a[aria-current] {
  background: var(--peach);
  font-weight: 700;
}

/* On phones the sticky call bar does this job */
.site-header .header-call {
  display: none;
}

/* Breadcrumbs */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0.6rem 0 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--slate);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--hair);
}

.crumbs a {
  color: var(--slate);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
}

.btn-call {
  background: var(--teal);
  color: #ffffff;
}

.btn-call:hover {
  background: var(--ink);
  color: #ffffff;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-small {
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.mail {
  font-family: var(--mono);
  font-size: 0.95rem;
}

.cta {
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  border-bottom: 3px solid var(--ink);
}

.hero-inner {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem 2.5rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 40rem;
}

.byline {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0;
}

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--bg);
}

/* Sections */
.sec {
  padding-block: 3rem;
  border-bottom: 1px solid var(--hair);
}

.sec-alt {
  background: var(--alt);
}

/* Drawing sheet label above section headings */
.sheet {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.1rem 0.5rem;
  border: 2px solid var(--ink);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Dimension line under section headings: thin line with ticks at both ends */
.sec h2,
.prose h2 {
  position: relative;
  padding-bottom: 0.9rem;
  margin-bottom: 1.25rem;
  max-width: 42rem;
}

.sec h2::before,
.sec h2::after,
.prose h2::before,
.prose h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
}

.sec h2::before,
.prose h2::before {
  width: min(100%, 14rem);
  height: 11px;
  border-left: 1px solid var(--slate);
  border-right: 1px solid var(--slate);
}

.sec h2::after,
.prose h2::after {
  width: min(100%, 14rem);
  bottom: 5px;
  border-top: 1px solid var(--slate);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.cases,
.ticks {
  padding: 0;
  list-style: none;
}

.cases li {
  padding: 1rem 0 1rem 1rem;
  border-left: 3px solid var(--teal);
  margin-bottom: 0.75rem;
  background: var(--panel);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  padding-right: 1rem;
}

.cases a {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.ticks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--teal);
}

.steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.25rem 3.5rem;
  margin-bottom: 0.25rem;
  border-left: 1px dashed var(--slate);
  margin-left: 1.25rem;
  padding-left: 2.25rem;
}

.steps li:last-child {
  border-left-color: transparent;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -1.25rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--peach);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-weight: 700;
}

.figure-drawing {
  margin: 0;
  padding: 1rem;
  background: var(--panel);
  border: 2px solid var(--ink);
}

.figure-drawing figcaption {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--slate);
}

.drawing {
  display: block;
  width: 100%;
}

.d-label,
.m-label {
  font-family: var(--mono);
  font-size: 19px;
  fill: var(--ink);
}

.d-teal {
  fill: var(--teal);
  font-weight: 700;
}

/* Light halo under place names, so lines crossing a name do not cut it */
.m-halo {
  fill: #fbf7f1;
  stroke: #fbf7f1;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.m-main {
  font-weight: 700;
  font-size: 21px;
}

/* Prices */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.prices {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.prices th,
.prices td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

.prices thead th {
  background: var(--ink);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prices tbody th {
  font-weight: 400;
}

.prices td {
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
}

.price {
  font-family: var(--mono);
}

/* Thermograms */
.thermo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.thermo .photo:first-child {
  grid-column: 1 / -1;
}

/* FAQ */
.faq-item {
  padding: 1.1rem 0;
  border-top: 1px solid var(--hair);
}

.faq-item:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--hair);
}

.faq-item h3 {
  margin-bottom: 0.4rem;
}

.faq-n {
  color: var(--teal);
  margin-right: 0.35rem;
}

.faq-item p {
  margin: 0;
}

.note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--slate);
}

/* Contact */
.contact h1,
.contact h2 {
  font-size: clamp(1.6rem, 7vw, 2.6rem);
}

.contact h2 {
  max-width: none;
}

/* Dimension line exactly as wide as the heading text */
.sec h2.fit {
  width: fit-content;
}

.sec h2.fit::before,
.sec h2.fit::after {
  width: 100%;
}

.contact .hl a {
  text-decoration: none;
  white-space: nowrap;
}

/* Sub pages */
.page-head {
  padding-block: 2rem 2.5rem;
  border-bottom: 3px solid var(--ink);
}

.facts {
  margin: 0 0 1.5rem;
}

.facts > div {
  padding: 1rem 0;
  border-top: 1px solid var(--hair);
}

.facts dt {
  font-family: var(--mono);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.facts dd {
  margin: 0;
}

.prose h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #f3e4d6;
  padding-block: 1.75rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #f3e4d6;
  text-decoration-thickness: 1px;
  text-decoration-color: #8a7a6c;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration-color: currentColor;
}

/* Business data in one plain line; the call itself lives in the contact section */
.footer-inner p {
  margin-bottom: 0.6rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0.75rem 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid #4a3a2e;
  list-style: none;
}

.foot-copy {
  font-size: 0.8rem;
  color: #c9bfb5;
}

/* Sticky call button on phones */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--panel);
  border-top: 3px solid var(--ink);
}

.callbar .btn {
  display: block;
  text-align: center;
  font-size: 1.15rem;
  box-shadow: none;
}

@media (min-width: 40rem) {
  .thermo {
    grid-template-columns: repeat(3, 1fr);
  }

  .thermo .photo:first-child {
    grid-column: auto;
  }
}

@media (min-width: 52rem) {
  body {
    padding-bottom: 0;
  }

  .callbar {
    display: none;
  }

  .site-header .header-call {
    display: inline-block;
  }

  .main-nav {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 3rem;
    padding-block: 3.5rem 4rem;
  }

  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
  }

  .sec {
    padding-block: 4.5rem;
  }

  .page-head {
    padding-block: 3rem 3.5rem;
  }

  .thermo {
    grid-template-columns: repeat(2, 1fr);
  }

  .thermo .photo:first-child {
    grid-column: 1 / -1;
  }
}
