/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Törmälä Kiinteistöt Oy – Karjalan päivänvalo. Child theme carries the web font,
               the base reset and the shared utility classes. Everything else lives in Bricks
               (global variables, global classes, theme style, header/footer templates, page body).
 Author:       Digiveljet
 Template:     bricks
 Version:      1.2
 Text Domain:  bricks
*/

/* Fonts ------------------------------------------------------------------ */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/schibsted-grotesk-latin.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: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

/* Base ------------------------------------------------------------------- */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-color: var(--river) var(--birch);
}

body {
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--river);
  accent-color: var(--river);
}

::selection { background: var(--lake); color: var(--river-deep); }

img { display: block; max-width: 100%; height: auto; }

address { font-style: normal; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

/* Utilities -------------------------------------------------------------- */

.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tk-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 1.5rem; height: 1.5rem; }

/* Motion ----------------------------------------------------------------- */

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

@keyframes tk-rise {
  from { opacity: 0.4; transform: translateY(32%); }
  to { opacity: 1; transform: none; }
}
@keyframes tk-fade-up {
  from { opacity: 0.4; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes tk-open-light {
  from { clip-path: inset(10% 4% 0 4%); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes tk-settle {
  from { transform: scale(1.12); filter: brightness(1.18) saturate(0.8); }
  to { transform: none; filter: none; }
}
