:root {
  color-scheme: dark;
  --bg: #181818;
  --surface: #1f1f1f;
  --surface-muted: #252525;
  --surface-callout: #69392f;
  --text: #f3f3f2;
  --muted: #b3b1ad;
  --line: #2d2d2d;
  --line-strong: #3a3a3a;
  --link: #78a6ff;
  --link-warm: #f08b7f;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  --content: 1640px;
  --body-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.notion-page {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 56px;
  padding: 0 28px;
  border-bottom: 1px solid #262626;
  background: rgba(24, 24, 24, 0.94);
  backdrop-filter: blur(12px);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.topbar-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, #b02a3d, #631624);
  color: #f3cf49;
  font-size: 0.95rem;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: #d7d7d5;
  font-size: 1.4rem;
  line-height: 1;
}

.cover {
  position: relative;
  height: min(24vw, 310px);
  min-height: 220px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(142, 204, 243, 0.3), rgba(142, 204, 243, 0)),
    linear-gradient(180deg, #91d0f5 0%, #b8e1f7 48%, #dce9ef 100%);
}

.cover-sky,
.cover-horizon {
  position: absolute;
  inset: 0;
}

.cover-sky {
  background:
    radial-gradient(circle at 8% 24%, rgba(255, 255, 255, 0.94) 0 5%, transparent 6%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9) 0 5%, transparent 6%),
    radial-gradient(circle at 29% 31%, rgba(255, 255, 255, 0.94) 0 5.6%, transparent 6.6%),
    radial-gradient(circle at 44% 13%, rgba(255, 255, 255, 0.92) 0 4.6%, transparent 5.6%),
    radial-gradient(circle at 57% 23%, rgba(255, 255, 255, 0.95) 0 5%, transparent 6%),
    radial-gradient(circle at 71% 16%, rgba(255, 255, 255, 0.92) 0 5.2%, transparent 6.2%),
    radial-gradient(circle at 83% 27%, rgba(255, 255, 255, 0.94) 0 5.1%, transparent 6.1%),
    radial-gradient(circle at 92% 20%, rgba(255, 255, 255, 0.9) 0 4.6%, transparent 5.5%);
  opacity: 0.95;
}

.cover-horizon {
  background:
    linear-gradient(180deg, transparent 0 73%, rgba(43, 56, 58, 0.28) 73% 74%, transparent 74%),
    linear-gradient(180deg, transparent 0 78%, #54514f 78% 79%, transparent 79%),
    linear-gradient(180deg, transparent 0 79%, #6d6a67 79% 100%),
    radial-gradient(ellipse at 12% 87%, #7d846f 0 12%, transparent 13%),
    radial-gradient(ellipse at 22% 86%, #647560 0 12%, transparent 13%),
    radial-gradient(ellipse at 38% 86%, #70856d 0 11%, transparent 12%),
    radial-gradient(ellipse at 66% 88%, #74866d 0 13%, transparent 14%),
    radial-gradient(ellipse at 80% 86%, #6f7662 0 12%, transparent 13%),
    radial-gradient(ellipse at 90% 87%, #696d60 0 11%, transparent 12%);
}

.cover-tower {
  position: absolute;
  left: 50%;
  bottom: 25px;
  width: 132px;
  height: 228px;
  transform: translateX(-50%);
}

.cover-spire,
.cover-roof,
.cover-belfry,
.cover-base {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.cover-spire {
  top: 0;
  width: 3px;
  height: 42px;
  background: #2b2f35;
}

.cover-roof {
  top: 25px;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 58px solid #23272d;
}

.cover-belfry {
  top: 81px;
  width: 96px;
  height: 86px;
  border: 7px solid #824a3f;
  border-bottom-width: 10px;
  background: linear-gradient(180deg, #e4ddd3, #f4f2ed);
}

.cover-belfry span {
  position: absolute;
  top: 13px;
  width: 20px;
  height: 50px;
  border: 4px solid #bfae9c;
  border-radius: 13px 13px 6px 6px;
  background: linear-gradient(180deg, #d5ecf8, #f7f4ed);
}

.cover-belfry span:first-child {
  left: 16px;
}

.cover-belfry span:last-child {
  right: 16px;
}

.cover-base {
  top: 167px;
  width: 110px;
  height: 62px;
  background:
    linear-gradient(180deg, #72443a 0%, #5c352d 100%);
  box-shadow:
    inset 0 10px 0 rgba(255, 255, 255, 0.06),
    inset 0 -12px 0 rgba(25, 18, 16, 0.2);
}

.page-frame {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 80px;
}

.staging-banner {
  margin: 28px 24px 8px;
  padding: 32px 36px;
  border: 4px solid #8c1d18;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.9), rgba(255, 245, 214, 0.96)),
    #fff3d0;
  box-shadow: 0 18px 44px rgba(140, 29, 24, 0.16);
}

.staging-banner-label {
  margin-bottom: 12px;
  color: #8c1d18;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.staging-banner h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.staging-banner p {
  max-width: 70ch;
  margin-top: 16px;
  color: #5c281f;
  font-size: 1.08rem;
  line-height: 1.7;
}

.page-head {
  position: relative;
  padding: 0 0 24px 0;
}

.crest {
  position: relative;
  width: 128px;
  height: 148px;
  margin: -84px 0 0 96px;
  border-radius: 18px 18px 50px 50px;
  background: linear-gradient(180deg, #8f2230, #57111f);
  clip-path: polygon(8% 0, 92% 0, 92% 60%, 50% 100%, 8% 60%);
  box-shadow: 0 10px 18px rgba(29, 32, 37, 0.14);
}

.crest-border {
  position: absolute;
  inset: 6px;
  border: 4px solid #f0c64b;
  clip-path: inherit;
}

.crest-cross {
  position: absolute;
  inset: 0;
}

.crest-cross::before,
.crest-cross::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #f3cf49;
}

.crest-cross::before {
  top: 28px;
  width: 16px;
  height: 80px;
}

.crest-cross::after {
  top: 46px;
  width: 56px;
  height: 12px;
  box-shadow:
    0 -18px 0 0 #f3cf49,
    0 18px 0 0 #f3cf49;
}

.page-title-wrap {
  padding: 22px 96px 0;
}

.page-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-summary {
  margin-top: 18px;
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.notion-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding: 24px 96px 0;
}

.sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 26px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.sidebar-toggle span:first-child {
  font-size: 1.5rem;
  line-height: 1;
}

.sidebar-menu {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.sidebar-menu a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration-color: var(--line-strong);
  font-size: 1rem;
  line-height: 1.35;
}

.menu-icon {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  color: #8f8c86;
  font-size: 1rem;
}

.content-column {
  min-width: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.content-stack {
  display: grid;
  gap: 58px;
  margin-top: 54px;
}

.notion-card h2,
.callout-card h2,
.quote-card p {
  font-size: clamp(2rem, 3.1vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.notion-card p,
.callout-card p {
  margin-top: 24px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #dfdeda;
}

.callout-card {
  display: grid;
  gap: 26px;
}

.callout-block {
  padding: 34px 42px;
  border-radius: 20px;
  background: var(--surface-callout);
  color: #fffaf6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.callout-block p {
  margin-top: 0;
  color: inherit;
}

.callout-block a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  color: #fffaf6;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration-color: rgba(255, 250, 246, 0.45);
}

.callout-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 26px;
  border-radius: 9px;
  background: #ff2e1f;
  color: #fff;
  font-size: 0.9rem;
}

.follow-note a {
  font-weight: 700;
}

.contact-list {
  display: grid;
  gap: 44px;
  margin-top: 28px;
}

.contact-list h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.contact-list p {
  margin-top: 10px;
}

.quote-card {
  margin: 8px 0 0;
  padding: 6px 0 6px 24px;
  border-left: 4px solid #5a5a57;
}

.quote-card p {
  max-width: 1040px;
}

.quote-card footer {
  margin-top: 20px;
  font-size: 1.06rem;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .page-frame {
    width: min(var(--content), calc(100% - 32px));
  }

  .staging-banner {
    margin-left: 0;
    margin-right: 0;
  }

  .page-title-wrap,
  .notion-layout {
    padding-left: 32px;
    padding-right: 32px;
  }

  .crest {
    margin-left: 32px;
  }

  .notion-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sidebar {
    position: static;
  }

  .sidebar-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 0 16px;
  }

  .topbar-actions {
    gap: 14px;
    font-size: 1.2rem;
  }

  .cover {
    min-height: 170px;
    height: 45vw;
  }

  .cover-tower {
    width: 96px;
    height: 172px;
    bottom: 12px;
  }

  .cover-spire {
    height: 28px;
  }

  .cover-roof {
    top: 16px;
    border-left-width: 28px;
    border-right-width: 28px;
    border-bottom-width: 38px;
  }

  .cover-belfry {
    top: 54px;
    width: 68px;
    height: 58px;
    border-width: 5px;
  }

  .cover-belfry span {
    top: 8px;
    width: 14px;
    height: 34px;
    border-width: 3px;
  }

  .cover-belfry span:first-child {
    left: 10px;
  }

  .cover-belfry span:last-child {
    right: 10px;
  }

  .cover-base {
    top: 112px;
    width: 78px;
    height: 48px;
  }

  .page-frame {
    width: 100%;
  }

  .staging-banner {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .crest {
    width: 92px;
    height: 108px;
    margin-top: -52px;
    margin-left: 16px;
  }

  .crest-cross::before {
    top: 20px;
    width: 12px;
    height: 58px;
  }

  .crest-cross::after {
    top: 34px;
    width: 38px;
    height: 9px;
    box-shadow:
      0 -12px 0 0 #f3cf49,
      0 12px 0 0 #f3cf49;
  }

  .page-title-wrap,
  .notion-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .page-summary {
    font-size: 1rem;
  }

  .sidebar-toggle {
    padding: 18px 16px;
  }

  .sidebar-menu {
    display: none;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 8px;
  }

  .sidebar-menu.is-open {
    display: grid;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .content-stack {
    gap: 42px;
    margin-top: 36px;
  }

  .notion-card h2,
  .callout-card h2,
  .quote-card p {
    font-size: 1.8rem;
  }

  .notion-card p,
  .callout-card p {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .callout-block {
    padding: 24px 20px;
  }

  .callout-block a {
    align-items: flex-start;
  }
}
