/* Nexus Paletta public chrome — navy + cyan node-flow + orange HUD ticks. Hit-magazine archived in templates/paletta-hit-magazine. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../rakd-ossze/fonts/plex-sans-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../rakd-ossze/fonts/plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../rakd-ossze/fonts/plex-mono-400-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../rakd-ossze/fonts/plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../rakd-ossze/fonts/plex-mono-500-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../rakd-ossze/fonts/plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../rakd-ossze/fonts/plex-mono-600-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../rakd-ossze/fonts/plex-mono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #07111c;
  --panel: #0c1a2a;
  --hud: #0a1624;
  --well: #050d16;
  --ink: #e6eef4;
  --ink-soft: #b7c4d0;
  --mute: #7d8d9c;
  --ice: #00e5ff;
  --olive: #123047;
  --seam: #1a3348;
  --tape: #00e5ff;
  --tick: #ff7a18;
  --shadow: none;
  --radius: 2px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    radial-gradient(ellipse 80% 50% at 12% -10%, rgba(0, 229, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 110%, rgba(255, 122, 24, 0.06), transparent 50%),
    radial-gradient(rgba(0, 229, 255, 0.11) 1px, transparent 1.2px);
  background-size: auto, auto, 26px 26px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: 4.75rem;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 2px;
  background: linear-gradient(90deg, var(--tick) 0 12%, var(--ice) 12% 88%, var(--tick) 88% 100%);
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
  text-decoration: none;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  background: var(--ground);
  color: var(--ice);
  padding: 0.45rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ice);
  border-radius: var(--radius);
}

.skip:focus {
  top: 0.75rem;
}

.skip:focus-visible,
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.page {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
}

.mast {
  padding: 0.55rem 0 1.25rem;
  border-bottom: 1px solid var(--seam);
}

.hud {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 0 0.95rem;
  background:
    linear-gradient(var(--tick), var(--tick)) top left / 11px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top left / 1px 11px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top right / 11px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top right / 1px 11px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom left / 11px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom left / 1px 11px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 11px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 1px 11px no-repeat,
    var(--hud);
  border: 1px solid var(--seam);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.hud__mark,
.hud__cell {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-right: 1px solid var(--seam);
  white-space: nowrap;
}

.hud__mark {
  color: var(--ice);
  font-weight: 600;
}

.hud__mail,
.hud__tel {
  color: var(--ice);
  text-decoration: none;
}

.hud__mail {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0.04em;
}

.hud__tel {
  border-right: 0;
}

.hud__mail:hover,
.hud__tel:hover {
  color: var(--ink);
  background: var(--olive);
}

.mast__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.45rem;
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.mast__kicker a {
  color: var(--ink);
  background: var(--olive);
  text-decoration: none;
  padding: 0.22rem 0.5rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--seam);
  border-radius: var(--radius);
}

.mast__kicker a:hover {
  color: var(--ice);
  background: var(--panel);
  border-color: var(--ice);
}

.mast__stamp {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.14rem 0.5rem;
  background: transparent;
  color: var(--ice);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ice);
  border-radius: var(--radius);
}

.mast h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.15rem, 7.2vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--ink);
  text-wrap: balance;
}

.mast h1 .hit {
  color: var(--ice);
}

.mast__sub {
  margin: 0.7rem 0 0;
  max-width: 38rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.mast__line {
  margin: 0.55rem 0 0;
  max-width: 38rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.mast__phone {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  margin: 0.85rem 0 0;
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mast__phone a {
  color: var(--ice);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--ice);
}

.mast__phone a:hover {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.lede {
  margin: 1.25rem 0 0;
  padding: 1rem 1.05rem;
  max-width: 40rem;
  background: var(--panel);
  border: 1px solid var(--seam);
  border-left: 2px solid var(--ice);
  border-radius: var(--radius);
}

.lede p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
}

.lede__note {
  margin-top: 0.55rem !important;
  font-size: 0.92rem !important;
  font-weight: 700;
  color: var(--mute) !important;
}

.lede__note a {
  color: var(--ice);
}

.block {
  padding: 1.7rem 0 0.4rem;
}

.block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--seam);
}

.block__head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.block__head p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

#konyv {
  padding-top: 1.85rem;
}

.pitch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.family {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.book {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .family {
    grid-template-columns: repeat(4, 1fr);
  }

  .pitch {
    grid-template-columns: 1fr 1fr;
  }

  .book {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .page {
    padding-top: 2rem;
  }

  .pitch {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .book {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--seam);
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  border-radius: var(--radius);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--tick);
  border-right: 1px solid var(--tick);
  opacity: 0.5;
  pointer-events: none;
}

.card:hover {
  color: inherit;
  border-color: var(--ice);
  background: #102233;
}

.card:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.card__meta {
  padding: 0.75rem 0.85rem 0.9rem;
  order: 1;
}

.card__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.card__brand {
  display: block;
  margin: 0.2rem 0 0;
  font-family: var(--font);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.card__does {
  display: block;
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.card__open {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ice);
  text-transform: uppercase;
}

.card:hover .card__open {
  color: var(--ink);
}

.card:hover .card__open span {
  margin-left: 0.2rem;
}

.shot {
  order: 0;
  overflow: hidden;
  background: var(--well);
  border-bottom: 1px solid var(--seam);
  border-radius: var(--radius) var(--radius) 0 0;
}

.shot img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top center;
}

.book .shot img {
  height: 128px;
}

.flag {
  display: inline-block;
  margin: 0.45rem 0 0;
  padding: 0.12rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  background: var(--olive);
  border: 1px solid var(--seam);
  border-radius: var(--radius);
}

.card--flagged {
  border-color: var(--olive);
}

.card--flagged .card__brand {
  font-size: 1.12rem;
}

.plate {
  background: var(--panel);
  border: 1px solid var(--seam);
  border-radius: var(--radius);
}

.plate__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: end;
  padding: 0.9rem 0.95rem 0.95rem;
  border-bottom: 1px solid var(--seam);
  background: var(--hud);
  border-radius: var(--radius) var(--radius) 0 0;
}

.plate__head .card__brand {
  font-size: 1.55rem;
}

.plate__head .card__does {
  max-width: 40rem;
  color: var(--ink-soft);
}

.plate__open {
  align-self: center;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.plate__open a {
  color: var(--ice);
  background: transparent;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ice);
  border-radius: var(--radius);
}

.plate__open a:hover {
  background: var(--ice);
  color: var(--ground);
}

.sib {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  border: 1px solid var(--seam);
  background: var(--ground);
  border-radius: var(--radius);
  transition: border-color 0.12s ease;
}

.sib:hover {
  color: inherit;
  border-color: var(--ice);
}

.sib:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.sib__shot {
  overflow: hidden;
  background: var(--well);
  border-bottom: 1px solid var(--seam);
  border-radius: var(--radius) var(--radius) 0 0;
}

.sib__shot img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  object-position: top center;
}

.sib__name {
  padding: 0.4rem 0.5rem 0.5rem;
  font-size: 0.78rem;
}

.sib__name strong {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
}

.sib__name span {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.family-wrap {
  padding: 0.55rem;
  background: var(--hud);
  border-radius: 0 0 var(--radius) var(--radius);
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--seam);
  border-radius: var(--radius);
}

.faq details[open] {
  border-color: var(--ice);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--ice);
  font-family: var(--mono);
  font-size: 1.1rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq__a {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.faq__a + .faq__a {
  padding-top: 0.35rem;
}

.colophon {
  margin-top: 2.25rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--seam);
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--mute);
}

.colophon strong {
  color: var(--ink);
  font-weight: 700;
}

.colophon a,
.colophon .tel {
  color: var(--ice);
  font-family: var(--mono);
  font-weight: 500;
}

.path {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.sticky-call {
  position: fixed;
  right: 0;
  bottom: 2.4rem;
  z-index: 30;
  background: var(--ground);
  color: var(--ice);
  text-decoration: none;
  padding: 0.72rem 1rem 0.72rem 1.05rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ice);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

.sticky-call:hover {
  color: var(--ground);
  background: var(--ice);
  text-decoration: none;
}

@media (min-width: 640px) {
  .shot img {
    height: 228px;
  }

  .sib__shot img {
    height: 142px;
  }
}

@media (min-width: 960px) {
  .shot img {
    height: 236px;
  }

  .book .shot img {
    height: 122px;
  }
}

@media (max-width: 639px) {
  .page {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .plate__head {
    grid-template-columns: 1fr;
  }

  .shot img {
    height: 180px;
  }

  .sib__shot img {
    height: 110px;
  }

  .hud__mark,
  .hud__cell {
    border-bottom: 1px solid var(--seam);
  }

  .hud__mail,
  .hud__tel {
    margin-left: 0;
    flex: 1 1 100%;
    justify-content: center;
  }

  .hud__tel {
    border-bottom: 0;
  }

  .sticky-call {
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    justify-content: center;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    padding: 0.85rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .sib,
  .card__open span,
  .sticky-call {
    transition: none;
  }
}

html.shot-konyv .mast,
html.shot-konyv .lede,
html.shot-konyv #elso-pitch {
  display: none;
}
