/* Tatry Fab — static site for Cloudflare Pages */

:root {
  --background: #0b1220;
  --foreground: #e8eef7;
  --muted: #8b9bb4;
  --surface: #121a2b;
  --surface-2: #182338;
  --line: #2a3a58;
  --ice: #7dd3c7;
  --ice-dim: #4aa89d;
  --copper: #d4a574;
  --radius: 1rem;
  --max: 72rem;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(125, 211, 199, 0.14), transparent 50%),
    radial-gradient(900px 480px at 100% 0%, rgba(212, 165, 116, 0.08), transparent 42%),
    var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(125, 211, 199, 0.28);
}

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 1.5rem;
  }
}

main {
  flex: 1;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(42, 58, 88, 0.7);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 0.65rem;
  min-height: 3.75rem;
  padding-block: 0.35rem;
}

.header-inner .brand {
  margin-right: auto;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--foreground);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--ice);
}

.brand-mark {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ice), var(--copper));
  box-shadow: 0 0 12px rgba(125, 211, 199, 0.45);
}

.brand-sub {
  display: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

@media (min-width: 640px) {
  .brand-sub {
    display: inline;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--ice);
}

.nav-toggle-bars {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  flex-basis: 100%;
  width: 100%;
  order: 10;
  padding: 0.15rem 0 0.65rem;
}

.site-nav.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-basis: auto;
    width: auto;
    order: 0;
    gap: 0.25rem;
    padding: 0;
  }
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--foreground);
  background: rgba(24, 35, 56, 0.9);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ice);
}

.nav-soon,
.discord-soon {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.discord-soon {
  padding: 0.85rem 0 0;
}

@media (min-width: 768px) {
  .nav-soon {
    padding-inline: 0.65rem;
  }
}

/* Hero & page headers */

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice);
}

.hero {
  padding: 2.25rem 0 2rem;
}

@media (min-width: 640px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }
}

.student-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  width: 100%;
  max-width: 40rem;
  margin: 0 0 1.15rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--copper);
  border-radius: 0.85rem;
  background: linear-gradient(110deg, rgba(212, 165, 116, 0.28), rgba(125, 211, 199, 0.1));
  color: var(--copper);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(212, 165, 116, 0.12), 0 10px 30px rgba(212, 165, 116, 0.08);
}

a.student-banner:hover {
  text-decoration: none;
  border-color: #e8c49a;
}

.student-banner strong {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.student-banner span {
  font-size: 0.92rem;
  font-weight: 650;
  color: #f3d7b4;
}

@media (min-width: 640px) {
  .student-banner {
    width: auto;
    border-radius: 999px;
    padding: 0.55rem 1rem;
  }
}

.hero h1,
.page-title {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.actions .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .actions .btn {
    width: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--ice);
  color: var(--background);
}

.btn-primary:hover {
  background: var(--ice-dim);
  color: var(--background);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  border-color: var(--ice);
}

.btn-copper {
  background: var(--copper);
  color: var(--background);
}

.btn-copper:hover {
  opacity: 0.9;
  color: var(--background);
}

.btn-disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.62;
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
}

.btn-disabled:hover,
.btn[aria-disabled="true"]:hover {
  opacity: 0.62;
  color: var(--muted);
}

/* Cards / sections */

.section {
  padding-bottom: 4rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card {
  display: block;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

@media (min-width: 640px) {
  .card {
    padding: 1.5rem;
  }
}

a.card:hover {
  border-color: rgba(125, 211, 199, 0.5);
  text-decoration: none;
}

.card h2,
.card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.65;
}

.capability-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.capability-card > a {
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.capability-card > a:hover {
  text-decoration: none;
}

.capability-card .btn {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.8rem;
  padding: 0.55rem 0.95rem;
}

.visit-facts {
  display: grid;
  gap: 1rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .visit-facts {
    grid-template-columns: 1fr 1fr 1fr;
    padding-bottom: 3rem;
  }
}

.fact-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.fact-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}

.fact-card p {
  margin: 0;
  font-size: 0.95rem;
}

.fact-card p + p {
  margin-top: 0.3rem;
}

.fact-note {
  color: var(--muted);
  font-size: 0.85rem !important;
  line-height: 1.5;
}

.price-from {
  font-family: var(--font-serif);
  font-size: 1.45rem !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.farm-block {
  padding-bottom: 4.5rem;
}

.farm-intro .farm-lead {
  max-width: 40rem;
}

.farm-steps {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .farm-steps {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.farm-steps li {
  position: relative;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(125, 211, 199, 0.16);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.farm-steps h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.farm-steps p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.farm-honest {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.65;
}

.waitlist-panel {
  align-items: stretch;
  scroll-margin-top: 5.5rem;
}

.waitlist {
  width: 100%;
  max-width: 22rem;
}

.waitlist .field {
  margin-bottom: 0.75rem;
}

.waitlist .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .waitlist .btn {
    width: auto;
  }
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.15rem 0 1rem;
  color: var(--foreground);
  font-size: 0.9rem;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--ice);
}

.waitlist-success {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(125, 211, 199, 0.12);
  border: 1px solid rgba(125, 211, 199, 0.35);
  color: var(--ice);
  font-size: 0.9rem;
  line-height: 1.55;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.panel > .btn {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
  }

  .panel > .btn {
    width: auto;
  }
}

.panel h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel p {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.65;
}

/* Article pages */

.article {
  max-width: 42rem;
  padding: 3.5rem 0 4rem;
}

@media (min-width: 640px) {
  .article {
    padding: 5rem 0 5rem;
  }
}

.prose {
  margin-top: 1.5rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Makerspace areas */

.areas {
  margin-top: 2.5rem;
}

.area {
  scroll-margin-top: 5rem;
}

.area h2 {
  font-size: 1.65rem;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0 4rem;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 5rem 0 5rem;
  }
}

.meta {
  margin: 2rem 0 0;
  padding: 0;
}

.meta dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.meta dd {
  margin: 0.2rem 0 1rem;
  font-size: 0.95rem;
}

.form-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.form-card > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--background);
  color: var(--foreground);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(125, 211, 199, 0.45);
  outline-offset: 1px;
  border-color: var(--ice-dim);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(42, 58, 88, 0.7);
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-inner a {
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--ice);
}

.student-note {
  margin: 0;
  color: var(--copper);
  font-size: 0.8rem;
}

.student-note a {
  color: var(--copper);
}

.form-card#waitlist,
#waitlist {
  scroll-margin-top: 5.5rem;
}

.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;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-switcher select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--background);
  color: var(--muted);
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.lang-switcher select:hover,
.lang-switcher select:focus {
  border-color: var(--ice);
  color: var(--foreground);
  outline: none;
}

.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 18, 32, 0.8);
  backdrop-filter: blur(8px);
}

.lang-modal-card {
  position: relative;
  width: min(32rem, 100%);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  padding: 1.5rem;
}

.lang-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--foreground);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lang-modal-close:hover {
  border-color: var(--ice);
}

.btn-inline {
  display: inline-flex;
  margin-top: 0.45rem;
  width: auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

.lang-modal-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.lang-modal-card p:not(.eyebrow) {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lang-choices {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .lang-choices {
    grid-template-columns: 1fr 1fr;
  }
}

.lang-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: transparent;
  color: var(--foreground);
  padding: 0.85rem 1rem;
  cursor: pointer;
  font: inherit;
}

.lang-choice:hover {
  border-color: var(--ice);
}

.lang-code {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
