/* Apokrypsi — shared styles */

:root {
  --bg: #02100f;
  --bg-deep: #010809;
  --panel: #06201f;
  --ink: #e7f3f1;
  --ink-soft: #9bbdba;
  --line: #16403f;
  --accent: #5ed3c4;
  --accent-warm: #e0a262;
  --violet: 206, 62, 248;
  --violet-soft: 178, 96, 246;
  --radius: 14px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  background: transparent;
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- background: raking purple light ---- */

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20vh -30vw;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* close-set bands, fading out towards the bottom right */
body::before {
  background: repeating-linear-gradient(
    114deg,
    rgba(var(--violet), 0) 0px,
    rgba(var(--violet), 0.22) 22px,
    rgba(var(--violet), 0) 46px,
    rgba(var(--violet), 0) 128px);
  -webkit-mask-image: radial-gradient(115% 85% at 12% -5%, #000 0%, transparent 72%);
  mask-image: radial-gradient(115% 85% at 12% -5%, #000 0%, transparent 72%);
}

/* wider, softer bands on the same rake, plus a low violet bloom */
body::after {
  background:
    radial-gradient(75% 55% at 78% 108%, rgba(var(--violet-soft), 0.15), transparent 70%),
    repeating-linear-gradient(
      114deg,
      rgba(var(--violet-soft), 0) 0px,
      rgba(var(--violet-soft), 0.11) 95px,
      rgba(var(--violet-soft), 0) 205px,
      rgba(var(--violet-soft), 0) 430px);
  -webkit-mask-image: linear-gradient(196deg, transparent 8%, #000 55%, #000 100%);
  mask-image: linear-gradient(196deg, transparent 8%, #000 55%, #000 100%);
}

/* ---- type ---- */

h1 {
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
  text-align: center;
}


h2 {
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  margin: 2.6rem 0 0.6rem;
}

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8fe6da; }

/* ---- hero image ---- */

figure.hero {
  margin: clamp(2rem, 6vw, 3rem) auto;
  max-width: 320px;
  text-align: center;
}

figure.hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

figure.hero figcaption {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- definition block ---- */

.defs {
  margin: 0 auto;
  max-width: var(--measure);
}

.def {
  border-left: 2px solid var(--line);
  padding-left: 1.1rem;
  margin-bottom: 1.6rem;
}

.def:last-child { margin-bottom: 0; }

.def .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.def p { margin: 0; }

/* ---- link cards ---- */

.links {
  margin: clamp(2.5rem, 8vw, 4rem) auto 0;
  display: grid;
  gap: 14px;
}

.card {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.card:hover,
.card:focus-visible {
  background: #0b2d2c;
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.card .num {
  font-family: ui-serif, Georgia, serif;
  font-size: 0.9rem;
  color: var(--accent);
  min-width: 1.4rem;
}

.card .title {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.25rem;
  flex: 1 1 auto;
}

.card .note {
  flex: 1 1 100%;
  margin-top: -0.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.card .arrow { color: var(--accent); font-size: 1.1rem; }

/* ---- top bar / language selector ---- */

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.2rem);
}

.topbar .back { margin-bottom: 0; }

.lang {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 32, 31, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.lang a:hover,
.lang a:focus-visible { color: var(--accent); }

.lang a[aria-current="true"] { color: var(--accent); }

.lang .sep { color: var(--line); }

/* ---- gallery ---- */

.wrap.wide { max-width: 1060px; }

.grid {
  margin: clamp(2rem, 6vw, 3rem) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 22px;
}

.shot { margin: 0; }

.shot a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  line-height: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.shot a:hover,
.shot a:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.shot img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.shot figcaption { margin-top: 0.7rem; }

.shot-title {
  display: block;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.shot-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- inner pages ---- */

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.back:hover { color: var(--accent); }

.page-title { text-align: left; font-size: clamp(2rem, 6vw, 2.8rem); }

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-top: 0.8rem;
}

ul.features {
  max-width: var(--measure);
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
}
ul.features li { margin-bottom: 0.5rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2rem 0 0;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent); color: #02100f; }
.btn.primary { background: var(--accent); color: #02100f; }
.btn.primary:hover { background: #8fe6da; border-color: #8fe6da; color: #02100f; }

.embed {
  margin: 2rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.embed iframe { display: block; width: 100%; border: 0; }

.soon {
  margin: 2rem 0 0;
  padding: 1.6rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-soft);
  max-width: var(--measure);
}

footer {
  margin-top: clamp(3rem, 9vw, 5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

footer span { display: block; }
footer .byline { margin-top: 0.4rem; letter-spacing: 0.16em; }

