/* Construction Site Diary — "Terepnapló" landing: olive canvas cover, ruled linen pages, spirit-level vial. */

@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/bitter-latin-ext-600-normal.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: "Bitter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/bitter-latin-600-normal.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: "Bitter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bitter-latin-ext-700-normal.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: "Bitter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bitter-latin-700-normal.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: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-ext-400-normal.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: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-400-normal.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: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-ext-500-normal.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: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-500-normal.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: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-ext-600-normal.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: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-600-normal.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 {
  --linen: #f3f0e7;
  --card: #fffefa;
  --sunk: #e8e3d5;
  --rule: #e3ddcc;
  --margin: #bfddee;
  --ink: #262b17;
  --soft: #575b45;
  --olive: #3f4a1e;
  --olive-dark: #2c3414;
  --olive-tint: #e4e7d4;
  --sky: #22719c;
  --sky-bright: #8ecdf0;
  --sky-tint: #ddeef7;
  --signal: #b0441b;
  --signal-tint: #f6e1d7;
  --display: "Bitter", Georgia, serif;
  --text: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
}

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

a {
  color: var(--sky);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sky-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  overflow-wrap: anywhere;
  hyphens: manual;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p,
li,
dd {
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 10;
}

.skip:focus {
  left: 12px;
}

.kicker {
  font: 600 0.8rem/1.3 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 12px;
}

.kicker-light {
  color: var(--sky-bright);
}

/* Ruled notebook page: lines every 32px and a blue margin line. */
.ruled {
  background-color: var(--card);
  background-image: linear-gradient(90deg, transparent 0, transparent 46px, var(--margin) 46px, var(--margin) 48px, transparent 48px), repeating-linear-gradient(180deg, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--olive);
  color: #fff;
  border-bottom: 4px solid var(--olive-dark);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  border-radius: 9px;
}

.brand-name {
  font: 700 1.15rem/1.2 var(--display);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.nav a {
  color: #e9ecdc;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--sky-bright);
  text-decoration-thickness: 3px;
}

/* ---------- Spirit-level line ---------- */

.level {
  position: relative;
  height: 18px;
  margin: 18px 0 22px;
}

.level::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: var(--olive);
}

.level span {
  position: absolute;
  left: 0;
  top: 0;
  width: 92px;
  height: 18px;
  border-radius: 9px;
  border: 2px solid var(--sky);
  background: radial-gradient(circle at 50% 50%, var(--sky) 0 5px, transparent 6px), linear-gradient(90deg, transparent 0 30px, var(--sky) 30px 32px, transparent 32px 58px, var(--sky) 58px 60px, transparent 60px), var(--sky-tint);
}

/* ---------- Bound screenshot (notebook page with ring binding) ---------- */

.bound {
  margin: 0;
  position: relative;
  padding-left: 22px;
  max-width: 380px;
}

.bound::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 22px;
  border-radius: 12px 0 0 12px;
  background: radial-gradient(circle at 11px 40px, var(--linen) 0 5px, transparent 6px) 0 0 / 22px 110px repeat-y, var(--olive-dark);
}

.bound img {
  width: 100%;
  border-radius: 0 16px 16px 0;
  box-shadow: 10px 12px 0 rgba(44, 52, 20, 0.16);
  background: var(--sunk);
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0;
  align-items: stretch;
}

.hero-page {
  padding: 40px 40px 40px 72px;
  border: 1px solid var(--rule);
  border-right: 0;
  border-radius: 14px 0 0 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--soft);
  max-width: 36em;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facts li {
  border: 1.5px solid var(--olive);
  color: var(--olive);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--card);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--olive);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.cta-soon {
  background: var(--card);
  color: var(--olive);
  border: 2px dashed var(--olive);
}

.text-link {
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero-cover {
  background: var(--olive);
  border-radius: 0 14px 14px 0;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- One day ---------- */

.day {
  padding: 64px 0;
}

.day-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.day-shot {
  position: sticky;
  top: 24px;
}

.leaves {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}

.leaves li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.leaves h3 {
  margin-bottom: 4px;
}

.leaves p {
  margin: 0;
  color: var(--soft);
}

/* Torn calendar leaf: the marker of a diary day in the app. */
.leaf {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
  overflow: hidden;
}

.leaf span {
  align-self: stretch;
  text-align: center;
  background: var(--olive);
  color: #fff;
  font: 600 0.7rem/1.6 var(--text);
  letter-spacing: 0.1em;
}

.leaf b {
  font: 700 1.6rem/1.3 var(--display);
}

/* ---------- Tabs strip ---------- */

.tabs {
  background: var(--olive);
  color: #eef0e2;
  padding: 64px 0 72px;
}

.tabs h2 {
  color: #fff;
  max-width: 22em;
}

.strip {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.strip-item .bound {
  max-width: 260px;
}

.strip-item .bound::before {
  background: radial-gradient(circle at 11px 40px, var(--olive) 0 5px, transparent 6px) 0 0 / 22px 110px repeat-y, var(--olive-dark);
}

.strip-item .bound img {
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.22);
}

.strip-item h3 {
  color: #fff;
  margin: 22px 0 6px;
}

.strip-item p {
  margin: 0;
  color: #d9ddc6;
  font-size: 0.98rem;
}

.num {
  color: var(--sky-bright);
  font-family: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-right: 4px;
}

/* ---------- Steps ---------- */

.steps {
  padding: 64px 0;
}

.step-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--olive);
}

.step-list li {
  counter-increment: step;
  padding: 22px 22px 26px 0;
  border-bottom: 1px solid var(--rule);
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 700 2.2rem/1 var(--display);
  color: var(--sky);
  margin-bottom: 10px;
}

.step-list h3 {
  margin-bottom: 6px;
}

.step-list p {
  margin: 0;
  color: var(--soft);
}

/* ---------- More / limits ---------- */

.more {
  padding: 0 0 64px;
}

.more-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

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

.ticks li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--rule);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--olive);
  border-bottom: 3px solid var(--olive);
  transform: rotate(-45deg);
}

.limits {
  border: 2px dashed var(--signal);
  border-radius: 14px;
  padding: 26px 28px;
  background: var(--card);
}

.limits h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  color: var(--signal);
}

.limits ul {
  margin: 0;
  padding-left: 20px;
}

.limits li {
  margin: 8px 0;
}

/* ---------- Download ---------- */

.download {
  background: var(--sky-tint);
  padding: 44px 0;
  border-top: 1px solid var(--margin);
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.download h2 {
  margin-bottom: 6px;
}

.download p {
  margin: 0;
}

.ver {
  font: 600 1rem/1 var(--text);
  color: var(--soft);
  vertical-align: middle;
}

/* ---------- Documents (help, privacy, 404) ---------- */

.doc {
  padding: 40px 0 64px;
}

.doc-wrap {
  max-width: 860px;
  padding: 40px 40px 48px 72px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  line-height: 2;
}

.doc-wrap h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  margin-top: 1.4em;
}

.doc-wrap p,
.doc-wrap li {
  line-height: 1.75;
}

.doc-steps li {
  margin: 8px 0;
}

.faq {
  border-bottom: 1px solid var(--rule);
  padding: 6px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq p {
  margin: 4px 0 12px;
  color: var(--soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--olive-dark);
  color: #dfe3cf;
  padding: 40px 0 48px;
}

.site-footer a {
  color: var(--sky-bright);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px 40px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand img {
  border-radius: 10px;
  flex: none;
}

.footer-brand p {
  margin: 0;
}

.footer-brand strong {
  font-family: var(--display);
  color: #fff;
  font-size: 1.15rem;
}

.footer-facts {
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-facts div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
}

.footer-facts dt {
  color: #aeb596;
}

.footer-facts dd {
  margin: 0;
}

.footer-note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #aeb596;
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 260px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .strip-item {
    scroll-snap-align: start;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .day-grid,
  .more-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-page {
    border-right: 1px solid var(--rule);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
  }

  .hero-cover {
    border-radius: 0 0 14px 14px;
  }

  .day-shot {
    position: static;
    max-width: 340px;
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  h1,
  h2,
  h3,
  p,
  li,
  dd {
    hyphens: auto;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 20px 0 36px;
  }

  .hero-page {
    padding: 28px 18px 28px 58px;
  }

  .ruled {
    background-image: linear-gradient(90deg, transparent 0, transparent 38px, var(--margin) 38px, var(--margin) 40px, transparent 40px), repeating-linear-gradient(180deg, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px);
  }

  .hero-cover {
    padding: 28px 20px;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-wrap {
    padding: 28px 18px 32px 54px;
  }

  .limits {
    padding: 20px 18px;
  }

  .footer-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .brand-name {
    font-size: 1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
