
:root {
  --ground: #4a1f22;
  --surface: #5b272b;
  --surface-2: #6f3337;
  --line: #915255;
  --ink-soft: #d0aeae;
  --ink: #fce0e0;
  --accent: #c2a262;
  --accent-ink: #111111;

  --vazu-3b9: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, "Times New Roman", serif;
  --vazu-b4f: "Roboto Slab", "Roboto Slab Fallback", "Rockwell", serif;
  --vazu-8de: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
  --text-sm: clamp(0.84rem, 0.82rem + 0.15vw, 0.92rem);
  --text-base: clamp(0.98rem, 0.95rem + 0.22vw, 1.08rem);
  --text-md: clamp(1.12rem, 1.08rem + 0.3vw, 1.25rem);
  --text-lg: clamp(1.28rem, 1.22rem + 0.45vw, 1.48rem);
  --text-xl: clamp(1.52rem, 1.42rem + 0.75vw, 1.84rem);
  --text-2xl: clamp(1.85rem, 1.7rem + 1.2vw, 2.35rem);
  --text-3xl: clamp(2.25rem, 2rem + 1.8vw, 3.1rem);
  --text-display: clamp(2.75rem, 2.35rem + 2.6vw, 4.2rem);

  --line-height-tight: 1.12;
  --line-height-snug: 1.24;
  --line-height-base: 1.62;
  --line-height-loose: 1.78;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-section: clamp(3.5rem, 3rem + 3.5vw, 6.5rem);

  --content-max: 76rem;
  --reading-max: 65ch;
  --dock-height: 4.25rem;

  --duration-fast: 140ms;
  --duration-medium: 220ms;
  --duration-slow: 380ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --radius-none: 0px;
  --radius-subtle: 2px;

  --shadow-hairline: 0 1px 0 0 var(--line);
  --shadow-dock: 0 -4px 18px rgba(18, 5, 7, 0.45);
  --shadow-card: 0 4px 20px rgba(22, 6, 8, 0.35);
  --shadow-elevated: 0 12px 36px rgba(18, 5, 7, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--ground);
  color: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  font-family: var(--vazu-b4f);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--line-height-base);
  background-color: var(--ground);
  color: var(--ink);

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

@media (max-width: 48rem) {
  input,
  select,
  textarea { font-size: max(16px, 1rem) !important; }
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol { list-style: none; }

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--vazu-3b9);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.08;
}

h2 {
  font-size: var(--text-3xl);
  line-height: var(--line-height-tight);
}

h3 {
  font-size: var(--text-2xl);
  line-height: var(--line-height-snug);

}

h4 {
  font-size: var(--text-xl);
  line-height: var(--line-height-snug);
}

h5 {
  font-size: var(--text-lg);
  font-weight: 500;
}

h6 {
  font-size: var(--text-md);
  font-weight: 500;
}

p {
  max-width: var(--reading-max);
  text-wrap: pretty;
  margin-bottom: var(--space-md);
}

p:last-child { margin-bottom: 0; }

small {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

strong,
b {
  font-weight: 600;
  color: var(--ink);
}

em,
i { font-style: italic; }

code,
kbd,
samp,
pre {
  font-family: var(--vazu-8de);
  font-size: 0.9em;
}

.tabular-numbers,
[data-tabular] {
  font-family: var(--vazu-8de);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

.prose {
  max-width: var(--reading-max);
  color: var(--ink);
}

.prose p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-base);
}

.prose h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.prose ul { list-style: square; }

.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-base);
}

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-family: var(--vazu-3b9);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--ink);
}

.prose hr {
  border: 0;
  height: 1px;
  background-color: var(--line);
  margin: var(--space-2xl) 0;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--duration-fast) var(--ease-standard);
}

.prose a:hover { color: var(--ink); }

.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 1000;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-family: var(--vazu-8de);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-subtle);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.layout-shell {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 0.6rem + 1.8vw, 2.5rem);
  padding-right: clamp(1rem, 0.6rem + 1.8vw, 2.5rem);
}

.layout-shell-wide {
  width: 100%;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 0.6rem + 1.8vw, 2.5rem);
  padding-right: clamp(1rem, 0.6rem + 1.8vw, 2.5rem);
}

.layout-shell-narrow {
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 0.6rem + 1.8vw, 2.5rem);
  padding-right: clamp(1rem, 0.6rem + 1.8vw, 2.5rem);
}

.section-pad {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section-pad-top { padding-top: var(--space-section); }

.section-pad-bottom { padding-bottom: var(--space-section); }

.drawn-line { position: relative; }

.drawn-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.25rem;
  width: 1px;
  background-color: var(--line);
  z-index: 1;
}

@media (min-width: 768px) {
  .drawn-line::before { left: 2rem; }
}

.drawn-marker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding-left: 2.75rem;
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .drawn-marker { padding-left: 4.5rem; }
}

.drawn-marker::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0.45rem;
  width: 9px;

  height: 9px;
  background-color: var(--accent);
  border: 2px solid var(--ground);
  transform: rotate(45deg);
  z-index: 3;
}

@media (min-width: 768px) {
  .drawn-marker::before {
    left: 1.7rem;
    width: 11px;
    height: 11px;
  }
}

.drawn-marker-content {
  flex: 1 1 0;
  min-width: 0;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-xl {
  width: 2rem;
  height: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
