:root {
  color-scheme: light;
  --blue: #004069;
  --blue-rgb: 0, 64, 105;
  --ink: #0d1820;
  --muted: #5e6a72;
  --paper: #f5f7f8;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(0, 64, 105, 0.16);
  --shadow: 0 30px 90px rgba(0, 33, 54, 0.12);
  --radius-lg: 34px;
  --radius-md: 22px;
  --max: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef7fb;
  --muted: #aab8c0;
  --paper: #07131b;
  --panel: rgba(9, 27, 38, 0.72);
  --panel-strong: rgba(11, 33, 47, 0.92);
  --line: rgba(214, 238, 250, 0.14);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(var(--blue-rgb), 0.18), transparent 30rem),
    radial-gradient(circle at 82% 16%, rgba(var(--blue-rgb), 0.16), transparent 28rem),
    linear-gradient(135deg, var(--paper), color-mix(in srgb, var(--paper) 88%, var(--blue)));
  min-height: 100vh;
  transition: background 240ms ease, color 240ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--blue-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(rgba(var(--blue-rgb), 0.05) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  opacity: 0.55;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .grain {
  mix-blend-mode: screen;
  opacity: 0.07;
}

.creative-trace {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.62;
}

.creative-trace svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trace-line,
.desk-object path,
.desk-object circle {
  fill: none;
  stroke: rgba(var(--blue-rgb), 0.115);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trace-line-main {
  stroke-dasharray: 10 18;
}

.trace-line-soft {
  stroke-width: 1.25;
  stroke-dasharray: 2 18;
  opacity: 0.78;
}

.trace-line-thin {
  stroke-width: 1;
  stroke-dasharray: 6 22;
  opacity: 0.62;
}

.desk-object {
  opacity: 0.78;
}

.desk-object path,
.desk-object circle {
  stroke-width: 1.45;
}

.ruler,
.set-square,
.notebook {
  opacity: 0.58;
}

.compass,
.pencil-large,
.circles {
  opacity: 0.72;
}

.paperclips,
.curves,
.typographic,
.pencil-small {
  opacity: 0.48;
}

.notebook path,
.ruler path,
.set-square path {
  stroke-width: 1.25;
}

html[data-theme="dark"] .creative-trace {
  opacity: 0.70;
}

html[data-theme="dark"] .trace-line,
html[data-theme="dark"] .desk-object path,
html[data-theme="dark"] .desk-object circle {
  stroke: rgba(255, 255, 255, 0.135);
}

html[data-theme="dark"] .ruler,
html[data-theme="dark"] .set-square,
html[data-theme="dark"] .notebook {
  opacity: 0.66;
}


a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  position: relative;
}

.site-header {
  padding: 34px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(230px, 31vw, 390px);
  height: auto;
  display: block;
}

.brand-logo-dark {
  display: none;
}

html[data-theme="dark"] .brand-logo-light {
  display: none;
}

html[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-actions {
  justify-content: flex-end;
}

.ghost-link,
.button,
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 17px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 33, 54, 0.06);
}

.theme-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.toggle-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,0.22);
}

html[data-theme="dark"] .toggle-dot {
  background: #f5fbff;
}

.clock-widget {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 50px;
  padding: 8px 0 8px 10px;
}

.analog-clock {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 33, 54, 0.06);
  backdrop-filter: blur(16px);
}

.clock-mark {
  position: absolute;
  display: block;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  opacity: 0.72;
}

.mark-12,
.mark-6 {
  width: 1px;
  height: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.mark-12 {
  top: 5px;
}

.mark-6 {
  bottom: 5px;
}

.mark-3,
.mark-9 {
  width: 5px;
  height: 1px;
  top: 50%;
  transform: translateY(-50%);
}

.mark-3 {
  right: 5px;
}

.mark-9 {
  left: 5px;
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: 999px;
  transform: translateX(-50%) rotate(0deg);
}

.hour-hand {
  width: 3px;
  height: 13px;
  background: var(--ink);
}

.minute-hand {
  width: 2px;
  height: 17px;
  background: var(--blue);
}

.second-hand {
  width: 1px;
  height: 18px;
  background: color-mix(in srgb, var(--blue) 78%, white);
}

.clock-center {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.clock-date {
  text-align: right;
  line-height: 1.05;
  min-width: 112px;
}

.clock-date strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.clock-date span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html[data-theme="dark"] .minute-hand,
html[data-theme="dark"] .second-hand,
html[data-theme="dark"] .clock-center {
  background: #f5fbff;
}

.hero {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: 56px 0 84px;
}

.eyebrow,
.panel-kicker,
.weather-label {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 850;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .panel-kicker,
html[data-theme="dark"] .weather-label {
  color: #84c7ec;
}

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

h1 {
  max-width: 840px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.93;
  letter-spacing: -0.075em;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(30px, 4vw, 55px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero-text,
.weather-section p,
.contact-copy p,
.hero-panel p,
.cards p,
.contact-box p,
.site-footer {
  color: var(--muted);
  line-height: 1.62;
  font-size: 17px;
}

.hero-text {
  max-width: 710px;
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.button-primary {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

.button-secondary:hover,
.ghost-link:hover,
.theme-toggle:hover,
.contact-box a:hover,
.site-footer a:hover {
  border-color: rgba(var(--blue-rgb), 0.38);
  color: var(--blue);
}

html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .ghost-link:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .contact-box a:hover,
html[data-theme="dark"] .site-footer a:hover {
  color: #9bd8fa;
}

.hero-panel,
.weather-card,
.cards article,
.contact-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-panel,
.weather-card,
.contact-box {
  --hover-border: var(--blue);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
}

.hero-panel::before,
.weather-card::before,
.contact-box::before,
.hero-panel::after,
.weather-card::after,
.contact-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.hero-panel::before,
.weather-card::before,
.contact-box::before {
  background:
    linear-gradient(var(--hover-border), var(--hover-border)) top right / 0 1px no-repeat,
    linear-gradient(var(--hover-border), var(--hover-border)) bottom right / 0 1px no-repeat,
    linear-gradient(var(--hover-border), var(--hover-border)) top right / 1px 0 no-repeat,
    linear-gradient(var(--hover-border), var(--hover-border)) top left / 1px 0 no-repeat;
  opacity: 0;
  transition:
    background-size 620ms cubic-bezier(.18, .82, .22, 1),
    opacity 180ms ease;
}

.hero-panel::after,
.weather-card::after,
.contact-box::after {
  background:
    radial-gradient(circle at 92% 12%, rgba(var(--blue-rgb), 0.13), transparent 36%),
    linear-gradient(270deg, rgba(var(--blue-rgb), 0.08), transparent 62%);
  transform: translateX(18%);
  opacity: 0;
  transition:
    transform 520ms cubic-bezier(.18, .82, .22, 1),
    opacity 260ms ease;
}

.hero-panel:hover,
.weather-card:hover,
.contact-box:hover {
  transform: translateY(-10px);
  border-color: rgba(var(--blue-rgb), 0.34);
  box-shadow: 0 42px 105px rgba(0, 33, 54, 0.20);
}

.hero-panel:hover::before,
.weather-card:hover::before,
.contact-box:hover::before {
  background-size:
    100% 1px,
    100% 1px,
    1px 100%,
    1px 100%;
  opacity: 1;
}

.hero-panel:hover::after,
.weather-card:hover::after,
.contact-box:hover::after {
  transform: translateX(0);
  opacity: 1;
}

.hero-panel > *,
.weather-card > *,
.contact-box > * {
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .weather-card,
html[data-theme="dark"] .contact-box {
  --hover-border: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .hero-panel::after,
html[data-theme="dark"] .weather-card::after,
html[data-theme="dark"] .contact-box::after {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.10), transparent 36%),
    linear-gradient(270deg, rgba(255, 255, 255, 0.07), transparent 62%);
}

html[data-theme="dark"] .hero-panel:hover,
html[data-theme="dark"] .weather-card:hover,
html[data-theme="dark"] .contact-box:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 42px 105px rgba(0, 0, 0, 0.52);
}

.hero-panel {
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}

.orb {
  z-index: 0;
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.42), rgba(var(--blue-rgb), 0.02) 68%);
  filter: blur(1px);
}

.hero-panel h2 {
  font-size: clamp(34px, 5vw, 68px);
  position: relative;
}

.hero-panel p,
.panel-kicker {
  position: relative;
}

.weather-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.weather-card {
  padding: 28px;
}

.weather-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.weather-now {
  text-align: right;
}

.weather-now span {
  display: block;
  font-size: clamp(48px, 7vw, 78px);
  line-height: 0.84;
  letter-spacing: -0.07em;
  font-weight: 850;
  color: var(--blue);
}

html[data-theme="dark"] .weather-now span {
  color: #9bd8fa;
}

.weather-now small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.forecast-day,
.forecast-skeleton {
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
}

.forecast-skeleton {
  background:
    linear-gradient(100deg, transparent, rgba(var(--blue-rgb), 0.08), transparent),
    var(--panel-strong);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.forecast-day strong {
  display: block;
  margin-bottom: 10px;
}

.forecast-day span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.forecast-icon {
  font-size: 31px;
  margin-bottom: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 58px 0;
}

.cards article {
  --hover-border: var(--blue);
  padding: 28px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  transform: translateY(0);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
}

.cards article::before,
.cards article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.cards article::before {
  background:
    linear-gradient(var(--hover-border), var(--hover-border)) top right / 0 1px no-repeat,
    linear-gradient(var(--hover-border), var(--hover-border)) bottom right / 0 1px no-repeat,
    linear-gradient(var(--hover-border), var(--hover-border)) top right / 1px 0 no-repeat,
    linear-gradient(var(--hover-border), var(--hover-border)) top left / 1px 0 no-repeat;
  opacity: 0;
  transition:
    background-size 620ms cubic-bezier(.18, .82, .22, 1),
    opacity 180ms ease;
}

.cards article::after {
  background:
    radial-gradient(circle at 92% 12%, rgba(var(--blue-rgb), 0.16), transparent 36%),
    linear-gradient(270deg, rgba(var(--blue-rgb), 0.10), transparent 62%);
  transform: translateX(18%);
  opacity: 0;
  transition:
    transform 520ms cubic-bezier(.18, .82, .22, 1),
    opacity 260ms ease;
}

.cards article:hover {
  transform: translateY(-12px);
  border-color: rgba(var(--blue-rgb), 0.34);
  box-shadow: 0 42px 105px rgba(0, 33, 54, 0.24);
}

.cards article:hover::before {
  background-size:
    100% 1px,
    100% 1px,
    1px 100%,
    1px 100%;
  opacity: 1;
}

.cards article:hover::after {
  transform: translateX(0);
  opacity: 1;
}

.cards article > * {
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .cards article {
  --hover-border: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .cards article::after {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(270deg, rgba(255, 255, 255, 0.08), transparent 62%);
}

html[data-theme="dark"] .cards article:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 42px 105px rgba(0, 0, 0, 0.58);
}

.card-number {
  display: inline-block;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 40px;
}

html[data-theme="dark"] .card-number {
  color: #9bd8fa;
}

.contact-section {
  padding-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-box {
  padding: 24px;
  border-radius: var(--radius-md);
}

.contact-box h3 {
  margin-bottom: 12px;
}

.contact-box p {
  margin-bottom: 0;
  font-size: 15px;
}

.contact-box a,
.site-footer a {
  text-decoration: none;
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero,
  .weather-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

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

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .brand-logo {
    width: min(100%, 300px);
  }

  h1 {
    font-size: clamp(42px, 16vw, 62px);
  }

  .forecast-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .weather-top {
    flex-direction: column;
  }

  .clock-widget {
    width: 100%;
    justify-content: flex-start;
    padding-left: 0;
  }

  .clock-date {
    text-align: left;
  }

  .weather-now {
    text-align: left;
  }
}
