/* field-layout.css — base reset, shell, header, footer, hero scaffolding */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--lnf-surface);
  overflow-x: clip;
}

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

body {
  margin: 0;
  font-family: var(--lnf-body-face);
  font-size: var(--lnf-step-body);
  line-height: var(--lnf-lh-body);
  color: var(--lnf-ink);
  background: var(--lnf-surface);
  background-image:
    linear-gradient(transparent 96%, rgba(46, 94, 120, 0.08) 96%),
    linear-gradient(90deg, transparent 96%, rgba(46, 94, 120, 0.08) 96%);
  background-size: 28px 28px;
  min-height: 100vh;
  overflow-x: clip;
}

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

a {
  color: var(--lnf-accent-cool);
}

h1,
h2,
h3,
h4 {
  line-height: var(--lnf-lh-tight);
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--lnf-focus);
  outline-offset: 3px;
  border-radius: var(--lnf-radius-s);
}

.lnf-skip {
  position: absolute;
  left: var(--lnf-space-sm);
  top: -120px;
  z-index: 200;
  background: var(--lnf-spruce);
  color: var(--lnf-ice);
  padding: 0.75rem 1.1rem;
  border-radius: var(--lnf-radius-m);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.16s ease;
}

.lnf-skip:focus {
  top: var(--lnf-space-sm);
}

.lnf-shell {
  width: min(100% - 2 * var(--lnf-space-sm), var(--lnf-shell));
  margin-inline: auto;
}

.lnf-shell--wide {
  width: min(100% - 2 * var(--lnf-space-sm), var(--lnf-shell-wide));
}

.lnf-vhidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Reading progress bar ---------- */
.lnf-progressline {
  position: fixed;
  inset: 0 auto auto 0;
  height: 5px;
  width: 0;
  background: linear-gradient(90deg, var(--lnf-orange), var(--lnf-lime));
  z-index: 90;
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .lnf-progressline {
    display: none;
  }
}

/* ---------- Header ---------- */
.lnf-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--lnf-spruce);
  color: var(--lnf-ice);
  border-bottom: 4px solid var(--lnf-orange);
}

.lnf-topbar__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--lnf-space-sm);
  padding-block: var(--lnf-space-xs);
}

.lnf-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--lnf-ice);
  min-height: 44px;
}

.lnf-wordmark__badge {
  width: 42px;
  height: 42px;
  border-radius: var(--lnf-radius-s);
  border: 2px solid var(--lnf-lime);
  object-fit: cover;
  background: var(--lnf-blue);
}

.lnf-wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.lnf-wordmark__lead {
  font-family: var(--lnf-title-face);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.lnf-wordmark__sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--lnf-lime);
}

.lnf-routerail {
  justify-self: center;
}

.lnf-routerail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.lnf-routerail__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  color: var(--lnf-ice);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--lnf-radius-s);
  border: 2px solid transparent;
}

.lnf-routerail__link:hover {
  border-color: var(--lnf-lime);
}

.lnf-routerail__link[aria-current="page"] {
  background: var(--lnf-orange);
  color: var(--lnf-graphite);
}

.lnf-topbar__util {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--lnf-space-2xs);
}

.lnf-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--lnf-radius-m);
  color: var(--lnf-ice);
  background: transparent;
  font-size: var(--lnf-step-small);
  white-space: nowrap;
}

.lnf-phone:hover {
  color: var(--lnf-lime);
}

.lnf-burger {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 2px solid var(--lnf-lime);
  border-radius: var(--lnf-radius-m);
  color: var(--lnf-ice);
  cursor: pointer;
}

.lnf-burger__bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.lnf-burger__bars::before,
.lnf-burger__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.lnf-burger__bars::before {
  top: -7px;
}

.lnf-burger__bars::after {
  top: 7px;
}

/* ---------- Footer (folded field guide) ---------- */
.lnf-foot {
  margin-top: var(--lnf-space-xl);
  background: var(--lnf-spruce);
  color: var(--lnf-ice);
  border-top: 6px solid var(--lnf-orange);
}

.lnf-foot__fold {
  display: grid;
  gap: var(--lnf-space-md);
  padding-block: var(--lnf-space-lg);
  grid-template-columns: 1fr;
}

.lnf-foot__mission {
  border-left: 4px solid var(--lnf-lime);
  padding-left: var(--lnf-space-sm);
}

.lnf-foot__title {
  font-family: var(--lnf-title-face);
  font-size: 1.2rem;
  margin: 0 0 var(--lnf-space-2xs);
  color: var(--lnf-lime);
}

.lnf-foot__cols {
  display: grid;
  gap: var(--lnf-space-md);
  grid-template-columns: 1fr;
}

.lnf-foot__group h3 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lnf-lime);
  margin: 0 0 var(--lnf-space-2xs);
}

.lnf-foot__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.lnf-foot__group a {
  color: var(--lnf-ice);
  text-decoration: none;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

.lnf-foot__group a:hover {
  color: var(--lnf-lime);
  text-decoration: underline;
}

.lnf-foot__note {
  border-top: 2px dashed rgba(199, 218, 82, 0.4);
  padding-top: var(--lnf-space-sm);
  display: grid;
  gap: var(--lnf-space-2xs);
  font-size: var(--lnf-step-small);
  color: #cfe0da;
}

.lnf-foot__cookiebtn {
  justify-self: start;
  background: transparent;
  border: 2px solid var(--lnf-lime);
  color: var(--lnf-ice);
  border-radius: var(--lnf-radius-m);
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}

.lnf-foot__cookiebtn:hover {
  background: var(--lnf-lime);
  color: var(--lnf-graphite);
}

/* ---------- Page frame ---------- */
.lnf-main {
  display: block;
  padding-top: var(--lnf-space-lg);
}

.lnf-coord {
  font-family: var(--lnf-title-face);
  font-size: clamp(3rem, 2rem + 6vw, 7rem);
  color: rgba(46, 94, 120, 0.16);
  line-height: 0.8;
  margin: 0;
  letter-spacing: -0.02em;
  pointer-events: none;
}

/* ---------- Hero (offset editorial stage) ---------- */
.lnf-stage {
  position: relative;
  padding-block: var(--lnf-space-lg) var(--lnf-space-xl);
}

.lnf-stage__grid {
  display: grid;
  gap: var(--lnf-space-md);
  grid-template-columns: 1fr;
  align-items: start;
}

.lnf-chapter {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--lnf-title-face);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--lnf-blue);
  text-transform: uppercase;
  justify-self: start;
}

.lnf-stage__col {
  display: grid;
  gap: var(--lnf-space-sm);
  max-width: var(--lnf-measure);
}

.lnf-stage__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: start;
  background: var(--lnf-lime);
  color: var(--lnf-graphite);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--lnf-radius-s);
  border: 2px solid var(--lnf-graphite);
}

.lnf-stage__title {
  font-family: var(--lnf-title-face);
  font-size: var(--lnf-step-hero);
  margin: 0;
  color: var(--lnf-spruce);
}

.lnf-stage__lead {
  font-size: var(--lnf-step-lead);
  margin: 0;
}

.lnf-stage__collage {
  position: relative;
  display: grid;
  gap: var(--lnf-space-2xs);
}

.lnf-stage__shot {
  width: 100%;
  border: var(--lnf-border);
  border-radius: var(--lnf-radius-l);
  box-shadow: var(--lnf-shadow-flat);
  background: var(--lnf-blue);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.lnf-signal {
  border: var(--lnf-border);
  border-radius: var(--lnf-radius-m);
  background: var(--lnf-white);
  padding: var(--lnf-space-sm);
  box-shadow: var(--lnf-shadow-flat);
  display: grid;
  gap: var(--lnf-space-2xs);
}

.lnf-signal__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lnf-signal__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--lnf-radius-s);
  object-fit: contain;
  background: var(--lnf-ice);
  border: var(--lnf-border-soft);
}

.lnf-signal__score {
  font-family: var(--lnf-title-face);
  font-size: 1.5rem;
  color: var(--lnf-orange);
}

.lnf-signal__bar {
  height: 12px;
  border-radius: var(--lnf-radius-s);
  background: var(--lnf-ice);
  border: var(--lnf-border-soft);
  overflow: hidden;
}

.lnf-signal__fill {
  display: block;
  height: 100%;
  width: 90%;
  background: repeating-linear-gradient(
    90deg,
    var(--lnf-orange) 0 10px,
    #f5885d 10px 20px
  );
}

.lnf-signal__fill[data-fill="78"] {
  width: 78%;
}

.lnf-signal__fill[data-fill="84"] {
  width: 84%;
}

.lnf-signal__fill[data-fill="90"] {
  width: 90%;
}

.lnf-signal__fill[data-fill="92"] {
  width: 92%;
}
