/*
Theme Name: OMA Ihminen
Author: Iivari & Ritva
Version: 0.3
Description: Rauhallinen digitaalinen kylä ihmisille, jotka tarvitsevat tilaa hengittää.
Text Domain: oma-ihminen
*/

:root {
  --cream: #f4efe5;
  --paper: #fffdf8;
  --sand: #d8ccb8;
  --moss: #5a6a54;
  --forest: #314139;
  --deep-forest: #26342d;
  --bark: #5b5045;
  --ink: #292d29;
  --muted: #6d746d;
  --line: rgba(49, 65, 57, .16);
  --shadow: 0 24px 70px rgba(39, 52, 45, .09);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  margin: 0;
  clip: auto;
  background: var(--paper);
  border-radius: 999px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid rgba(49,65,57,.1);
  background: rgba(244, 239, 229, .84);
  backdrop-filter: blur(18px);
}
.site-header__inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .75rem;
  text-decoration: none;
}
.brand__name,
.hero h1,
.manifesto h2,
.perspective h2,
.section-title,
.path h3,
.welcome h2,
.reading-page h1,
.archive-item h2,
.quiet-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.brand__name {
  color: var(--forest);
  font-size: 1.45rem;
  letter-spacing: .035em;
}
.brand__tagline { color: var(--muted); font-size: .84rem; }
.main-nav__list {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}
.main-nav a { color: var(--forest); font-size: .94rem; text-decoration: none; }
.main-nav a:hover,
.main-nav a:focus-visible { text-decoration: underline; text-underline-offset: .32rem; }

.site-main { overflow: hidden; }
.hero {
  min-height: 100svh;
  padding: 8rem 1rem 4rem;
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 25%, rgba(255,255,255,.75), transparent 26%),
    linear-gradient(145deg, #dad2c2, #87957f);
}
.hero--with-image {
  background-image:
    linear-gradient(90deg, rgba(244,239,229,.98) 0%, rgba(244,239,229,.82) 43%, rgba(244,239,229,.15) 78%),
    var(--oma-hero-image);
  background-size: cover;
  background-position: center;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(38,52,45,.1), transparent 45%);
}
.hero__inner { width: min(1180px, 100%); margin: 0 auto; }
.hero__content { max-width: 760px; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--moss);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--forest);
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: .97;
  letter-spacing: -.045em;
}
.hero__lead {
  max-width: 670px;
  margin: 1.75rem 0 0;
  color: #414940;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button {
  min-height: 50px;
  padding: .86rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover,
.button:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(49,65,57,.18); }
.button--quiet { background: rgba(255,255,255,.28); border-color: rgba(49,65,57,.32); color: var(--forest); }

.breathing-room { padding: 6rem 1rem; background: var(--paper); }
.rest-card { width: min(900px, 100%); margin: 0 auto; text-align: center; }
.rest-card h2 { margin: 0; color: var(--forest); font-size: clamp(2.2rem, 5vw, 4.4rem); }
.rest-card p { max-width: 650px; margin: 1rem auto 0; color: var(--muted); font-size: 1.08rem; }
.breathe {
  width: 116px;
  height: 116px;
  margin: 2.6rem auto 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(90,106,84,.12);
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(.86); opacity: .7; }
  50% { transform: scale(1.1); opacity: 1; }
}

.window-scene { padding: 0 1rem 7rem; background: var(--paper); }
.window-scene__figure { width: min(1120px, 100%); margin: 0 auto; }
.window-scene__image {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.image-placeholder {
  width: min(1120px, 100%);
  min-height: 420px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .5rem;
  color: rgba(255,255,255,.9);
  text-align: center;
  background: linear-gradient(145deg, #75826f, #3f5147);
}
.image-placeholder small { max-width: 520px; color: rgba(255,255,255,.7); }
.image-placeholder--prism { min-height: 500px; background: linear-gradient(135deg, #d8d2c7, #77857c); }

.manifesto { padding: 8rem 1rem; background: var(--deep-forest); color: #fff; }
.manifesto__inner { width: min(900px, 100%); margin: 0 auto; }
.manifesto .eyebrow { color: #c6d1c4; }
.manifesto h2 { margin: 0; font-size: clamp(3.2rem, 7vw, 6.7rem); line-height: 1; }
.manifesto__text { margin-top: 3rem; }
.manifesto__text p { max-width: 760px; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.manifesto__emphasis { margin: 2.4rem 0; color: #fff !important; font-family: Georgia, "Times New Roman", serif; font-size: 2rem !important; }
.manifesto__closing { margin-top: 3.5rem; color: #fff !important; }

.quiet-space { min-height: 180px; background: var(--cream); }

.perspective {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.perspective__image { width: 100%; min-height: 500px; object-fit: cover; }
.perspective h2 { margin: 0; color: var(--forest); font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.03; }
.perspective p { color: var(--muted); }

.village { padding: 7rem 1rem; background: var(--paper); }
.section-heading { width: min(1180px, 100%); margin: 0 auto 3rem; }
.section-title { max-width: 780px; margin: 0; color: var(--forest); font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.05; }
.section-intro { max-width: 700px; margin: 1rem 0 0; color: var(--muted); }
.village-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.path { min-height: 310px; padding: 1rem 0 2rem; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.path__number { color: var(--moss); font-size: .76rem; font-weight: 750; letter-spacing: .15em; }
.path h3 { margin: auto 0 .5rem; color: var(--forest); font-size: 2.25rem; }
.path p { margin: 0; color: var(--muted); }
.path a { margin-top: 1.25rem; color: var(--forest); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: .32rem; }

.welcome { padding: 7rem 1rem; background: var(--forest); color: #fff; }
.welcome__inner { width: min(900px, 100%); margin: 0 auto; }
.welcome .eyebrow { color: #c9d4c7; }
.welcome h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1.04; }
.welcome p { max-width: 720px; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.safety-note { margin-top: 2rem; padding: 1.35rem 1.5rem; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.055); font-size: .95rem; }

.page-shell { min-height: 75vh; padding: 10rem 1rem 6rem; }
.reading-page,
.archive-list { width: min(820px, 100%); margin: 0 auto; }
.reading-page__header { margin-bottom: 3rem; }
.reading-page__header h1 { margin: 0; color: var(--forest); font-size: clamp(3rem, 7vw, 6rem); line-height: 1; }
.reading-page__header p { max-width: 650px; color: var(--muted); font-size: 1.1rem; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 720px; }
.entry-content img,
.entry-content figure { max-width: 100%; }
.quiet-quote { margin: 5rem 0 0; padding: 3rem 0; color: var(--forest); border-top: 1px solid var(--line); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.12; }
.archive-item { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.archive-item__date { margin: 0; color: var(--muted); font-size: .88rem; }
.archive-item h2 { margin: .4rem 0; color: var(--forest); font-size: 2.2rem; }
.archive-item h2 a { text-decoration: none; }

.site-footer { padding: 2.8rem 1rem; background: #243129; color: rgba(255,255,255,.7); }
.site-footer__inner { width: min(1180px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer strong { color: #fff; }
.site-footer__quote { max-width: 360px; font-family: Georgia, "Times New Roman", serif; }

@media (max-width: 800px) {
  body.admin-bar .site-header { top: 46px; }
  .brand__tagline,
  .main-nav { display: none; }
  .site-header__inner { min-height: 64px; }
  .hero { padding-top: 7rem; }
  .hero--with-image {
    background-image:
      linear-gradient(rgba(244,239,229,.88), rgba(244,239,229,.88)),
      var(--oma-hero-image);
  }
  .perspective { grid-template-columns: 1fr; }
  .village-grid { grid-template-columns: 1fr; }
  .quiet-space { min-height: 110px; }
}

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