/* Veltti — pelkkä CSS. Vanhan sivun visuaalinen perusilme säilytetty. */
:root { --grey: #666666; --white: #fff; --ink: #282828; --muted: #666; --accent: #ff9900; --border: #ededed; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grey); color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.site { width: min(1280px, calc(100% - 56px)); margin: 0 auto; }
.site-header { color: #fff; min-height: 109px; padding: 27px 2px 21px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.site-title { color: #fff; font-size: clamp(35px, 4vw, 54px); line-height: 1.05; font-weight: 400; letter-spacing: .2px; }
.site-title:hover, .site-title:focus-visible { color: #fff; }
.site-identity { color: #fff; padding-top: 3px; min-width: 215px; text-align: left; }
.site-identity .role { display: block; font-size: 14px; font-weight: bold; letter-spacing: .26em; white-space: nowrap; }
.site-identity .email { display: block; font-size: 11px; letter-spacing: .07em; padding-top: 10px; line-height: 1.6; }
.frame { display: grid; grid-template-columns: 210px minmax(0, 1fr); background: white; min-height: 660px; }
.sidebar { padding: 40px 17px 35px 26px; }
.primary-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.primary-nav > a { font-size: 15px; letter-spacing: .11em; line-height: 1.45; }
.primary-nav > a.current { font-weight: bold; }
.work-list { margin: -1px 0 8px 5px; }
.work-list > summary { cursor: pointer; color: var(--ink); font-size: 12px; }
.work-list > ul { list-style: none; margin: 0; padding: 3px 0 2px 0; }
.work-list li a { display: block; width: fit-content; padding: 3px 0; font-size: 12px; line-height: 1.3; letter-spacing: .015em; }
.work-list li a.selected { color: var(--accent); font-weight: bold; }
.sidebar-social { border-top: 1px solid #dedede; margin-top: 24px; padding-top: 15px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sidebar-social a { font-size: 11px; letter-spacing: .1em; }
.main { min-width: 0; padding: 49px clamp(24px, 3.3vw, 52px) 57px 22px; }
.main-home { display: flex; justify-content: center; padding-top: 34px; }
.home-feature { display: block; max-width: 820px; width: fit-content; text-align: center; }
.home-feature img { display: block; width: auto; max-height: none; }
.artwork-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 192px); gap: clamp(20px, 2.6vw, 40px); align-items: start; }
.artwork-media { min-width: 0; }
.artwork-media figure { margin: 0 0 30px 0; }
.artwork-media a { display: block; width: fit-content; margin: 0 auto; }
.artwork-media img { display: block; width: auto; max-width: 100%; max-height: none; }
.artwork-media figcaption { margin: 10px auto 0; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 60ch; }
.artwork-details { color: var(--muted); padding-top: 8px; line-height: 1.55; font-size: 13px; overflow-wrap: anywhere; }
.artwork-details h1 { margin: 0 0 18px; color: #333; font-size: 16px; font-weight: bold; line-height: 1.45; letter-spacing: .01em; }
.artwork-details p { margin: 0 0 12px; }
.artwork-details a { text-decoration: underline; text-underline-offset: 2px; }
.artwork-pager { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.artwork-pager a { color: var(--ink); text-decoration: underline; text-decoration-color: #bbb; text-underline-offset: 3px; }
.artwork-pager a:hover { color: var(--accent); }
.missing-image { min-height: 320px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px dashed #c9c9c9; color: #6c6c6c; padding: 20px; text-align: center; }
.missing-image p { max-width: 40ch; line-height: 1.6; }
.news-feed { max-width: 760px; }
.news-entry { padding-bottom: 27px; margin-bottom: 34px; border-bottom: 1px solid #ddd; }
.news-entry p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 12px 0; }
.news-entry .date { font-size: 12px; color: #888; margin-top: 0; }
.news-entry .image3 { color: #555; font-size: 16px; }
.news-entry img { display: block; width: auto; max-width: min(100%, 640px); height: auto; margin: 12px 0; }
.news-entry a, .cv-content a { text-decoration: underline; text-underline-offset: 2px; }
.news-entry hr { display: none; }
.cv-content { max-width: 780px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.cv-content p { margin: 14px 0; }
.cv-content strong, .cv-content b { color: #444; }
.cv-content a { color: var(--ink); }
.cv-languages { display: flex; gap: 20px; margin: 0 0 25px; font-size: 12px; }
.cv-languages a[aria-current="page"] { color: var(--accent); font-weight: bold; }
.cv-content h1 { font-weight: 400; font-size: 22px; }
@media (min-width: 761px) { .work-list > summary { display: none; } }
@media (max-width: 980px) {
  .site { width: min(100% - 28px, 1280px); }
  .frame { grid-template-columns: 185px minmax(0,1fr); }
  .sidebar { padding-left: 19px; padding-right: 11px; }
  .main { padding-right: 24px; }
  .artwork-layout { grid-template-columns: minmax(0, 1fr) 145px; gap: 20px; }
}
@media (max-width: 760px) {
  .site { width: 100%; }
  .site-header { padding: 21px 20px 23px; min-height: 0; gap: 15px; align-items: flex-start; }
  .site-title { font-size: clamp(31px, 7vw, 44px); }
  .site-identity { min-width: 0; text-align: right; padding-top: 2px; }
  .site-identity .role { font-size: 10px; letter-spacing: .19em; }
  .site-identity .email { font-size: 10px; letter-spacing: 0; }
  .frame { display: block; min-height: 65vh; }
  .sidebar { padding: 20px 18px 14px; border-bottom: 1px solid #e4e4e4; }
  .primary-nav { flex-direction: row; flex-wrap: wrap; column-gap: 18px; row-gap: 12px; align-items: center; }
  .primary-nav > a { font-size: 12px; letter-spacing: .08em; }
  .work-list { flex-basis: 100%; width: 100%; margin: 0; order: 10; }
  .work-list > summary { display: list-item; padding: 5px 0; }
  .work-list > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 0 11px; padding: 8px 0 0; }
  .work-list li a { font-size: 12px; padding: 5px 0; }
  .sidebar-social { display: none; }
  .main { padding: 25px 18px 42px; }
  .main-home { padding-top: 25px; }
  .artwork-layout { display: flex; flex-direction: column; gap: 14px; }
  .artwork-media { width: 100%; }
  .artwork-details { order: 1; width: 100%; }
  .artwork-media { order: 0; }
  .artwork-details h1 { margin-bottom: 8px; }
  .artwork-details p { margin-bottom: 8px; }
  .artwork-pager { margin-top: 24px; }
  .news-entry img { max-width: 100%; }
}
@media (max-width: 420px) {
  .site-header { display: block; padding: 19px 17px; }
  .site-title { display: block; font-size: 40px; }
  .site-identity { margin-top: 10px; text-align: left; }
  .site-identity .role { display: inline; }
  .site-identity .email { display: block; padding-top: 6px; }
  .main { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: no-preference) { a { transition: color .15s ease; } }

/* 2026: tekstijulkaisujen oma typografia, vanhan NEWS-osan hengen mukaisesti. */
.text-feed { max-width: 790px; }
.text-entry { border-bottom: 1px solid #dddddd; padding: 0 0 30px; margin: 0 0 31px; }
.text-entry:last-child { border-bottom: 0; }
.text-entry h2 { margin: 0 0 17px; font-size: clamp(17px, 2vw, 21px); line-height: 1.48; color: #333; font-weight: normal; overflow-wrap: anywhere; }
.text-entry .text-summary { margin: 0 0 14px; color: #555; font-size: 14px; line-height: 1.7; }
.text-entry .text-publication { margin: 0 0 16px; color: #777; font-size: 12px; line-height: 1.65; }
.text-entry .text-link { display: inline-block; color: #333; font-size: 13px; text-decoration: underline; text-decoration-color: #aaa; text-underline-offset: 4px; }
.text-entry .text-link:hover, .text-entry .text-link:focus-visible { color: var(--accent); }
@media (max-width: 760px) {
  .sidebar-social { display: flex; flex-direction: row; border-top: none; margin-top: 15px; padding-top: 0; }
  .text-entry h2 { font-size: 18px; }
}
