:root {
  --bg: #0b0a08;
  --panel: rgba(26, 23, 18, 0.88);
  --panel-hover: rgba(38, 33, 25, 0.96);

  --text: #f3ecdf;
  --muted: #a99f8e;
  --gold: #c8a96b;
  --gold-soft: rgba(200, 169, 107, 0.18);

  --border: rgba(200, 169, 107, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(circle at 50% -10%, #31291c 0%, #17130e 35%, #0b0a08 75%);

  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.page {
  width: min(1180px, 92%);
  margin: auto;

  padding: 8vh 0 50px;
}

.hero {
  text-align: center;
  margin-bottom: 55px;
}

.eyebrow {
  color: var(--gold);

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.34em;

  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(42px, 6vw, 76px);

  font-weight: 400;

  letter-spacing: -0.035em;
}

.hero p {
  max-width: 650px;

  margin: 18px auto 0;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.6;
}

.services {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(260px, 1fr)
    );

  gap: 18px;
}

.card {
  position: relative;

  display: flex;

  gap: 20px;

  min-height: 165px;

  padding: 27px;

  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius: 20px;

  background: var(--panel);

  color: inherit;

  text-decoration: none;

  backdrop-filter: blur(8px);

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

a.card:hover {
  transform: translateY(-5px);

  background: var(--panel-hover);

  border-color:
    rgba(
      200,
      169,
      107,
      0.38
    );

  box-shadow:
    0 14px 40px
    rgba(0,0,0,0.24);
}

.icon {
  flex-shrink: 0;

  width: 44px;
  height: 44px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--gold-soft);

  color: var(--gold);

  font-family: Georgia, serif;

  font-size: 25px;
}

.card h2 {
  margin: 0 0 8px;

  font-family: Georgia, serif;

  font-size: 25px;

  font-weight: 400;
}

.card p {
  margin: 0 0 17px;

  color: var(--muted);

  line-height: 1.45;
}

.card span {
  color: var(--gold);

  font-size: 13px;

  letter-spacing: 0.035em;
}

.disabled {
  opacity: 0.48;

  cursor: default;

  filter: saturate(0.75);
}

.disabled::after {
  content: "COMING SOON";

  position: absolute;

  top: 14px;
  right: 14px;

  padding: 5px 8px;

  border-radius: 7px;

  background:
    rgba(
      200,
      169,
      107,
      0.10
    );

  color: var(--gold);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.12em;
}

.librarian {
  grid-column: span 2;

  background:
    linear-gradient(
      135deg,
      rgba(55,45,29,0.82),
      rgba(22,19,15,0.90)
    );

  border-color:
    rgba(
      200,
      169,
      107,
      0.28
    );
}

footer {
  margin-top: 50px;

  text-align: center;

  color: #746c60;

  font-size: 12px;

  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  .page {
    width: min(94%, 600px);
    padding-top: 45px;
  }

  .hero {
    margin-bottom: 34px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero p {
    font-size: 15px;
  }

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

  .librarian {
    grid-column: span 1;
  }

  .card {
    min-height: 135px;
    padding: 22px;
  }
}
