/* Asmar web theme: classic editorial, modern layout, physical 3D depth.
   Paper and ink palette, serif display type, hard offset shadows that
   make every surface sit above the page like printed card stock. */

:root {
  --paper: #f7f2e9;
  --paper-deep: #efe7d8;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --accent: #d64524;   /* vermilion */
  --accent-deep: #b0361a;
  --gold: #b98a2e;
  --card: #fffdf8;
  --line: #1c1917;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .brand {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: 1.6rem; margin-top: 2.5rem; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

main { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.4rem 5rem; }

/* ---- header: print masthead ---- */

.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.4rem;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.site-header .brand {
  font-size: 1.65rem;
  font-style: italic;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}

.site-header .brand::before {
  content: "✳";
  font-style: normal;
  color: var(--accent);
  font-size: 1.1rem;
  transform: translateY(-2px);
}

.site-header nav { display: flex; align-items: center; gap: 1.4rem; }
.site-header nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-header nav a:last-child {
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.site-header nav a:last-child:hover {
  text-decoration: none;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ---- footer: colophon ---- */

.site-footer {
  border-top: 2px solid var(--ink);
  padding: 1.8rem 1.4rem 2.2rem;
  text-align: center;
  background: var(--paper-deep);
}
.site-footer a { margin: 0 0.9rem; color: var(--ink-soft); font-size: 0.9rem; }
.site-footer::before {
  content: "✳ ✳ ✳";
  display: block;
  color: var(--gold);
  letter-spacing: 0.8em;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
}

/* ---- hero ---- */

.hero { padding: 3.2rem 0 1.2rem; }
.hero h1 { margin: 0 0 1.2rem; }
.hero h1 em, h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}
.hero .kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border: 1.5px solid var(--ink);
  background: var(--card);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

/* ---- buttons: extruded card stock, press to flatten ---- */

.button {
  display: inline-block;
  background: var(--accent);
  color: #fffdf8;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  border: 2px solid var(--ink);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  margin-right: 0.9rem;
  margin-bottom: 0.9rem;
}
.button:hover {
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}
.button:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 var(--ink);
}
.button.secondary { background: var(--card); color: var(--ink); }

/* ---- cards, plans ---- */

.plans { display: flex; gap: 1.8rem; flex-wrap: wrap; margin: 2.2rem 0; }
.plan {
  flex: 1 1 260px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.plan:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.plan:nth-child(2) { transform: rotate(0.6deg); }
.plan:nth-child(2):hover { transform: rotate(0.6deg) translate(-2px, -2px); }
.plan h2 { margin-top: 0; font-style: italic; }
.plan .price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0.4rem 0 0.6rem;
}
.plan ul { padding-left: 1.2rem; }
.plan li { margin: 0.35rem 0; }

/* generic raised panel (login box, dashboard card) */
.panel {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow);
  margin: 1.8rem 0;
  max-width: 30rem;
}
.panel h2 { margin-top: 0; }

/* ---- editorial feature list ---- */

.features { list-style: none; padding: 0; margin: 1.6rem 0; counter-reset: feat; }
.features li {
  counter-increment: feat;
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 0.9rem 0.2rem;
  border-bottom: 1.5px solid rgba(28, 25, 23, 0.18);
}
.features li::before {
  content: counter(feat, decimal-leading-zero);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
  min-width: 2.2rem;
}

/* ---- usage dashboard (C10) ---- */

.usage-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
}
.usage-table th {
  text-align: left;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid var(--ink);
}
.usage-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1.5px solid rgba(28, 25, 23, 0.18);
}
.usage-table tr.run-row { cursor: pointer; }
.usage-table tr.run-row:hover td { background: var(--card); }
.calls-table { margin: 0.4rem 0 0.8rem; font-size: 0.88rem; }
#usage-progress { accent-color: var(--accent); height: 0.8rem; }

/* ---- legal / prose pages ---- */

.muted { color: var(--ink-soft); }
main ul, main ol { padding-left: 1.3rem; }
main li { margin: 0.3rem 0; }
main hr { border: none; border-top: 1.5px solid var(--ink); margin: 2rem 0; }

dl dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 1rem;
}
dl dd { margin: 0.15rem 0 0; font-size: 1.1rem; }

/* ---- forms ---- */

input[type="email"] {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  margin-right: 0.7rem;
  margin-bottom: 0.9rem;
  box-shadow: inset 2px 2px 0 rgba(28, 25, 23, 0.08);
}
input[type="email"]:focus { outline: 3px solid var(--gold); outline-offset: 1px; }

/* ---- hero art: tilted stacked clip frames, pure CSS ---- */

.clip-stack {
  position: relative;
  height: 210px;
  margin: 2.6rem 0 1rem;
}
.clip {
  position: absolute;
  width: 180px;
  height: 120px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 22px) top / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 22px) bottom / 100% 12px no-repeat,
    var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.clip::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.5rem;
}
.clip:nth-child(1) { left: 4%; top: 38px; transform: rotate(-5deg); background-color: var(--paper-deep); }
.clip:nth-child(2) { left: 30%; top: 12px; transform: rotate(2deg); z-index: 2; }
.clip:nth-child(3) { left: 56%; top: 46px; transform: rotate(-2deg); background-color: #f3e3c8; }
.clip:hover { transform: rotate(0deg) translate(-2px, -4px); z-index: 3; }

@media (max-width: 640px) {
  .clip-stack { display: none; }
  .site-header nav { gap: 0.9rem; }
}
