/* Dashday site — shared styles */

:root {
  --ink: #14201c;
  --ink-soft: #3d4f47;
  --mist: #dfe8e2;
  --foam: #f3f7f4;
  --leaf: #1f6b4a;
  --leaf-deep: #0f3d2c;
  --sun: #e8c07a;
  --line: rgba(20, 32, 28, 0.12);
  --shadow: rgba(15, 40, 30, 0.18);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(232, 192, 122, 0.35), transparent 55%),
    radial-gradient(900px 600px at 90% 8%, rgba(31, 107, 74, 0.18), transparent 50%),
    linear-gradient(165deg, #eef4f0 0%, #d9e5dd 42%, #c5d5cb 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--leaf-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--leaf);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 244, 0.72);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 61, 44, 0.08) 0%, rgba(15, 61, 44, 0.55) 55%, rgba(10, 28, 22, 0.82) 100%),
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(232, 192, 122, 0.35), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #1f6b4a 0%, #0f3d2c 45%, #14201c 100%);
  transform: scale(1.02);
  animation: atmosphere-drift 18s var(--ease) infinite alternate;
}

@keyframes atmosphere-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(0, -1.5%, 0); }
}

.hero-inner {
  width: min(100% - 3rem, 40rem);
  margin: 0 auto 12vh;
  color: #f7faf8;
  padding-top: 18vh;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero-line {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  max-width: 28ch;
  margin: 0 0 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero-sub {
  margin: 0 0 2rem;
  color: rgba(247, 250, 248, 0.78);
  max-width: 36ch;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.button-primary {
  background: var(--foam);
  color: var(--leaf-deep);
}

.button-primary:hover {
  background: #fff;
  color: var(--leaf-deep);
}

.button-ghost {
  border-color: rgba(247, 250, 248, 0.35);
  color: #f7faf8;
  background: rgba(247, 250, 248, 0.06);
}

.button-ghost:hover {
  border-color: rgba(247, 250, 248, 0.6);
  color: #fff;
}

.section {
  width: min(100% - 3rem, 40rem);
  margin: 0 auto;
  padding: 4.5rem 0 1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.section-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-footer {
  width: min(100% - 3rem, var(--max));
  margin: 4rem auto 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Privacy */

.page {
  width: min(100% - 3rem, 42rem);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
}

.page .meta {
  color: var(--ink-soft);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.02em;
}

.page p,
.page li {
  color: var(--ink-soft);
}

.page ul {
  padding-left: 1.2rem;
}

.page li {
  margin-bottom: 0.35rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(20, 32, 28, 0.06);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--foam);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--shadow);
}

.privacy-panel[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere,
  .hero-brand,
  .hero-line,
  .hero-sub,
  .cta-row {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
