:root {
  color-scheme: dark;
  --paper: #ead8b6;
  --paper-dim: #c9ae7c;
  --ink: #24170f;
  --smoke: #16110d;
  --umber: #6f3f22;
  --sienna: #a75d34;
  --gold: #c7a153;
  --olive: #6f7443;
  --blue: #405a68;
  --rose: #8b4d46;
  --line: rgba(234, 216, 182, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: #f7ead1;
  background:
    linear-gradient(rgba(16, 11, 8, 0.54), rgba(16, 11, 8, 0.82)),
    url("/leonardo-study-backdrop.png") center top / min(1800px, 132vw) auto no-repeat,
    radial-gradient(circle at 72% 12%, rgba(199, 161, 83, 0.18), transparent 28rem),
    radial-gradient(circle at 12% 16%, rgba(139, 77, 70, 0.22), transparent 24rem),
    linear-gradient(140deg, rgba(21, 16, 12, 0.9), rgba(47, 32, 22, 0.94)),
    #15100c;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(234, 216, 182, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(234, 216, 182, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 86%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at center, transparent 34%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(115deg, rgba(255, 244, 218, 0.04), transparent 34%, rgba(0, 0, 0, 0.28));
  mix-blend-mode: multiply;
}

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

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 52px) 56px;
}

.hero {
  min-height: clamp(420px, 56vh, 640px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
}

.hero-icon {
  width: clamp(58px, 7vw, 86px);
  height: clamp(58px, 7vw, 86px);
  display: block;
  margin: 0 0 20px;
  border-radius: 18px;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(234, 216, 182, 0.18);
}

.kicker,
.section-heading p {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  color: #fff4dc;
  font-size: clamp(4.2rem, 11vw, 9.6rem);
  line-height: 0.84;
  text-wrap: balance;
  text-shadow: 0 32px 60px rgba(0, 0, 0, 0.44);
}

.lede {
  max-width: 710px;
  margin: 28px 0 0;
  color: rgba(247, 234, 209, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.38rem);
  line-height: 1.65;
}

.study-mark {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 520px);
  justify-self: center;
  border: 1px solid rgba(234, 216, 182, 0.24);
  background:
    radial-gradient(circle, rgba(234, 216, 182, 0.18), transparent 52%),
    repeating-radial-gradient(circle, rgba(234, 216, 182, 0.14) 0 1px, transparent 1px 34px);
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.48),
    0 42px 90px rgba(0, 0, 0, 0.3);
  opacity: 0.92;
}

.golden-ring,
.square,
.axis {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(199, 161, 83, 0.68);
}

.golden-ring {
  border-radius: 50%;
}

.square {
  rotate: 8deg;
  border-color: rgba(234, 216, 182, 0.34);
}

.axis {
  inset: 50% 8% auto;
  height: 1px;
  border: 0;
  background: rgba(234, 216, 182, 0.26);
}

.axis-y {
  rotate: 90deg;
}

.study-mark span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(234, 216, 182, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-style: italic;
}

main {
  margin: 0 calc(clamp(16px, 4vw, 52px) * -1);
  padding: 0 clamp(16px, 4vw, 52px) 48px;
  background: linear-gradient(to bottom, rgba(12, 8, 6, 0.1), rgba(12, 8, 6, 0.88) 92px, #0f0a08 100%);
}

.panel {
  padding: 46px 0 0;
}

.spotlight-panel {
  padding-top: 40px;
}

.panel-secondary {
  padding-top: 56px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

h2 {
  color: #f5dfb5;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.95;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  position: relative;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(234, 216, 182, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 244, 218, 0.12), rgba(255, 244, 218, 0.035)),
    rgba(30, 22, 16, 0.94);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.spotlight-card {
  min-height: 278px;
  padding: 22px;
  border-color: rgba(234, 216, 182, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 244, 218, 0.16), rgba(255, 244, 218, 0.045)),
    rgba(33, 24, 17, 0.96);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.22);
}

.spotlight-card strong {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.spotlight-card .note {
  max-width: 26rem;
  font-size: 1.02rem;
}

.spotlight-card .app-icon {
  width: 42px;
  height: 42px;
}

.app-card::before {
  position: absolute;
  inset: auto 16px 14px auto;
  width: 70px;
  height: 70px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: 50%;
  opacity: 0.24;
}

.app-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 42%);
  opacity: 0.72;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(234, 216, 182, 0.36);
  outline: none;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.app-card > * {
  position: relative;
  z-index: 1;
}

.app-card strong {
  color: #fff3d9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.38rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.02;
  overflow-wrap: normal;
}

.app-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 244, 218, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 244, 218, 0.18), rgba(255, 244, 218, 0.04)),
    rgba(11, 8, 6, 0.38);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 14px 24px rgba(0, 0, 0, 0.18);
}

.app-icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.card-topline,
.domain,
.note {
  display: block;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: rgba(247, 234, 209, 0.74);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  white-space: nowrap;
}

.status {
  color: #f4d99d;
}

.domain {
  color: color-mix(in srgb, var(--accent) 62%, #fff5de);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.note {
  min-height: 3.7em;
  color: rgba(247, 234, 209, 0.82);
  font-size: 0.94rem;
  line-height: 1.35;
}

.umber {
  --accent: var(--sienna);
}

.olive {
  --accent: var(--olive);
}

.blue {
  --accent: var(--blue);
}

.rose {
  --accent: var(--rose);
}

.gold {
  --accent: var(--gold);
}

.tool-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid rgba(234, 216, 182, 0.13);
  border-radius: 8px;
  background: rgba(18, 13, 10, 0.66);
}

.tool-link:hover,
.tool-link:focus-visible {
  border-color: rgba(199, 161, 83, 0.55);
  outline: none;
}

.tool-link span {
  color: #f6e5c5;
  font-weight: 700;
}

.tool-link small {
  color: rgba(234, 216, 182, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 760px) {
  .page-shell {
    padding-top: 22px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-bottom: 32px;
  }

  .study-mark {
    width: min(100%, 330px);
  }

  .section-heading {
    display: block;
  }

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

  .spotlight-card {
    min-height: 230px;
  }

  .spotlight-card strong {
    font-size: clamp(1.7rem, 10vw, 2.45rem);
  }

  .app-card {
    min-height: 190px;
  }

  .app-icon {
    width: 30px;
    height: 30px;
  }
}
