/* Thekla Cila – stilark. Farger og skrift fra CLAUDE.md (retning «A – Galleri»). */
:root {
  --bg: #F7F6F3;
  --ink: #1C1B19;
  --muted: #6B6862;
  --rust: #9A4A2C;
  --sand: #ECEAE4;
  --line: #D8D5CE;
  --sans: 'Jost', 'Futura', 'Century Gothic', Arial, sans-serif;
  --mono: 'Courier Prime', 'Courier New', monospace;
  --wrap: 1240px;
  --pad: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--rust); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
h2, h3, p, figure { margin: 0; }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }
.label { font-size: 14px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #fff; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 58%; }
@media (max-width: 720px) { .hero__img { object-position: center 60%; } .piece.only-wide { display: none; } }
.hero__veil { position: absolute; inset: 0; background: rgba(20, 14, 10, 0.42); }
.hero__inner {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 40px var(--pad) 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 40px;
}
.hero__top { height: 20px; }
.hero__title { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.hero a, .hero a:hover { color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.logo {
  font-family: var(--sans); font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.55em; margin-right: -0.55em; line-height: 1.3;
}
.hero .logo { font-size: clamp(25px, 6.6vw, 44px); }
.hero__sub { font-family: var(--mono); font-size: 15px; letter-spacing: 0.04em; }
.hero__bottom { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; font-size: 14px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; }
.menu a { padding: 8px 0; }
.hero .menu a:hover { opacity: 0.75; }
.socials { display: flex; gap: 10px; }
.round {
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.round:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Sticky topplinje (vises etter hero) ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(247, 246, 243, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform 0.3s ease; visibility: hidden;
}
.bar.is-on { transform: none; visibility: visible; }
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.bar .logo { font-size: 14px; letter-spacing: 0.5em; }
.bar .menu { gap: 4px 28px; font-size: 12px; letter-spacing: 0.2em; flex-wrap: nowrap; }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* ---------- Seksjoner ---------- */
section[id] { scroll-margin-top: 72px; }
.intro { padding: 128px 0 104px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.intro__text { max-width: 24ch; font-size: clamp(26px, 4.2vw, 38px); line-height: 1.3; text-wrap: balance; }
.intro__text em { color: var(--rust); }

.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; margin-bottom: 28px; }
.lead { max-width: 52ch; color: var(--ink); margin-bottom: 72px; font-size: 19px; }

/* Grupper av objekter */
.objects { padding-bottom: 120px; }
.group { margin-bottom: 120px; }
.group:last-child { margin-bottom: 0; }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-bottom: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.group__title { font-size: 26px; font-weight: 300; font-style: italic; }
.group__text { max-width: 46ch; color: var(--muted); }

/* Galleriveggen – ujevn, ikke stivt rutenett */
.wall { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 40px; }
.piece { flex: var(--f, 1 1 260px); margin-top: var(--mt, 0); margin-left: var(--ml, 0); display: flex; flex-direction: column; gap: 14px; }
.piece img { width: 100%; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; background: var(--sand); }
.cap { display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.cap__name { font-family: var(--sans); font-style: italic; font-size: 19px; color: var(--ink); }

/* Art */
.art { background: var(--sand); }
.art__inner { padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.art__side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 96px; }
.art__text { max-width: 34ch; }
.art__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 18px; }
.art__works { flex: 3 1 520px; display: flex; flex-wrap: wrap; gap: 40px 24px; align-items: flex-end; }
.art .mono { color: #5F5C56; }

/* About */
.about { padding-top: 136px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: center; }
.about__img { flex: 1 1 300px; max-width: 460px; }
.about__img img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.about__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; max-width: 54ch; }
.about__hello { font-size: clamp(28px, 4vw, 36px); line-height: 1.25; }
.about__hello em { color: var(--rust); }
.about__facts { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* From the studio */
.studio { padding-top: 120px; }
.studio .wall { gap: 40px 24px; }
.studio .piece { flex: 1 1 300px; }
.studio .cap { font-size: 13px; }

/* Coming next */
.next { padding-top: 136px; }
.next .wall { gap: 48px 32px; }
.next .cap__name { font-size: 22px; }

/* Contact */
.contact { padding-top: 152px; padding-bottom: 136px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.contact__title { font-size: clamp(30px, 4.6vw, 42px); font-weight: 300; }
.contact__text { max-width: 42ch; color: var(--muted); }
.contact__mail { font-size: clamp(20px, 3.4vw, 28px); border-bottom: 1px solid var(--rust); padding-bottom: 2px; margin-top: 10px; word-break: break-word; }
.contact__links { display: flex; gap: 8px 28px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.contact__links a { font-family: var(--mono); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer .logo { font-size: 14px; letter-spacing: 0.5em; }
.footer__icons { display: flex; gap: 4px; }
.footer__icons a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .hero__inner { padding-top: 28px; padding-bottom: 32px; }
  .menu { gap: 4px 22px; font-size: 13px; letter-spacing: 0.2em; }
  .bar__inner { height: auto; padding-top: 10px; padding-bottom: 10px; flex-direction: column; gap: 4px; }
  .bar .logo { font-size: 12px; }
  .bar .menu { gap: 2px 18px; font-size: 11px; letter-spacing: 0.16em; }
  .bar .menu a { padding: 6px 0; }
  section[id] { scroll-margin-top: 88px; }
  .intro { padding: 88px 0 72px; }
  .lead { margin-bottom: 48px; font-size: 17px; }
  .group { margin-bottom: 88px; }
  .group__head { margin-bottom: 28px; }
  /* Fortsatt litt ujevnt på mobil: annenhver er smalere og forskjøvet */
  .wall { gap: 40px 16px; }
  .piece { flex: 0 0 100%; margin: 0; }
  .wall .piece:nth-child(3n+2) { flex-basis: 78%; margin-left: auto; }
  .wall .piece:nth-child(3n) { flex-basis: 86%; }
  .art__inner { padding-top: 88px; padding-bottom: 88px; gap: 40px; }
  .art__side { position: static; }
  .art__works { gap: 32px 16px; }
  .about { padding-top: 96px; gap: 40px; }
  .about__img { max-width: none; }
  .studio { padding-top: 96px; }
  .next { padding-top: 96px; }
  .contact { padding-top: 112px; padding-bottom: 104px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
