/* ==========================================================================
   FUGLELYDE.DK — THE NATURE POSTER
   Ultra-minimal, clean, poster-like aesthetic — BIGGER LETTERING edition
   ========================================================================== */

/* Font assets previously referenced a deleted CDN folder.
   Keep styling, fall back to system fonts. */

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg:          #fafaf8;
  --bg-card:     #ffffff;
  --text:        #111111;
  --text-mid:    #555555;
  --text-light:  #999999;
  --green:       #1a3a2a;
  --green-mid:   #2d5a3d;
  --green-light: #4a7c5c;
  --border:      #e4e4e0;
  --border-dark: #c8c8c0;
  --accent:      #c9a96e;

  --font-main:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  --max-width: 820px;
  --radius: 2px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: white;
}

a {
  color: var(--green-mid);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--green);
}

/* ── Page Container ───────────────────────────────────────────────────────── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

/* ── The Sign ─────────────────────────────────────────────────────────────── */
.sign {
  width: 100%;
  max-width: 680px;
  border: 2px solid var(--green);
  padding: 2.5rem 2.5rem 2rem;
  background: var(--bg-card);
  position: relative;
  animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sign__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sign__bird-svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.sign__bird-svg svg {
  width: 100%;
  height: 100%;
}

.sign__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.2;
}

.sign__rule {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.sign__subtitle {
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green);
  padding: 0.6rem 0;
  letter-spacing: 0.04em;
}

/* ── Sign Lookup ──────────────────────────────────────────────────────────── */
.sign-lookup {
  position: relative;
  padding: 0.4rem 0;
}

.sign-lookup__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sign-lookup__icon {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  flex-shrink: 0;
}

.sign-lookup__input {
  flex: 1;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid transparent;
  padding: 0.3rem 0;
  text-align: center;
  letter-spacing: 0.03em;
  transition: border-color 0.2s;
  outline: none;
}

.sign-lookup__input:hover {
  border-bottom-color: var(--border);
}

.sign-lookup__input:focus {
  border-bottom-color: var(--green);
}

.sign-lookup__input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.sign-lookup__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.sign-lookup__results.open {
  display: block;
}

.sign-lookup__result {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  font-family: var(--font-main);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.sign-lookup__result:last-child {
  border-bottom: none;
}

.sign-lookup__result:hover {
  background: rgba(26,58,42,0.05);
}

.sign-lookup__result-id {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--green);
  white-space: nowrap;
}

.sign-lookup__result-name {
  color: var(--text-mid);
  font-size: 0.85rem;
}

.sign-lookup__result-loc {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-left: auto;
}

.sign-lookup__empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.sign__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  margin-top: 1.25rem;
}

.sign__guarantees {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border);
}

.sign__guarantee {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sign__guarantee-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--green);
}

.sign__guarantee-icon svg {
  width: 100%;
  height: 100%;
}

.sign__guarantee-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 2px;
}

.sign__guarantee-text {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.4;
}

.sign__fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sign__field-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

.sign__field-value {
  min-height: 22px;
  border-bottom: 1.5px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-mid);
  padding-bottom: 2px;
}

/* ── Location Box ──────────────────────────────────────────────────────────── */
.sign__location {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  background: rgba(26,58,42,0.02);
}

.sign__location-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  color: var(--green);
}

.sign__location-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
}

.sign__location-coords {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.sign__location-sep {
  color: var(--text-light);
}

.sign__location-datum {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sign__footer {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.7;
}

.sign__footer a {
  font-weight: 600;
  color: var(--green);
}

/* ── Section ──────────────────────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

/* ── Privacy List ─────────────────────────────────────────────────────────── */
.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.privacy-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.privacy-item:last-child {
  border-bottom: none;
}

.privacy-item__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.privacy-item__icon svg {
  width: 28px;
  height: 28px;
}

.privacy-item__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 4px;
}

.privacy-item__text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ── Node Selector ────────────────────────────────────────────────────────── */
.node-selector {
  position: relative;
  margin-bottom: 2rem;
}

.node-selector__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
  text-align: left;
}

.node-selector__trigger:hover {
  border-color: var(--green);
}

.node-selector__label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--green);
}

.node-selector__meta {
  flex: 1;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-light);
}

.node-selector__chevron {
  width: 16px;
  height: 16px;
  color: var(--text-light);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.node-selector__trigger[aria-expanded="true"] .node-selector__chevron {
  transform: rotate(180deg);
}

.node-selector__dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.node-selector__dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.node-selector__search-wrap {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.node-selector__search-wrap input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.node-selector__search-wrap input:focus {
  outline: none;
  border-color: var(--green);
}

.node-selector__options {
  max-height: 240px;
  overflow-y: auto;
  padding: 0.25rem;
}

.node-selector__option {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  font-family: var(--font-main);
  font-size: 0.85rem;
}

.node-selector__option:hover {
  background: rgba(26,58,42,0.05);
}

.node-selector__option.active {
  background: rgba(26,58,42,0.08);
}

.node-selector__option-id {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--green);
}

.node-selector__option-detail {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── Tally Controls ──────────────────────────────────────────────────────── */
.tally-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tally-controls button {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.tally-controls button:hover,
.tally-controls button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

/* ── Tally Grid (cards) ──────────────────────────────────────────────────── */
.tally-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
}

.tally-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  transition: all 0.25s ease;
  animation: cardAppear 0.4s ease-out both;
}

.tally-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--green-light);
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tally-card__rank {
  float: right;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1;
}

.tally-card__name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1px;
}

.tally-card__latin {
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.65rem;
}

.tally-card__count {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.tally-card__count-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--green);
  line-height: 1;
}

.tally-card__count-label {
  font-size: 0.7rem;
  color: var(--text-light);
}

.tally-card__bar {
  height: 3px;
  background: var(--border);
  border-radius: 1px;
  margin-top: 0.6rem;
  overflow: hidden;
}

.tally-card__bar-fill {
  height: 100%;
  background: var(--green-mid);
  border-radius: 1px;
  transition: width 0.8s ease-out;
}

.tally-card__time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}

/* ── Tech Accordion ──────────────────────────────────────────────────────── */
.tech-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tech-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.tech-item:hover {
  border-color: var(--border-dark);
}

.tech-item__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  background: var(--bg-card);
  transition: background 0.2s;
  user-select: none;
}

.tech-item__header:hover {
  background: rgba(26,58,42,0.03);
}

.tech-item__title {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
}

.tech-item__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
  color: var(--text-light);
}

.tech-item.open .tech-item__arrow {
  transform: rotate(180deg);
}

.tech-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.tech-item.open .tech-item__content {
  max-height: 600px;
}

.tech-item__inner {
  padding: 0 1.1rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-mid);
}

.tech-item__inner table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.tech-item__inner td {
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--border);
  vertical-align: top;
}

.tech-item__inner td:first-child {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
  width: 38%;
  font-size: 0.8rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer__contact {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.8;
}

.footer__contact a {
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}

.footer__contact a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.footer__secret {
  margin-top: 2rem;
  opacity: 0;
  transition: opacity 0.5s;
}

.footer__secret:hover {
  opacity: 1;
}

.footer__secret a {
  font-size: 0.75rem;
  color: var(--text-light);
}

.footer__copyright {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  color: var(--border-dark);
}

/* ── Language Toggle ──────────────────────────────────────────────────────── */
.lang-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.lang-toggle span {
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-light);
  transition: all 0.2s;
}

.lang-toggle span.active {
  background: var(--green);
  color: white;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .sign {
    padding: 1.5rem;
  }

  .sign__title {
    font-size: 1.15rem;
  }

  .sign__body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .sign__guarantees {
    border-right: none;
    padding-right: 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

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

/* ── Toast Notification ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-hover);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast a {
  color: var(--green);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

/* ── Privacy Banner ────────────────────────────────────────────────────────── */
.privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  color: var(--text-mid);
  padding: 1rem 2rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--border);
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-banner.show {
  transform: translateY(0);
}

.privacy-banner__text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-banner strong {
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}

.privacy-banner__close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-banner__close:hover {
  color: var(--green);
}

@media (max-width: 600px) {
  .privacy-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  .privacy-banner__text {
    flex-direction: column;
    gap: 0.2rem;
  }
}
