/* polices du site, servies localement */
@font-face { font-family: 'Fira Sans Extra Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/fira-sans-extra-condensed-latin-ext-400.woff2) format('woff2'); 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: 'Fira Sans Extra Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/fira-sans-extra-condensed-latin-400.woff2) format('woff2'); 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: 'Fira Sans Extra Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/fira-sans-extra-condensed-latin-ext-700.woff2) format('woff2'); 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: 'Fira Sans Extra Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/fira-sans-extra-condensed-latin-700.woff2) format('woff2'); 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: 'Source Sans 3'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-ext-400-800-i.woff2) format('woff2'); 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: 'Source Sans 3'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-400-800-i.woff2) format('woff2'); 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: 'Source Sans 3'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-ext-400-800.woff2) format('woff2'); 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: 'Source Sans 3'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-400-800.woff2) format('woff2'); 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; }

:root {
  --iht-bg: #F6EBE4;
  --iht-surface: #FCF6F2;
  --iht-text: #0F1B3D;
  --iht-muted: #3F4561;
  --iht-accent: #1F3A8A;
  --iht-accent2: #9C4538;
  --iht-line: #D8C2B5;
  --iht-sand: #EBD3C4;
  --iht-garden: #2E4A3B;
  --iht-garden-far: #20382C;
  --iht-wood: #C98F6B;
  --iht-wood-dark: #7B3A2F;
  --iht-lamp: #F3CB7C;
  --iht-radius: 0.75rem;
  --iht-max: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--iht-bg);
  color: var(--iht-text);
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  line-height: 1.08;
  margin: 0 0 0.75rem;
  color: var(--iht-text);
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a {
  color: var(--iht-accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
.iht-btn:focus-visible {
  outline: 3px solid var(--iht-accent2);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* Galvene */
.iht-header {
  background: var(--iht-surface);
  border-bottom: 1px solid var(--iht-line);
}

.iht-header-in {
  max-width: var(--iht-max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.iht-brand {
  font-family: "Fira Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--iht-text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.iht-brand:hover { text-decoration: underline; }

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

.iht-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--iht-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.iht-nav a:hover { border-bottom-color: var(--iht-accent2); }

/* Pirmais ekrāns */
.iht-hero {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
  padding-left: max(1rem, calc((100% - var(--iht-max)) / 2));
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
}

.iht-hero-text { align-self: center; }

.iht-lead {
  font-size: 1.15rem;
  color: var(--iht-muted);
  margin-bottom: 1.25rem;
}

.iht-hero-art {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  border-radius: 1.25rem 0 0 1.25rem;
  background: var(--iht-accent);
}

.iht-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 24rem;
}

.iht-svg-sky { fill: var(--iht-accent); }
.iht-svg-moon { fill: var(--iht-sand); }
.iht-svg-star { fill: var(--iht-surface); }
.iht-svg-far { fill: var(--iht-garden-far); }
.iht-svg-roof { fill: var(--iht-text); }
.iht-svg-wall { fill: var(--iht-accent2); }
.iht-svg-lamp { fill: var(--iht-lamp); }
.iht-svg-frame { stroke: var(--iht-text); stroke-width: 3; fill: none; }
.iht-svg-post { fill: var(--iht-wood); }
.iht-svg-door { fill: var(--iht-text); }
.iht-svg-floor { fill: var(--iht-wood); }
.iht-svg-table { fill: var(--iht-wood-dark); }
.iht-svg-board { fill: var(--iht-sand); }
.iht-svg-p1 { fill: var(--iht-accent2); }
.iht-svg-p2 { fill: var(--iht-accent); }
.iht-svg-p3 { fill: var(--iht-text); }
.iht-svg-mug { fill: var(--iht-surface); }
.iht-svg-steam { stroke: var(--iht-sand); stroke-width: 3; fill: none; stroke-linecap: round; }
.iht-svg-cord { stroke: var(--iht-sand); stroke-width: 2; }
.iht-svg-ground { fill: var(--iht-garden); }
.iht-svg-bloom { fill: var(--iht-sand); }
.iht-svg-bloom2 { fill: var(--iht-accent2); }
.iht-svg-plank { fill: var(--iht-sand); stroke: var(--iht-wood); stroke-width: 2; }
.iht-svg-rail { fill: var(--iht-wood); }

/* Skaitļu rindas */
.iht-figures {
  margin: 0 0 1.5rem;
  padding: 0;
  background: var(--iht-surface);
  border: 1px solid var(--iht-line);
  border-radius: var(--iht-radius);
}

.iht-figures-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
}

.iht-figures-row + .iht-figures-row { border-top: 1px solid var(--iht-line); }

.iht-figures dt {
  font-family: "Fira Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--iht-accent2);
  margin: 0;
}

.iht-figures dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--iht-muted);
  line-height: 1.35;
}

.iht-btn {
  display: inline-block;
  background: var(--iht-accent);
  color: var(--iht-surface);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border-radius: var(--iht-radius);
}

.iht-btn:hover { background: var(--iht-text); }

/* Sadaļas */
.iht-section {
  padding: 2.5rem 1rem;
}

.iht-band {
  background: var(--iht-surface);
  border-top: 1px solid var(--iht-line);
  border-bottom: 1px solid var(--iht-line);
}

.iht-section-in {
  max-width: var(--iht-max);
  margin: 0 auto;
}

.iht-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 2rem;
  align-items: start;
}

.iht-prose { max-width: 46rem; }

.iht-prose p { margin-bottom: 0.9rem; }

.iht-aside {
  display: grid;
  gap: 0.9rem;
}

.iht-callout {
  background: var(--iht-surface);
  border: 1px solid var(--iht-line);
  border-radius: var(--iht-radius);
  padding: 0.9rem 1rem;
}

.iht-band .iht-callout { background: var(--iht-bg); }

.iht-callout-num {
  display: block;
  font-family: "Fira Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--iht-accent2);
  margin-bottom: 0.3rem;
}

.iht-callout p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--iht-muted);
  line-height: 1.4;
}

/* Tabulas */
.iht-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--iht-line);
  border-radius: var(--iht-radius);
  background: var(--iht-surface);
}

.iht-band .iht-table-wrap { background: var(--iht-bg); }

.iht-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.iht-table caption {
  text-align: left;
  padding: 0.7rem 0.9rem 0.3rem;
  font-weight: 700;
  color: var(--iht-text);
}

.iht-table th,
.iht-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--iht-line);
}

.iht-table thead th {
  font-weight: 700;
  color: var(--iht-text);
  background: var(--iht-sand);
  border-top: 0;
}

.iht-table tbody th { font-weight: 700; }

/* Secība ar laiku */
.iht-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.iht-steps li {
  display: grid;
  grid-template-columns: 8.2rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: baseline;
  background: var(--iht-bg);
  border: 1px solid var(--iht-line);
  border-radius: var(--iht-radius);
  padding: 0.6rem 0.9rem;
}

.iht-steps time {
  font-family: "Fira Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--iht-accent2);
  white-space: nowrap;
}

.iht-steps p { margin: 0; }

/* Attēli */
.iht-figure { margin: 0 0 1.25rem; }

.iht-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--iht-radius);
}

.iht-figure figcaption {
  font-size: 0.92rem;
  color: var(--iht-muted);
  padding-top: 0.4rem;
}

/* Jautājumi un atbildes */
.iht-qa-list {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
}

.iht-qa {
  background: var(--iht-surface);
  border: 1px solid var(--iht-line);
  border-radius: var(--iht-radius);
  padding: 0.9rem 1.1rem;
}

.iht-qa-q {
  font-family: "Fira Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  color: var(--iht-text);
}

.iht-qa-a { margin: 0; color: var(--iht-muted); }

/* Kājene */
.iht-footer {
  background: var(--iht-text);
  color: var(--iht-bg);
  padding: 1.75rem 1rem;
  margin-top: 1rem;
}

.iht-footer-in {
  max-width: var(--iht-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.iht-footer-name {
  font-family: "Fira Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
}

.iht-footer a { color: var(--iht-bg); }

.iht-footer a:focus-visible { outline-color: var(--iht-lamp); }

.iht-credits { font-size: 0.9rem; flex-basis: 100%; margin: 0; }

/* Mazie ekrāni */
@media (max-width: 62rem) {
  .iht-split { grid-template-columns: minmax(0, 1fr); }
  .iht-aside { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}

@media (max-width: 52rem) {
  .iht-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.75rem 0 0;
    gap: 1.5rem;
  }
  .iht-hero-text { padding: 0 1rem; }
  .iht-hero-art { border-radius: 0; min-height: 17rem; }
  .iht-art { min-height: 17rem; }
}

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .iht-steps li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .iht-figures-row { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .iht-figures dt { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
