﻿* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #1f1f26;
  color: #f0ede8;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid #4d7d4f;
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(31, 31, 38, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #f0ede8;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #d8c7a1 0%, #b5cf9e 100%);
  border: 1px solid rgba(24, 26, 23, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(240, 237, 232, 0.7);
  font-size: 0.88rem;
}

.nav a {
  position: relative;
  padding-bottom: 3px;
}

.nav a:hover,
.nav a:focus-visible {
  color: #f0ede8;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: #f0ede8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: #e7d7ac;
  color: #1f1f26;
}

.button-secondary {
  background: transparent;
  border-color: rgba(240, 237, 232, 0.2);
  color: #f0ede8;
}

.hero-block,
.story-block,
.cta-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-block {
  padding: 64px 0 52px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 58px;
  align-items: center;
}

.story-grid-reverse .image-slot {
  order: 1;
}

.story-grid-reverse .story-copy {
  order: 2;
}

.story-copy {
  max-width: 640px;
}

.copy-left {
  padding-right: 22px;
}

.copy-right {
  padding-left: 22px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5d635d;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  color: #f0ede8;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 5vw, 5rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 3vw, 3.3rem);
}

.story-copy p {
  margin-bottom: 14px;
  color: rgba(240, 237, 232, 0.72);
  font-size: 1.02rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.image-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 237, 232, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  transform: scale(1.04);
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-slot::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.image-slot-tall {
  aspect-ratio: 3 / 4;
}

.image-slot-compact {
  aspect-ratio: 5 / 4;
}

.image-slot-wide {
  aspect-ratio: 16 / 9;
}

.story-block {
  padding: 66px 0;
}

.cta-block {
  padding: 44px 0 60px;
}

.cta-inner {
  max-width: 720px;
}

.cta-inner h2 {
  margin-bottom: 16px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(240, 237, 232, 0.7);
  font-size: 0.88rem;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.auth-card {
  width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.14);
}

.auth-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 4vw, 3.3rem);
}

.auth-copy {
  margin-bottom: 24px;
  color: rgba(240, 237, 232, 0.74);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #d8c7a1 0%, #b7cf9b 100%);
  color: #1f1f26;
  font-weight: 700;
}

.user-pill strong,
.user-pill small {
  display: block;
}

.user-pill small {
  color: rgba(240, 237, 232, 0.6);
}

.auth-card .button {
  width: 100%;
  margin-bottom: 12px;
}

.auth-error {
  margin-top: 10px;
  color: #f2b7b7;
  font-size: 0.94rem;
}

.back-link {
  display: inline-block;
  margin-top: 12px;
  color: rgba(240, 237, 232, 0.7);
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .story-grid-reverse .image-slot,
  .story-grid-reverse .story-copy {
    order: initial;
  }

  .copy-left,
  .copy-right {
    padding: 0;
  }

  .nav {
    display: none;
  }

  .hero-block {
    padding-top: 40px;
  }
}
