
:root {
  --ground:#EDE6E4;
  --surface:#DFD7D5;
  --surface-2:#CEC5C2;
  --line:#ABA2A0;
  --ink-soft:#514C4A;
  --ink:#2B2827;
  --accent:#8F3E3D;
  --accent-ink:#FFFFFF;

  --accent-hover:#753130;
  --accent-active:#5E2625;
  --accent-subtle:rgba(143, 62, 61, 0.12);
  --accent-ring:rgba(143, 62, 61, 0.35);

  --jeda-bc0:"Playfair Display", 'Playfair Display Fallback', Georgia, serif;
  --jeda-4e6:"Archivo", "Archivo Fallback", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --jeda-3e7:'JetBrains Mono', "JetBrains Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --jeda-34d:78rem;
  --jeda-654:clamp(1.25rem, 4vw, 3rem);

  --space-3xs:clamp(0.25rem, 0.5vw, 0.375rem);
  --space-2xs:clamp(0.5rem, 1vw, 0.625rem);
  --space-xs:clamp(0.75rem, 1.5vw, 1rem);
  --space-sm:clamp(1rem, 2vw, 1.375rem);
  --space-md:clamp(1.5rem, 3vw, 2rem);
  --space-lg:clamp(2rem, 4vw, 3rem);
  --space-xl:clamp(3rem, 6vw, 4.5rem);
  --space-2xl:clamp(4rem, 8vw, 6.5rem);

  --radius-xs:2px;

  --radius-sm:4px;
  --radius-md:6px;
  --radius-lg:8px;
  --radius-full:9999px;

  --shadow-sm:0 1px 2px rgba(43, 40, 39, 0.05);
  --shadow-md:0 4px 12px rgba(43, 40, 39, 0.08);
  --shadow-lg:0 12px 32px rgba(43, 40, 39, 0.12);
  --shadow-dock:0 -2px 10px rgba(43, 40, 39, 0.06);

  --dur-fast:140ms;
  --dur-med:240ms;
  --dur-slow:420ms;
  --ease-standard:cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);

  --step--1:clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);
  --jeda-c04:clamp(0.9375rem, 0.89rem + 0.24vw, 1.0625rem);
  --jeda-7c1:clamp(1.125rem, 1.05rem + 0.38vw, 1.3125rem);
  --jeda-191:clamp(1.375rem, 1.25rem + 0.63vw, 1.6875rem);
  --jeda-802:clamp(1.75rem, 1.52rem + 1.15vw, 2.25rem);
  --jeda-539:clamp(2.125rem, 1.82rem + 1.52vw, 2.875rem);
  --jeda-753:clamp(2.625rem, 2.2rem + 2.13vw, 3.625rem);
  --jeda-eea:clamp(3.125rem, 2.6rem + 2.62vw, 4.5rem);

  --header-height:4.5rem;
  --dock-height:4.25rem;
}

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

html {
  font-size:100%;
  scroll-behavior:smooth;
  scroll-padding-block-start:var(--header-height);
  -webkit-text-size-adjust:100%;
  tab-size:4;
  background-color:var(--ground);
  color:var(--ink);
}

body {
  font-family:var(--jeda-4e6);
  font-size:var(--jeda-c04);
  font-weight:400;
  line-height:1.65;
  color:var(--ink);
  background-color:var(--ground);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding-bottom:var(--dock-height);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

img, picture, svg, video {
  display:block;

  max-width:100%;
  height:auto;
}

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

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

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

a {
  color:inherit;
  text-decoration-skip-ink:auto;
}

table {
  border-collapse:collapse;
  border-spacing:0;
}

ul, ol { list-style:none; }

h1, h2, h3, h4, h5, h6 {
  font-family:var(--jeda-bc0);
  font-weight:600;
  line-height:1.18;
  color:var(--ink);
  text-wrap:balance;
  overflow-wrap:break-word;
  word-break:normal;
  letter-spacing:-0.015em;
}

h1 {
  font-size:var(--jeda-753);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-0.02em;
}

h2 {
  font-size:var(--jeda-802);
  line-height:1.2;
}

h3 {
  font-size:var(--jeda-191);
  line-height:1.25;
}

h4 {
  font-size:var(--jeda-7c1);
  line-height:1.3;
}

p {

  max-width:65ch;
  text-wrap:pretty;
}

p + p { margin-top:1rem; }

small { font-size:var(--step--1); }

strong, b { font-weight:600; }

em, i { font-style:italic; }

hr {
  border:0;
  border-top:1px solid var(--line);
  margin:var(--space-md) 0;
}

.num, [data-num], .tabular-figure {
  font-family:var(--jeda-3e7);
  font-variant-numeric:tabular-nums;
  font-weight:500;
  letter-spacing:-0.02em;
}

.shell {
  width:100%;
  max-width:var(--jeda-34d);
  margin-left:auto;
  margin-right:auto;
  padding-left:var(--jeda-654);
  padding-right:var(--jeda-654);
}

.shell-sm {
  width:100%;
  max-width:54rem;
  margin-left:auto;
  margin-right:auto;
  padding-left:var(--jeda-654);
  padding-right:var(--jeda-654);
}

.prose { max-width:65ch; }

.prose p {
  margin-bottom:1.25rem;
  color:var(--ink);
}

.prose p.lead {
  font-size:var(--jeda-7c1);
  line-height:1.5;
  color:var(--ink);
  margin-bottom:1.75rem;
}

.prose h2 {
  margin-top:2.5rem;
  margin-bottom:1rem;
}

.prose h3 {
  margin-top:2rem;
  margin-bottom:0.75rem;
}

.prose ul, .prose ol { margin:1.25rem 0 1.5rem 1.25rem; }

.prose ul { list-style-type:disc; }

.prose ol { list-style-type:decimal; }

.prose li {
  margin-bottom:0.5rem;
  padding-left:0.25rem;
}

.prose blockquote {
  border-left:3px solid var(--accent);
  padding:0.75rem 0 0.75rem 1.5rem;
  margin:2rem 0;
  font-style:italic;
  font-family:var(--jeda-bc0);
  font-size:var(--jeda-7c1);
  color:var(--ink);
}

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

.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;
}

.skip-link {
  position:absolute;
  top:-100px;
  left:1rem;
  z-index:9999;
  background-color:var(--ink);
  color:var(--accent-ink);
  padding:0.75rem 1.25rem;
  border-radius:var(--radius-sm);
  font-weight:600;
  font-size:var(--step--1);
  text-decoration:none;
  box-shadow:var(--shadow-lg);
  transition:top var(--dur-fast) var(--ease-standard);
}

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

@view-transition {
  navigation:auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration:280ms;
    animation-timing-function:cubic-bezier(0.16, 1, 0.3, 1);
  }

  ::view-transition-old(hero),
  ::view-transition-new(hero) {
    animation-duration:360ms;
    animation-timing-function:cubic-bezier(0.16, 1, 0.3, 1);
  }

  ::view-transition-old(header-brand),
  ::view-transition-new(header-brand) { animation-duration:200ms; }
}

.brand img { view-transition-name:header-brand; }

[data-opening] figure:first-child,
[data-opening] figure:first-child img,
figure[data-opening],
figure[data-opening] img { view-transition-name:hero; }

[data-opening] h1 { view-transition-name:hero-title; }

@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;
  }

  html { scroll-behavior:auto; }
}
