/* Tintame journal: the guides sit on a bone mat board laid on the terracotta wall. */
.nav--page { position: relative; }
.j-main { padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(56px, 8vw, 120px); }
.paper {
  max-width: 46rem; margin: 0 auto; background: var(--bone); color: var(--ink-bone);
  padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 72px);
  border-style: solid; border-width: var(--bevel);
  border-color: var(--bevel-top) var(--bevel-right) var(--bevel-bottom) var(--bevel-left);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25), 0 18px 40px -18px rgba(60, 20, 10, .45);
}
.crumbs { margin: 0 0 1.2rem; font-size: .9rem; }
.crumbs a { text-decoration: none; opacity: .75; }
.crumbs a::before { content: "← "; }
.j-title { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 .5em; text-wrap: balance; }
.j-lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.45; margin: 0 0 2rem; max-width: 40ch; }
.paper h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); letter-spacing: -.02em; line-height: 1.15; margin: 2.2rem 0 .6rem; }
.paper p, .paper li { max-width: 66ch; }
.paper ul, .paper ol { padding-left: 1.2em; }
.paper li { margin: .35em 0; }
.paper a { text-decoration-thickness: 1px; }
.paper table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.paper th, .paper td { text-align: left; padding: .55em .6em .55em 0; border-bottom: 1px solid rgba(35, 22, 18, .18); vertical-align: top; }
.paper th { font-weight: 700; }
.paper td:first-child { white-space: nowrap; }
@media (max-width: 560px) { .paper table { font-size: .88rem; } .paper td:first-child { white-space: normal; } }

.diagram { margin: 1.6rem 0 2rem; }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram figcaption { font-size: .88rem; opacity: .8; margin-top: .4rem; }
.diagram .p, .diagram .frame, .diagram .sofa { fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; }
.diagram .thin { stroke-width: 1; }
.diagram .dash, .diagram .floor { stroke-dasharray: 7 6; }
.diagram .floor { stroke-dasharray: none; stroke-width: 2.2; }
.diagram .frame { stroke-width: 2.2; fill: rgba(200, 113, 79, .12); }
.diagram .sofa { fill: rgba(35, 22, 18, .06); }
.diagram .chip { stroke: rgba(35, 22, 18, .25); }
.diagram text { font-family: var(--f-pencil); font-size: 30px; fill: var(--pencil); }
.diagram text.small { font-size: 30px; }
.diagram text.note { font-size: 26px; }

.cta { margin: 2.6rem 0 0; padding: 1.4rem 1.4rem 1.6rem; background: var(--terracotta); color: var(--ink-terracotta); }
.cta p { margin: 0 0 1rem; }
.cta .pencil { font-size: 1.9rem; margin-bottom: .3rem; }

.related { max-width: 46rem; margin: 2.4rem auto 0; }
.related h2 { font-size: 2.2rem; margin: 0 0 .4rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.related a { font-weight: 700; font-size: 1.15rem; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.card a { display: block; text-decoration: none; padding: 1.2rem 0 1.3rem; border-bottom: 1px solid rgba(35, 22, 18, .18); }
.card h2 { margin: 0 0 .35rem; }
.card p { margin: 0 0 .4rem; opacity: .85; }
.card .pencil { font-size: 1.6rem; }
.card a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.shoplinks { margin: 2.2rem 0 0; }
.shoplinks .pencil { font-size: 1.8rem; margin: 0 0 .5rem; }
.shoplinks ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.shoplinks a { display: inline-block; padding: .45em .8em; border: 1.5px solid rgba(35, 22, 18, .3); text-decoration: none; }
.shoplinks a:hover { background: var(--ink-bone); color: var(--bone); }

/* Films (2026-10-02): each film hangs like a framed print – dark moulding, bone mat, the poster. Click swaps in the player. */
.paper--wide { max-width: 72rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 2.5vw, 2rem); margin: 1rem 0 0; }
.gallery__note { margin: 2.6rem 0 0; font-size: .95rem; opacity: .85; max-width: 60ch; }
.film { margin: 0; }
.film__frame, .film__player { display: block; width: 100%; aspect-ratio: 9 / 16; box-sizing: border-box; background: #f6f1e7;
  border: 7px solid #221a15; padding: 9px; box-shadow: 0 16px 28px -16px rgba(40, 15, 5, .55), 0 2px 4px rgba(40, 15, 5, .2); }
.film__frame { position: relative; cursor: pointer; appearance: none; font: inherit; color: inherit; }
.film__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
video.film__player { object-fit: cover; }   /* object-fit gäller inte iframe i Safari/Firefox; iframen får sin storlek av aspect-ratio */
iframe.film__player { padding: 0; border-width: 7px; }
.film__play { position: absolute; right: 18px; bottom: 18px; width: 52px; height: 52px; transition: transform .2s ease; }
.film__play circle { fill: rgba(246, 241, 231, .88); stroke: #221a15; stroke-width: 1.6; }
.film__play path { fill: #221a15; }
.film__frame:hover .film__play, .film__frame:focus-visible .film__play { transform: scale(1.1); }
.film__frame:focus-visible { outline: 3px solid var(--terracotta, #c8714f); outline-offset: 3px; }
.film figcaption { margin-top: .9rem; }
.film__title { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 .3rem; font-weight: 700; }
.film figcaption p { margin: 0 0 .4rem; font-size: .95rem; }
.film figcaption .film__credit { font-size: .76rem; opacity: .7; line-height: 1.45; }
.film__guide { font-family: var(--f-pencil); font-size: 1.45rem; text-decoration: none; white-space: nowrap; }
.film__guide::after { content: " →"; }
.watch { margin: 2.2rem auto 2.4rem; max-width: 19rem; }
.watch > .pencil { font-size: 1.8rem; margin: 0 0 .5rem; }
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 1.6rem .9rem; }
  .film__frame, .film__player { border-width: 5px; padding: 5px; }
  .film__play { width: 40px; height: 40px; right: 10px; bottom: 10px; }
  .film__title { font-size: 1.02rem; } .film figcaption p { font-size: .86rem; } .film figcaption .film__credit { font-size: .7rem; } .film__guide { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .film__play { transition: none; } }
