:root {
  color-scheme: light dark;
  --ink: #24170f;
  --muted: #765f50;
  --paper: #fffaf4;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(91, 55, 30, 0.14);
  --orange: #f26a21;
  --orange-dark: #b93f0a;
  --shadow: 0 24px 70px rgba(81, 42, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 178, 99, 0.28), transparent 34rem),
    radial-gradient(circle at 96% 94%, rgba(242, 106, 33, 0.15), transparent 30rem),
    var(--paper);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--orange-dark);
  text-underline-offset: 0.2em;
}

.shell {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.7rem;
  color: white;
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(242, 106, 33, 0.28);
}

nav {
  display: flex;
  gap: 1rem;
  font-size: 0.92rem;
}

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

main {
  padding: clamp(2rem, 8vw, 7rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.lead {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.clock {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  margin: auto;
  border: clamp(0.8rem, 2vw, 1.2rem) solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
}

.clock::before,
.clock::after {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 0.55rem;
  content: "";
  border-radius: 1rem;
  background: var(--orange);
  transform-origin: 50% 100%;
}

.clock::before {
  height: 30%;
  transform: translateX(-50%) rotate(38deg);
}

.clock::after {
  height: 21%;
  transform: translateX(-50%) rotate(132deg);
}

.wave {
  position: absolute;
  right: 12%;
  bottom: 17%;
  left: 12%;
  height: 18%;
  border-top: 0.55rem solid var(--ink);
  border-bottom: 0.55rem solid var(--ink);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  color: var(--ink);
  background: var(--card);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(81, 42, 17, 0.08);
}

.button.primary {
  border-color: var(--orange);
  color: white;
  background: var(--orange);
}

.document {
  max-width: 48rem;
  margin: 0 auto;
}

.document h1 {
  max-width: none;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.document h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.document .updated {
  margin: 1rem 0 2.5rem;
  color: var(--muted);
}

.panel {
  margin-top: 2rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  header {
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
  }

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

  .clock {
    width: min(72vw, 18rem);
    grid-row: 1;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fff4e8;
    --muted: #c9af9d;
    --paper: #17100c;
    --card: rgba(49, 33, 25, 0.72);
    --line: rgba(255, 222, 196, 0.13);
    --orange-dark: #ff985f;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  }

  .clock {
    background: rgba(255, 255, 255, 0.04);
  }
}
