* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}
body {
  margin: 0;
  color: var(--ink, #292e2a);
  background: var(--paper, #faf9f5);
  font: 18px/1.75
    var(
      --body,
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif
    );
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  color: var(--accent, #315b48);
}
button,
select,
input {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
a,
button,
summary,
select {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent, #315b48);
  outline-offset: 5px;
}
h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}
p + p {
  margin-top: 1.1em;
}
h1,
h2,
h3 {
  font-family: var(--heading, var(--body, system-ui));
  font-weight: var(--weight, 500);
  line-height: 1.22;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.55rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.4rem;
}
h1 em {
  font-weight: inherit;
}
sup {
  font-size: 0.45em;
  vertical-align: super;
}
sup a {
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
main {
  min-width: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 20;
  background: var(--paper, #fff);
  padding: 0.75rem 1.25rem;
}
.skip-link:focus {
  top: 1rem;
}
.eyebrow {
  font: 600 0.76rem/1.5 var(--body, system-ui);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted, #53625b);
}
.text-link,
.back-link {
  display: inline-flex;
  gap: 0.65rem;
  align-items: baseline;
  font-size: 0.95rem;
  font-weight: 550;
}
.text-link span {
  transition: transform 0.15s;
}
.text-link:hover span {
  transform: translate(2px, -2px);
}
.links,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.06rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
.brand-mark {
  font-family: var(--heading, Georgia);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.08em;
}
.brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.25rem;
}
.desktop-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
  padding: 0.6rem 0;
}
.desktop-nav a[aria-current] {
  color: var(--accent);
  font-weight: 650;
}
.mobile-nav {
  display: none;
}
.site-header {
  position: relative;
}
.site-footer {
  border-top: 1px solid var(--line, #d3d9d3);
  padding: 2.5rem 0;
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 2rem;
  font-size: 0.85rem;
}
.site-footer a {
  overflow-wrap: anywhere;
}
.site-footer p {
  color: var(--muted);
  margin: 0;
}
.footer-name {
  font-weight: 600;
  text-decoration: none;
}
.back-top {
  justify-self: end;
}
.page-intro {
  margin: 0 0 3rem;
}
.page-intro .eyebrow {
  margin-bottom: 1rem;
}
.page-intro h1 {
  max-width: 23ch;
  margin-bottom: 1.3rem;
}
.page-intro .intro-copy {
  max-width: 68ch;
}
.page-intro .intro-copy p:first-child {
  font-size: 1.15em;
  line-height: 1.65;
}
.page-intro .status {
  margin: 0 0 1.5rem;
}
.back-link {
  margin-bottom: 2rem;
}
.date {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.content-section {
  margin-bottom: 3rem;
  scroll-margin-top: 1.5rem;
}
.section-heading h2 {
  margin-bottom: 1.2rem;
}
.section-copy {
  max-width: 68ch;
}
.section-copy p {
  overflow-wrap: break-word;
}
.subsection {
  margin-top: 2rem;
}
.subsection h3 {
  margin-bottom: 1rem;
}
.page-outline {
  font-size: 0.83rem;
  line-height: 1.55;
}
.page-outline > p {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
}
.page-outline ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.page-outline a {
  text-decoration: none;
  color: var(--muted);
}
.page-outline a:hover {
  text-decoration: underline;
  color: var(--ink);
}
.status {
  font-size: 0.7rem;
  line-height: 1.4;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  color: var(--muted);
  vertical-align: middle;
  background: var(--paper);
}
.status.ready {
  color: var(--accent);
}
.status.idea {
  border-style: dashed;
}
.project-item {
  min-width: 0;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.project-meta .status {
  margin-left: auto;
}
.project-item h2,
.project-item h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}
.project-item h2 a,
.project-item h3 a,
.featured h3 a {
  text-decoration: none;
}
.project-item h2 a:hover,
.project-item h3 a:hover,
.featured h3 a:hover {
  text-decoration: underline;
}
.project-item > p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}
.project-number {
  font: 500 0.74rem/1.4 system-ui;
}
.featured h3 {
  margin: 1rem 0;
}
.featured .text-link {
  margin-top: 1.3rem;
}
.featured .status {
  margin-bottom: 0.2rem;
}
.featured p {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.home-section {
  margin-top: 4rem;
}
.home-work {
  margin-top: 4rem;
}
.home-work > .text-link {
  margin-top: 2rem;
}
.home-work > .section-heading {
  margin-bottom: 2rem;
}
.home-work > .section-heading .eyebrow {
  margin-bottom: 0.5rem;
}
.hero-intro {
  max-width: 48ch;
  margin-top: 1.8rem;
  font-size: 1.12rem;
  line-height: 1.7;
}
.footnote {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 1rem;
}
.home-hero h1 {
  margin-top: 1.3rem;
}
.photo {
  margin: 2rem 0;
}
.photo img {
  width: 100%;
  object-fit: cover;
}
.photo figcaption,
.photo-space figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.8rem;
}
.photo-space {
  min-width: 0;
}
.photo-art {
  min-height: 320px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--soft, #dfe6dc);
  border-radius: 3px;
}
.photo-art span {
  font-family: var(--heading, Georgia);
  font-size: 7rem;
  letter-spacing: -0.1em;
  color: var(--accent);
  opacity: 0.65;
  position: relative;
  z-index: 1;
}
.photo-art i {
  position: absolute;
  border: 1px solid var(--accent);
  opacity: 0.22;
  left: 20%;
  width: 75%;
  height: 110%;
  border-radius: 45% 45% 0 0;
  top: 20%;
  transform: rotate(-16deg);
}
.photo-art i + i {
  left: 45%;
  top: 45%;
  transform: rotate(22deg);
}
.empty-state {
  padding: 3rem;
  border: 1px solid var(--line);
  margin-top: 2rem;
  max-width: 65ch;
}
.empty-state > span {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.empty-state h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.empty-state p {
  font-size: 1rem;
}
.project-end {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 3rem;
}
.now-archive,
.article-list {
  margin-top: 3rem;
}
.now-archive h2,
.article-list h2 {
  margin-bottom: 1.5rem;
}
.article-list article {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.article-list time {
  font-size: 0.85rem;
  color: var(--muted);
}
.article-list h3 {
  margin-top: 0.5rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  body {
    font-size: 17px;
  }
  .desktop-nav {
    display: none !important;
  }
  .mobile-nav {
    display: block;
    margin-left: auto;
  }
  .mobile-nav summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    list-style: none;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    min-height: 44px;
  }
  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav[open] summary span {
    transform: rotate(45deg);
  }
  .mobile-nav nav {
    position: absolute;
    z-index: 5;
    right: 0;
    top: calc(100% + 0.35rem);
    display: grid;
    min-width: min(18rem, calc(100vw - 2rem));
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 0.6rem;
    box-shadow: 0 10px 24px #0000000e;
  }
  .mobile-nav nav a {
    padding: 0.65rem 0.8rem;
    text-decoration: none;
    min-height: 44px;
  }
  .mobile-nav nav a[aria-current] {
    background: var(--soft);
    color: var(--accent);
    font-weight: 600;
  }
  .site-footer {
    margin-top: 3.5rem;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .back-top {
    justify-self: start;
    margin-top: 0.6rem;
  }
  .page-intro {
    margin-bottom: 2.4rem;
  }
  .page-intro .intro-copy p:first-child {
    font-size: 1.08em;
  }
  .home-hero h1 br {
    display: none;
  }
  .home-work,
  .home-section {
    margin-top: 3rem;
  }
  .empty-state {
    padding: 1.5rem;
  }
  .page-outline a {
    display: inline-block;
    padding: 0.2rem 0;
  }
  .project-end {
    display: grid;
  }
  .photo-art {
    min-height: 260px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .desktop-nav,
  .mobile-nav,
  .skip-link,
  .page-outline,
  .back-top {
    display: none !important;
  }
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }
  .site-shell,
  .site-main {
    max-width: none !important;
    padding: 0 !important;
  }
  .content-section {
    break-inside: avoid;
  }
  a {
    color: inherit;
  }
}
/* Pitkät suomenkieliset yhdyssanat eivät saa kasvattaa palstan minimileveyttä. */
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
.section-copy,
.section-heading,
.section-heading h2,
.page-outline,
.notebook-pages,
.reading-main,
.story-text,
.play-reading {
  min-width: 0;
}
.home-small > *,
.featured-projects > *,
.project-collection > *,
.story-reading > *,
.play-page-top > * {
  min-width: 0;
}
.text-link,
.back-link {
  max-width: 100%;
  min-width: 0;
}
.link-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.text-link > span:first-child {
  transform: none;
}
.photo-art span {
  opacity: 1;
}
.link-arrow {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
  vertical-align: -0.03em;
  transition: transform 0.15s;
}
.text-link:hover .link-arrow {
  transform: translate(2px, -2px);
}
