/* specialdevops.com: the app's night theme (lib/theme/season_theme.dart). */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #ffffff;
  --soft: #d7e2f0;
  --muted: #a9bcd6;
  --accent: #f7c948;
  --accent-soft: rgba(247, 201, 72, 0.16);
  --on-accent: #3a2a00;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --sky: linear-gradient(180deg, #0b2447 0%, #142f4f 45%, #1e4d3b 100%);
  --radius: 22px;
  --gutter: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: #0b2447;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sky);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

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

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Header and footer */

.site-header {
  position: relative;
  z-index: 1;
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.site-nav a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 500;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

.site-footer a {
  color: var(--soft);
  text-decoration: none;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

/* Text */

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 500;
}

.fancy {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lead {
  font-size: clamp(18px, 2.6vw, 21px);
  color: var(--soft);
  max-width: 34em;
}

.muted {
  color: var(--muted);
}

/* Pieces */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.button[aria-disabled="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  cursor: default;
}

.section {
  padding: 48px 0;
}

/* 404 page */

.hero {
  padding: 56px 0 24px;
}

/* Home page: the app */

.app-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0 16px;
}

/* tree.png is the icon's foreground, with wide empty margins around the
   tree, so it's scaled up to fill its column. */
.app-hero .tree {
  justify-self: center;
  width: min(100%, 420px);
  transform: scale(1.45);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.countdown {
  margin: 28px 0;
  padding: 24px;
  text-align: center;
}

.countdown .number {
  display: block;
  font-size: clamp(72px, 16vw, 112px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 40px rgba(240, 138, 138, 0.35);
  font-variant-numeric: tabular-nums;
}

.countdown .label {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-size: 19px;
}

.time-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.time-boxes div {
  padding: 12px 6px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.time-boxes strong {
  display: block;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.time-boxes span {
  color: var(--muted);
  font-size: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.features article {
  padding: 22px;
}

.features p {
  margin: 0;
  color: var(--soft);
}

.features .icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

/* Long text pages, like the privacy policy */

.prose {
  max-width: 720px;
  padding: 32px 0;
}

.prose h2 {
  margin-top: 36px;
  font-size: 24px;
}

.prose li {
  margin-bottom: 6px;
}

.prose .updated {
  color: var(--muted);
  margin-top: -4px;
}

/* Falling snow (js/snow.js); still when the system asks for reduced motion */

.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.snow i {
  position: absolute;
  top: -10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translate3d(var(--drift), 105vh, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .snow i {
    animation: none;
  }
}

@media (max-width: 720px) {
  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-hero .tree {
    grid-row: 1;
    width: min(60%, 260px);
    margin: -6% 0 -10%;
  }
  .app-hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
}
