/* Gamla Biografen Skånes-Fagerhult
   Colours taken from the building itself: white walls, honey-brown parquet,
   teak doors, the patterned side curtains of the stage, ochre and grey foyer
   tiles, the pale blue kiosk counter and the teal pipework. */

@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url("fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 400; font-display: swap; src: url("fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-display: swap; src: url("fonts/work-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --wall: #f6f1e8;
  --white: #fffdf9;
  --ink: #2b221d;
  --muted: #6c6158;
  --line: #e2d8c8;
  --parquet: #9a6447;
  --parquet-light: #b88560;
  --parquet-dark: #6e3e28;
  --teak: #7a4630;
  --teak-dark: #5e3322;
  --ochre: #c4a25a;
  --tile-grey: #a29d97;
  --ceiling: #d8b886;
  --powder: #a9c6de;
  --teal: #2c6067;
  --display: "Jost", "Futura", "Century Gothic", sans-serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* stage side-curtain pattern */
  --damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='44' viewBox='0 0 28 44'%3E%3Crect width='28' height='44' fill='%23eadcc2'/%3E%3Cpath d='M14 4 C20 10 20 16 14 22 C8 16 8 10 14 4Z' fill='%237a4630'/%3E%3Cpath d='M14 22 C22 26 22 34 14 40 C6 34 6 26 14 22Z' fill='none' stroke='%237a4630' stroke-width='1.6'/%3E%3Ccircle cx='3' cy='22' r='2' fill='%23b8894f'/%3E%3Ccircle cx='25' cy='22' r='2' fill='%23b8894f'/%3E%3Ccircle cx='14' cy='31' r='2.2' fill='%232c6067'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--wall); line-height: 1.65; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.2rem; }
a { color: var(--teak); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.lead { color: var(--muted); max-width: 640px; font-size: 1.08rem; }
.kicker { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .26em; font-size: .78rem; color: var(--teal); display: block; margin-bottom: 8px; }

/* Language switching */
html[data-lang="sv"] [lang="en"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="sv"]:not(html) { display: none !important; }

/* ---------- BIO sign (logo): outlined letters like the one on the roof ---------- */
.bio {
  display: inline-block; font-family: var(--display); font-weight: 600; letter-spacing: .06em; line-height: 1;
  color: var(--white); -webkit-text-stroke: 1.5px var(--teak); paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--teak);
}

/* ---------- Header ---------- */
.top { background: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--parquet); }
.top .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand .bio { font-size: 1.7rem; }
.brand .name { font-family: var(--display); font-weight: 500; font-size: 1.05rem; line-height: 1.1; }
.brand .name small { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: .98rem; padding: 6px 9px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal); }
.lang-btn, .menu-btn {
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px;
  padding: 5px 10px; cursor: pointer; font-family: var(--display); font-size: .85rem;
}
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .brand .name small { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--parquet); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 6px 16px 14px; }
  .nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
}

/* ---------- The stage (home hero): side curtains, screen, stage front, parquet ---------- */
.stage { background: var(--wall); padding-top: 34px; }
.proscenium { display: grid; grid-template-columns: 34px 1fr 34px; gap: 0; max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.proscenium .curtain-strip { background: var(--damask); background-size: 28px 44px; box-shadow: inset 0 0 0 2px var(--ceiling), inset -6px 0 10px rgba(0,0,0,.08); }
.screen-area { background: var(--white); border-top: 10px solid var(--ink); text-align: center; padding: clamp(34px, 7vw, 70px) clamp(16px, 5vw, 60px) clamp(30px, 6vw, 56px); }
.screen-area .bio { font-size: clamp(3rem, 11vw, 5.4rem); -webkit-text-stroke-width: 2.5px; text-shadow: 4px 4px 0 var(--teak); margin-bottom: 18px; }
.screen-area h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 400; margin-bottom: 2px; }
.screen-area .sub { font-family: var(--display); letter-spacing: .25em; text-transform: uppercase; font-size: .82rem; color: var(--teal); display: block; margin-bottom: 18px; }
.screen-area p { max-width: 560px; margin: 0 auto 24px; font-size: 1.08rem; color: var(--muted); }
.screen-area .btn-row { justify-content: center; }
.stage-front {
  width: min(1028px, calc(100% - 32px)); margin: 0 auto; height: 46px;
  background:
    repeating-linear-gradient(90deg, #4f4943 0 2px, transparent 2px 6px) 24% 55% / 30% 18px no-repeat,
    repeating-linear-gradient(90deg, #4f4943 0 2px, transparent 2px 6px) 76% 55% / 30% 18px no-repeat,
    linear-gradient(180deg, #ebe6dd, #d8d0c3);
  border-top: 3px solid #c9bfae;
}
.parquet {
  height: 70px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.12)),
    repeating-linear-gradient(90deg, var(--parquet) 0 58px, var(--parquet-dark) 58px 60px, var(--parquet-light) 60px 118px, var(--parquet-dark) 118px 120px, #a86e4c 120px 178px, var(--parquet-dark) 178px 180px);
}
@media (max-width: 560px) {
  .proscenium { grid-template-columns: 16px 1fr 16px; padding: 0 8px; }
  .stage-front { width: calc(100% - 16px); }
  .proscenium .curtain-strip { background-size: 20px 31px; }
  .stage-front { height: 30px; }
  .parquet { height: 44px; }
}

/* ---------- Page heads (other pages): wall, title, parquet edge ---------- */
.page-head { background: var(--wall); }
.page-head .wrap { padding-top: 46px; padding-bottom: 30px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 400; margin: 0; }
.page-head p { max-width: 620px; margin: 8px 0 0; color: var(--muted); }
.page-head .side { display: none; }
.page-head + .parquet { height: 18px; }
@media (max-width: 560px) { .page-head .side { display: none; } .page-head .wrap { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--teak); color: #fff; padding: 11px 22px; border-radius: 4px;
  text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.02rem; border: 0; cursor: pointer;
}
.btn:hover { background: var(--teak-dark); }
.btn.outline { background: transparent; color: var(--teak); box-shadow: inset 0 0 0 1.5px var(--teak); }
.btn.outline:hover { background: rgba(122,70,48,.07); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
main section { padding: 60px 0; }
main section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
main section.blue { background: #e7f0f7; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; gap: 28px; } }
figure { margin: 0; }
.print img { width: 100%; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line), 0 12px 26px rgba(0,0,0,.14); }
.print figcaption { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ---------- Tickets ---------- */
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 26px; }
.ticket {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  background: var(--white); padding: 18px 20px 18px 36px; border: 1px solid var(--line); border-radius: 3px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 20px; background: var(--c, var(--ochre)); border-right: 2px dotted var(--white); }
.ticket.c2 { --c: var(--teal); } .ticket.c3 { --c: var(--parquet); } .ticket.c4 { --c: var(--powder); }
a.ticket:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.ticket .no { font-family: var(--display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teak); display: block; margin-bottom: 6px; }
.ticket h3 { margin-bottom: .2em; }
.ticket p { margin: 0; color: var(--muted); font-size: .95rem; }
.ticket .big { font-family: var(--display); font-size: 2.1rem; font-weight: 500; line-height: 1.1; }

/* ---------- Film strip (History page) ---------- */
.filmstrip {
  --hole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16'%3E%3Crect x='6' y='4' width='10' height='8' rx='1.5' fill='%23f6f1e8'/%3E%3C/svg%3E");
  background-color: #1a1715; background-image: var(--hole), var(--hole);
  background-repeat: repeat-x, repeat-x; background-position: 0 0, 0 100%;
  padding: 18px 0; margin-top: 24px; border-radius: 2px; overflow-x: auto; scrollbar-width: thin;
}
.filmstrip .frames { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; padding: 0 10px; }
.filmstrip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.filmstrip figcaption { color: #cfc8bb; font-size: .75rem; margin: 6px 4px 0; font-family: var(--display); letter-spacing: .05em; }
.era { margin-top: 48px; }
.era:first-of-type { margin-top: 0; }
.era .year { font-family: var(--display); font-size: 3rem; font-weight: 400; color: var(--parquet); line-height: 1; display: block; margin-bottom: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 24px; }

/* ---------- Ticket-kiosk price board ---------- */
.kiosk {
  margin-top: 8px; padding: 0 clamp(14px, 4vw, 34px) clamp(18px, 4vw, 34px); border-radius: 3px;
  background-color: #c79c6c;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 9px, rgba(0,0,0,.05) 9px 10px, transparent 10px 23px),
    linear-gradient(180deg, #dbb98c, #c79c6c 60%, #b98b5a);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.kiosk .plaque {
  display: table; margin: 0 auto 22px; background: var(--teal); color: #f2efe8; font-family: var(--display); font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; font-size: .85rem; padding: 8px 18px 7px 22px; border-radius: 0 0 3px 3px;
}
.notice { background: #fff; padding: clamp(16px, 3vw, 28px); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.notice h3 { text-align: center; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 1rem; margin-bottom: 16px; }
.notice table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.notice th { font-family: var(--display); font-weight: 500; font-size: .85rem; color: var(--muted); text-align: right; padding: 0 0 8px 12px; border-bottom: 2px solid var(--ink); }
.notice th:first-child { text-align: left; padding-left: 0; }
.notice td { padding: 11px 0 11px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.notice td:first-child { text-align: left; padding-left: 0; white-space: normal; font-weight: 600; }
.notice td small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.table-scroll { overflow-x: auto; }
@media (max-width: 560px) { .notice td, .notice th { font-size: .88rem; padding-left: 8px; } }
.draft-note { background: #fff4d8; border: 1px dashed var(--ochre); padding: 10px 14px; border-radius: 3px; font-size: .9rem; margin-top: 22px; }

/* ---------- Calendar on the stage: screen between the side curtains ---------- */
.screen { margin-top: 26px; display: grid; grid-template-columns: 26px 1fr 26px; }
.screen::before, .screen::after { content: ""; background: var(--damask); background-size: 28px 44px; box-shadow: inset 0 0 0 2px var(--ceiling); }
.screen .inner { background: #fff; border-top: 8px solid var(--ink); border-bottom: 8px solid var(--ink); min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 20px; }
.screen iframe { width: 100%; height: 600px; border: 0; display: block; background: #fff; border-top: 8px solid var(--ink); border-bottom: 8px solid var(--ink); }
@media (max-width: 560px) { .screen { grid-template-columns: 12px 1fr 12px; } }

/* ---------- Forms ---------- */
.form-card { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: clamp(18px, 4vw, 32px); max-width: 720px; }
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ochre); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
.form-status { font-weight: 600; margin: 0; }
ul.rules { padding-left: 1.2em; }
ul.rules li { margin-bottom: 4px; }

/* ---------- Footer with the foyer's ochre-and-grey tiles ---------- */
.floor {
  height: 36px; background-color: var(--tile-grey);
  background-image: conic-gradient(var(--ochre) 25%, transparent 0 50%, var(--ochre) 0 75%, transparent 0);
  background-size: 36px 36px;
}
footer { background: var(--teal); color: #eef3f2; padding: 36px 0; font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .bio { font-size: 1.8rem; margin-bottom: 8px; -webkit-text-stroke-color: var(--ink); text-shadow: 2px 2px 0 var(--ink); }
footer a { color: #fff; }

/* Member form + privacy policy */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.org-only[hidden] { display: none; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 34px; }
.prose table td { vertical-align: top; font-size: .92rem; }
.cal-load { text-align: center; }

/* Documents list (Föreningen, Bli medlem) */
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { padding: 10px 0; border-top: 1px solid rgba(0,0,0,.12); }
.docs li:first-child { border-top: 0; }
.docs a { font-weight: 600; }
.docs small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
/* "Hall hire comes later" note */
.note-later { margin-top: 26px; padding: 12px 16px; border-left: 4px solid var(--ochre); background: rgba(196,162,90,.12); max-width: 640px; }
