/*
Theme Name: Element 59
Theme URI: https://element59.uk/
Author: SABD
Description: Minimal custom Element 59 holding site and batch verification experience. WordPress is used only as a lightweight routing shell; the visible experience is custom HTML, CSS and JavaScript.
Version: 1.2.3
Text Domain: element59
*/

:root {
  --e59-forest-900: #0B2F3C;
  --e59-forest-700: #0B2F3C;
  --e59-gold-500: #B7A284;
  --e59-paper: #F8F7F2;
  --e59-white: #FFFFFF;
  --e59-ink: #0B2F3C;
  --e59-script-grey: #A6A6A6;
  --e59-ghost-grey: #D9D9D9;
  --e59-rule-grey: #B4B4B4;
  --e59-honey: #D78A22;
  --ease-e59: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--e59-paper); }
body {
  margin: 0;
  min-height: 100%;
  color: var(--e59-ink);
  font-family: "Dongle", "Trebuchet MS", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--e59-white);
  color: var(--e59-ink);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); }

.brand-mark {
  position: fixed;
  z-index: 20;
  left: 34px;
  top: 0;
  width: 78px;
  display: block;
  line-height: 0;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: calc(1.18rem + 4pt);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.editorial-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 0 5px;
  text-decoration: none;
  font-size: calc(1.15rem + 4pt);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.editorial-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 1px;
  background: var(--e59-gold-500);
  transform-origin: left center;
  transition: transform 420ms var(--ease-e59);
}
.editorial-link:hover::after,
.editorial-link:focus-visible::after { transform: scaleX(1.22); }
.editorial-link:focus-visible { outline: 2px solid var(--e59-gold-500); outline-offset: 6px; }

/* Coming soon */
.coming-page {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  color: var(--e59-white);
  background: #0B2F3C;
}
.coming-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/northern-estonia.webp");
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.025);
  animation: quietReveal 1500ms var(--ease-e59) both;
}
.coming-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 15, 20, 0.72) 0%, rgba(3, 15, 20, 0.32) 45%, rgba(3, 15, 20, 0.08) 76%),
    linear-gradient(0deg, rgba(4, 18, 24, 0.63) 0%, rgba(4, 18, 24, 0.02) 62%);
  pointer-events: none;
}
.coming-page .brand-mark { box-shadow: none; }

.coming-main {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 7vw 7.5vh 5.5vw;
}
.coming-copy {
  width: min(860px, 76vw);
  animation: copyReveal 1000ms 220ms var(--ease-e59) both;
}
.coming-copy h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(4.8rem, 10.2vw, 10.4rem);
  line-height: 0.72;
  font-weight: 300;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.coming-copy .subcopy {
  margin: 1.15rem 0 0;
  max-width: 520px;
  font-size: clamp(calc(1.3rem + 4pt), calc(2vw + 4pt), calc(1.65rem + 4pt));
  line-height: 1.12;
  font-weight: 300;
}
.coming-copy .soon-note {
  margin: 1.3rem 0 0;
  color: rgba(255,255,255,0.8);
  font-size: calc(1.05rem + 4pt);
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.coming-actions {
  margin-top: 1.05rem;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.coming-actions .editorial-link { color: var(--e59-white); }
.coming-coordinate {
  position: absolute;
  z-index: 3;
  right: 4vw;
  top: 4vh;
  font-size: calc(1rem + 4pt);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

/* Verify batch */
.verify-page {
  min-height: 100svh;
  background: var(--e59-white);
  overflow: hidden;
}
.verify-page::after {
  content: "59°N";
  position: fixed;
  z-index: 0;
  right: -0.03em;
  bottom: -0.23em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(12rem, 28vw, 31rem);
  line-height: 0.7;
  font-weight: 300;
  letter-spacing: -0.055em;
  color: rgba(217,217,217,0.42);
  pointer-events: none;
  white-space: nowrap;
}

.verify-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: 108px 9vw 70px 176px;
  display: grid;
  grid-template-columns: minmax(320px, 475px) minmax(320px, 1fr);
  column-gap: clamp(65px, 9vw, 150px);
  align-items: center;
}
.verify-copy { align-self: center; max-width: 475px; }
.verify-copy .eyebrow { color: var(--e59-gold-500); }
.verify-copy h1 {
  margin: 0.18rem 0 1.2rem;
  font-size: clamp(4.5rem, 7.2vw, 8rem);
  line-height: 0.76;
  font-weight: 300;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.verify-copy .lead {
  max-width: 430px;
  margin: 0;
  font-size: calc(1.65rem + 4pt);
  line-height: 1.06;
  font-weight: 300;
}
.verify-copy .support {
  max-width: 420px;
  margin: 1.25rem 0 0;
  font-size: calc(1.22rem + 4pt);
  line-height: 1.12;
  color: #0B2F3C;
}
.verify-actions { margin-top: 1.7rem; }

.verify-proof {
  align-self: center;
  max-width: 520px;
  padding-top: 8px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 2rem;
  color: var(--e59-forest-700);
  font-size: calc(1.08rem + 4pt);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--e59-gold-500);
  border-radius: 50%;
}
.proof-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 26px;
  padding: 18px 0 15px;
  border-top: 1px solid rgba(180,180,180,0.72);
}
.proof-row:last-child { border-bottom: 1px solid rgba(180,180,180,0.72); }
.proof-label {
  font-size: calc(1rem + 4pt);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.proof-value {
  font-size: calc(1.25rem + 4pt);
  line-height: 1.05;
  color: #0B2F3C;
}
.batch-display {
  display: none;
  margin: 0 0 1.2rem;
  font-size: calc(1.12rem + 4pt);
  line-height: 1.1;
}
.batch-display.is-visible { display: block; }
.batch-display strong {
  display: block;
  margin-top: 3px;
  color: var(--e59-forest-900);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}
.verify-path {
  margin-top: 1.5rem;
  color: #6f6f6f;
  font-size: calc(1rem + 4pt);
  line-height: 1.1;
  letter-spacing: 0.04em;
}

@keyframes quietReveal {
  from { opacity: 0; transform: scale(1.075); }
  to { opacity: 1; transform: scale(1.025); }
}
@keyframes copyReveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .brand-mark { left: 24px; width: 70px; }
  .coming-main { padding: 0 24px 44px; }
  .coming-copy { width: min(760px, 94vw); }
  .coming-coordinate { right: 24px; top: 24px; }
  .verify-shell {
    padding: 124px 36px 72px;
    grid-template-columns: 1fr;
    gap: 54px;
    align-content: start;
  }
  .verify-copy { max-width: 560px; }
  .verify-proof { max-width: 600px; }
}

@media (max-width: 640px) {
  .brand-mark { left: 20px; width: 64px; }
  .coming-page::before {
    background-position: 62% center;
    transform: scale(1.04);
  }
  .coming-page::after {
    background:
      linear-gradient(90deg, rgba(3, 15, 20, 0.46) 0%, rgba(3, 15, 20, 0.15) 80%),
      linear-gradient(0deg, rgba(4, 18, 24, 0.78) 0%, rgba(4, 18, 24, 0.08) 72%);
  }
  .coming-coordinate { top: 22px; right: 20px; font-size: calc(0.82rem + 4pt); }
  .coming-main { padding: 0 20px 34px; }
  .coming-copy { width: 100%; }
  .coming-copy .eyebrow { font-size: calc(1rem + 4pt); letter-spacing: 0.12em; }
  .coming-copy h1 {
    font-size: clamp(4.15rem, 21vw, 6.4rem);
    line-height: 0.75;
    max-width: 100%;
  }
  .coming-copy .subcopy { max-width: 380px; font-size: calc(1.33rem + 4pt); }
  .coming-copy .soon-note { font-size: calc(0.92rem + 4pt); }
  .coming-actions { gap: 20px; }

  .verify-page::after {
    position: absolute;
    right: -0.12em;
    bottom: 0.02em;
    font-size: 58vw;
    opacity: 0.55;
  }
  .verify-shell {
    padding: 116px 20px 62px;
    gap: 42px;
  }
  .verify-copy h1 {
    font-size: clamp(4rem, 19vw, 6rem);
    line-height: 0.76;
  }
  .verify-copy .lead { font-size: calc(1.42rem + 4pt); }
  .verify-copy .support { font-size: calc(1.1rem + 4pt); }
  .proof-row {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 18px;
    padding: 16px 0 13px;
  }
  .proof-value { font-size: calc(1.15rem + 4pt); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Batch archive test interface */
.verify-index-page {
  overflow-x: hidden;
  overflow-y: auto;
}
.verify-index-page::after {
  content: "ELEMENT·59";
  right: -0.05em;
  bottom: -0.13em;
  font-family: "Dongle", Arial, sans-serif;
  font-size: clamp(10rem, 22vw, 25rem);
  letter-spacing: 0.015em;
  color: rgba(217,217,217,0.26);
}
.batch-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: 122px 7vw 84px 176px;
}
.batch-intro {
  width: min(730px, 72vw);
  margin-bottom: 56px;
}
.batch-intro .eyebrow { color: var(--e59-gold-500); }
.batch-intro h1 {
  margin: 0.1rem 0 0.8rem;
  font-size: clamp(4.7rem, 8vw, 8.4rem);
  line-height: 0.74;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.batch-intro .lead {
  margin: 0;
  width: min(620px, 100%);
  font-size: calc(1.55rem + 4pt);
  line-height: 1.08;
}
.batch-browser {
  display: grid;
  grid-template-columns: minmax(290px, 390px) minmax(440px, 690px);
  gap: clamp(55px, 7vw, 115px);
  align-items: start;
}
.batch-list-wrap { min-width: 0; }
.batch-list-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(180,180,180,0.8);
  font-size: calc(1rem + 4pt);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.batch-count { color: #888; font-weight: 400; }
.batch-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 22px 0 21px;
  border: 0;
  border-bottom: 1px solid rgba(180,180,180,0.8);
  background: transparent;
  color: var(--e59-ink);
  text-align: left;
  cursor: pointer;
}
.batch-card::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--e59-gold-500);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 380ms var(--ease-e59);
}
.batch-card:hover::before,
.batch-card:focus-visible::before,
.batch-card.is-active::before { transform: scaleY(1); }
.batch-card:focus-visible { outline: 2px solid var(--e59-gold-500); outline-offset: 7px; }
.batch-index {
  color: #9b9b9b;
  font-size: calc(1rem + 4pt);
  line-height: 1;
  padding-top: 5px;
}
.batch-card-main { display: flex; flex-direction: column; min-width: 0; }
.batch-card-label {
  font-size: calc(0.95rem + 4pt);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--e59-gold-500);
}
.batch-card-main strong {
  margin-top: 2px;
  font-size: 2.25rem;
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.batch-card-main small {
  margin-top: 8px;
  font-size: calc(1.05rem + 4pt);
  line-height: 1;
  color: #696969;
}
.batch-card-status {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: calc(0.92rem + 4pt);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--e59-forest-700);
}
.batch-card-status i,
.record-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--e59-gold-500);
}
.batch-arrow {
  position: absolute;
  right: 0;
  top: 23px;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 380ms var(--ease-e59);
}
.batch-card:hover .batch-arrow,
.batch-card.is-active .batch-arrow { transform: translate(3px, -3px); }
.batch-future {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(180,180,180,0.46);
  color: #aaa;
}
.batch-future span { font-size: calc(1rem + 4pt); line-height: 1; }
.batch-future p { margin: 0; font-size: calc(1.05rem + 4pt); line-height: 1; }
.batch-search { margin-top: 28px; }
.batch-search label {
  display: block;
  margin-bottom: 7px;
  font-size: calc(1rem + 4pt);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.batch-search-line {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--e59-ink);
}
.batch-search-line input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 0 6px;
  outline: 0;
  font-size: calc(1.3rem + 4pt);
  line-height: 1;
}
.batch-search-line input::placeholder { color: #999; }
.batch-search-line button {
  border: 0;
  background: transparent;
  padding: 6px 0 5px 18px;
  font-size: calc(1rem + 4pt);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.batch-search-note {
  min-height: 1.2em;
  margin: 9px 0 0;
  font-size: calc(1rem + 4pt);
  line-height: 1;
  color: #777;
}
.batch-record {
  position: relative;
  min-height: 520px;
  padding: 28px 36px 34px;
  background: var(--e59-forest-900);
  color: var(--e59-white);
  outline: none;
  box-shadow: none;
}
.batch-record::after {
  content: "59°N";
  position: absolute;
  right: 22px;
  bottom: -0.18em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(8rem, 13vw, 12rem);
  line-height: 0.7;
  font-weight: 300;
  color: rgba(255,255,255,0.045);
  pointer-events: none;
}
.record-flash { animation: recordReveal 520ms var(--ease-e59); }
.record-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255,255,255,0.24);
  font-size: calc(0.9rem + 4pt);
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.record-status { display: inline-flex; align-items: center; gap: 8px; color: var(--e59-gold-500); }
.record-kicker {
  margin: 44px 0 0;
  color: var(--e59-gold-500);
  font-size: calc(1rem + 4pt);
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.batch-record h2 {
  margin: 0.18rem 0 0;
  font-size: clamp(4rem, 6vw, 6.7rem);
  line-height: 0.76;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.record-intro {
  width: min(520px, 92%);
  margin: 18px 0 32px;
  color: rgba(255,255,255,0.78);
  font-size: calc(1.25rem + 4pt);
  line-height: 1.08;
}
.record-grid { position: relative; z-index: 1; }
.record-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(180px, 1fr);
  gap: 25px;
  padding: 13px 0 11px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.record-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.record-row span {
  color: rgba(255,255,255,0.6);
  font-size: calc(0.92rem + 4pt);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.record-row strong {
  font-size: calc(1.08rem + 4pt);
  line-height: 1;
  font-weight: 400;
}
.record-footer {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}
.record-footer p {
  margin: 0;
  color: rgba(255,255,255,0.52);
  font-size: calc(0.9rem + 4pt);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.record-footer strong {
  display: block;
  margin-top: 3px;
  color: var(--e59-gold-500);
  font-size: calc(1.13rem + 4pt);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.04em;
}
@keyframes recordReveal {
  from { opacity: 0.72; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .batch-shell { padding: 118px 34px 70px; }
  .batch-intro { width: min(700px, 100%); }
  .batch-browser { grid-template-columns: minmax(260px, 0.8fr) minmax(390px, 1.2fr); gap: 42px; }
  .batch-record { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 760px) {
  .batch-shell { padding: 112px 20px 54px; }
  .batch-intro { margin-bottom: 38px; }
  .batch-intro h1 { font-size: clamp(4.1rem, 20vw, 6rem); }
  .batch-intro .lead { font-size: calc(1.34rem + 4pt); }
  .batch-browser { grid-template-columns: 1fr; gap: 42px; }
  .batch-record { min-height: 0; padding: 24px 20px 30px; scroll-margin-top: 20px; }
  .record-topline { align-items: flex-start; flex-direction: column; gap: 9px; }
  .record-kicker { margin-top: 30px; }
  .batch-record h2 { font-size: clamp(3.8rem, 18vw, 5.4rem); }
  .record-intro { width: 100%; font-size: calc(1.18rem + 4pt); }
  .record-row { grid-template-columns: 1fr; gap: 5px; padding: 12px 0; }
}
