/* Shared visual identity across hiadamhere.github.io and its project pages. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-sans-regular.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/dm-sans-bold.ttf") format("truetype");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-serif-italic.ttf") format("truetype");
}

:root {
  color-scheme: light dark;
  --paper: light-dark(#f8f7f2, #1c201c);
  --surface: light-dark(#fffef9, #242a23);
  --ink: light-dark(#292c29, #ecece1);
  --muted: light-dark(#65675e, #afb5a8);
  --line: light-dark(#ddded4, #3e453b);
  --coral: light-dark(#dc583b, #ee9174);
  --sage: light-dark(#e2eadc, #2f392d);
  --peach: light-dark(#f4ddd1, #3d302b);
  --sand: light-dark(#eee9d9, #37352a);
  --blue: light-dark(#e4ecf3, #2c3640);
  --green-ink: light-dark(#3f6343, #b3d2a4);
  --card-text: light-dark(#555b51, #c2c5b7);
  --card-border: light-dark(#292c2926, #ecece130);
  --code-bg: light-dark(#eeefe7, #171c18);
  --code-ink: light-dark(#30372f, #e0e6d7);
  --focus: light-dark(#a33720, #efac8e);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #f1baa4;
  color: #292c29;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  border-radius: 3px;
}
svg {
  display: block;
}
code,
pre {
  font-family: var(--mono);
}
code {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  font-size: 0.88em;
}
pre {
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  overflow: auto;
  font-size: 0.88rem;
  line-height: 1.9;
}
pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.wrap {
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
}
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* Site navigation, shared with the other project pages. */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.site-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.site-nav a {
  color: var(--ink);
  padding-block: 8px;
}
.site-nav a:hover {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.portfolio-mark {
  color: var(--coral);
  font-size: 1.5rem;
  line-height: 1;
}
.theme-picker {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 24px;
  flex-shrink: 0;
}
.theme-picker[hidden] {
  display: none;
}
.theme-picker button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
}
.theme-picker button:hover {
  color: var(--ink);
}
.theme-picker button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--line);
}
.theme-picker .icon {
  width: 16px;
  height: 16px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Hero */
.hero {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(58px, 7.8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -5px;
  margin: 0 0 22px;
}
.hero h1 .heading-dot {
  color: var(--coral);
}
.hero h1 em {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.42em;
  letter-spacing: -1px;
  color: var(--coral);
  margin-left: 14px;
  white-space: nowrap;
}
.intro {
  font-size: 21px;
  line-height: 1.65;
  letter-spacing: -0.35px;
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}
.intro strong {
  color: var(--ink);
  font-weight: 700;
}
.intro a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.intro a:hover {
  color: var(--coral);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--sage);
}
.btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn.primary:hover {
  background: var(--green-ink);
  border-color: var(--green-ink);
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.install {
  margin-top: 30px;
  max-width: 680px;
}
.note {
  color: var(--card-text);
  font-size: 13px;
  line-height: 1.75;
  margin: 14px 0 0;
}

/* Sections */
section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1.15;
  margin: 14px 0 12px;
}
section h2 em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--coral);
  letter-spacing: -1px;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 26px;
  max-width: 660px;
}

/* Agent table */
.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 26px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td code {
  white-space: nowrap;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 27px 30px 24px;
  min-width: 0;
}
.card.peach {
  background: var(--peach);
}
.card.sage {
  background: var(--sage);
}
.card.sand {
  background: var(--sand);
}
.card.blue {
  background: var(--blue);
}
.card h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 8px 0 12px;
}
.card p {
  color: var(--card-text);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.card pre {
  background: light-dark(#ffffff70, #00000030);
  border-color: var(--card-border);
  margin: 0;
}
.card code {
  background: light-dark(#ffffff80, #00000030);
  color: inherit;
}

.site-footer {
  margin-top: 6px;
  padding: 30px 0 60px;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero h1 {
    letter-spacing: -3.6px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero {
    padding-top: 30px;
  }
  .hero h1 {
    font-size: clamp(48px, 12vw, 72px);
  }
  .hero h1 em {
    display: block;
    margin: 10px 0 0;
    font-size: 0.42em;
  }
  .intro {
    font-size: 18px;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .card {
    padding: 24px;
  }
  .table-card {
    padding-inline: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
