:root {
  color-scheme: dark;
  --ink: #f2e8cf;
  --ink-muted: #cbbf9d;
  --ink-soft: #a99d81;
  --page: #15191c;
  --panel: #202020;
  --panel-raised: #292724;
  --slate: #253137;
  --slate-deep: #111719;
  --brass: #c79a4b;
  --brass-light: #e0bd73;
  --line: rgba(224, 189, 115, 0.24);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --content: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(199, 154, 75, 0.12), transparent 34rem),
    linear-gradient(135deg, var(--slate-deep), var(--page) 42%, #1d1a17);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: var(--content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  padding: 24px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-sigil {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(199, 154, 75, 0.24), rgba(37, 49, 55, 0.65));
  color: var(--brass-light);
  font-size: 1.1rem;
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--ink-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--brass-light);
}

.hero-section {
  width: var(--content);
  min-height: calc(100vh - 98px);
  margin: 0 auto;
  padding: 64px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.68fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

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

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  color: var(--ink);
  font-size: 1.28rem;
}

.hero-subhead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--ink-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: #15110a;
}

.button-secondary {
  background: rgba(242, 232, 207, 0.06);
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-art {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.manuscript-card {
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(242, 232, 207, 0.12), rgba(199, 154, 75, 0.04)),
    var(--panel-raised);
  box-shadow: var(--shadow);
}

.artifact-label {
  display: block;
  margin-bottom: 44px;
  color: var(--ink-soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.artifact-line {
  display: block;
  height: 2px;
  width: 72%;
  margin: 18px 0;
  background: rgba(224, 189, 115, 0.42);
}

.artifact-line-wide {
  width: 100%;
}

.artifact-line-short {
  width: 48%;
}

.quill-mark {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 130px;
  height: 18px;
  border-radius: 999px;
  background: var(--brass-light);
  transform: rotate(-34deg);
  transform-origin: center;
  box-shadow: 0 0 34px rgba(224, 189, 115, 0.2);
}

.quill-mark::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 9px;
  width: 86px;
  height: 120px;
  border-radius: 72% 0 72% 0;
  background: linear-gradient(150deg, rgba(242, 232, 207, 0.86), rgba(199, 154, 75, 0.2));
  transform: rotate(16deg);
}

.section-band {
  padding: 88px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(17, 23, 25, 0.48);
  border-top: 1px solid rgba(224, 189, 115, 0.12);
}

.section-band-muted {
  background: rgba(32, 32, 32, 0.62);
}

.section-heading {
  margin-bottom: 34px;
}

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

.promise-card,
.project-item,
.simple-panel {
  border: 1px solid rgba(224, 189, 115, 0.18);
  border-radius: 8px;
  background: rgba(242, 232, 207, 0.055);
}

.promise-card {
  min-height: 220px;
  padding: 24px;
}

.promise-card p,
.project-item p,
.philosophy-section p,
.simple-panel p {
  color: var(--ink-muted);
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-item {
  padding: 26px;
  display: grid;
  grid-template-columns: 180px minmax(180px, 0.5fr) minmax(240px, 1fr);
  align-items: baseline;
  gap: 18px;
}

.project-kicker {
  color: var(--brass-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-item p {
  margin: 0;
}

.philosophy-section {
  width: var(--content);
  margin: 0 auto;
  padding: 96px 0;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 48px;
  align-items: start;
}

.philosophy-section > p {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(224, 189, 115, 0.14);
  color: var(--ink-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.simple-page {
  width: var(--content);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 72px;
  display: grid;
  align-content: center;
  gap: 36px;
}

.simple-panel {
  max-width: 760px;
  padding: clamp(26px, 6vw, 56px);
  box-shadow: var(--shadow);
}

.simple-panel h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
}

.simple-panel p {
  margin: 22px 0 28px;
  font-size: 1.12rem;
}

@media (max-width: 900px) {
  .hero-section,
  .philosophy-section {
    grid-template-columns: 1fr;
  }

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

  .hero-art {
    min-height: 320px;
    place-items: start center;
  }

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

  .project-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --content: min(100vw - 24px, 1120px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .site-footer nav {
    justify-content: flex-start;
  }

  .hero-section {
    padding-bottom: 56px;
    gap: 32px;
  }

  h1 {
    font-size: 3rem;
  }

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

  .section-band,
  .philosophy-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
