/* Ravenful — ravenful.com
   Fonts are self-hosted (SIL Open Font License, see fonts/OFL-*.txt). */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens */
:root {
  --paper: #F6F5F1;
  --surface: #ECEAE4;
  --ink: #111214;
  --text: #34353A;
  --muted: #6C6D72;
  --line: #DCD9D2;
  --card: #111214;
  --card-text: #E9E7E1;
  --card-muted: #96958F;
  --card-line: #2B2C30;
  /* the raven's sheen: blue, violet, green */
  --sheen: linear-gradient(100deg, #2F4C8A 0%, #5B4790 50%, #23706A 100%);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E0F11;
    --surface: #1B1C20;
    --ink: #F1EFEA;
    --text: #C9C7C1;
    --muted: #8C8B86;
    --line: #25262B;
    --card: #16171A;
    --card-text: #E9E7E1;
    --card-muted: #8C8B86;
    --card-line: #2B2C31;
    --sheen: linear-gradient(100deg, #9DB3EA 0%, #B5A2E6 50%, #86CBC2 100%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 4px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--muted); }

.arrow {
  width: 0.9em;
  height: 0.9em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

a:hover .arrow { transform: translate(2px, -2px); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.wordmark {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.wordmark em { font-style: italic; }

h1 em {
  font-style: italic;
  background: var(--sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em; /* keeps the italic's last letter inside the gradient */
}

nav {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-size: 15px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Hero */
.hero {
  padding-top: clamp(64px, 11vw, 150px);
  padding-bottom: clamp(80px, 11vw, 150px);
}

.eyebrow,
.label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow { margin-bottom: 28px; }

h1 {
  font-size: clamp(46px, 7.6vw, 100px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 12em;
}

.lede {
  max-width: 34em;
  margin-top: 32px;
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.button:hover { opacity: 0.86; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s ease;
}

.text-link:hover { text-decoration-color: currentColor; }

/* Sections */
.section {
  padding-bottom: clamp(80px, 10vw, 136px);
}

.section::before,
.site-footer::before {
  content: "";
  display: block;
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}

.section > .label { margin-bottom: clamp(40px, 6vw, 72px); }

.section h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}

.prose {
  display: grid;
  gap: 18px;
  max-width: 36em;
  font-size: 18px;
}

/* Product */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "head  features"
    "intro features"
    "foot  features";
  column-gap: clamp(32px, 6vw, 88px);
  background: var(--card);
  color: var(--card-text);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--card-line);
}

.product-head { grid-area: head; }
.product-intro { grid-area: intro; }
.features { grid-area: features; }
.product-foot { grid-area: foot; align-self: end; }

.product-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-head img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.product h2 {
  color: var(--card-text);
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
}

.product-tagline {
  margin-top: 6px;
  color: var(--card-muted);
}

.product-intro {
  max-width: 36em;
  margin-top: clamp(32px, 4vw, 48px);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}

.features {
  list-style: none;
  counter-reset: feature;
  margin: 0;
  padding: 0;
  align-self: start;
}

.features li:last-child { border-bottom: 1px solid var(--card-line); }

.features li {
  counter-increment: feature;
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 16px 0;
  border-top: 1px solid var(--card-line);
}

.features li::before {
  content: counter(feature, decimal-leading-zero);
  color: var(--card-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--card-line);
  color: var(--card-muted);
  font-size: 15px;
}

.product .text-link {
  color: var(--card-text);
  text-decoration-color: var(--card-line);
}

.product .text-link:hover { text-decoration-color: currentColor; }

/* About */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 56px);
  margin: clamp(56px, 8vw, 96px) 0 0;
}

.principles > div {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.principles dt {
  color: var(--ink);
  font-weight: 600;
}

.principles dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* Contact */
.email {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.2;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  text-decoration-color: var(--line);
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.2s ease;
}

.email:hover { text-decoration-color: currentColor; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer::before {
  flex-basis: 100%;
  margin-bottom: 20px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Narrow screens */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "head" "intro" "features" "foot";
  }
  .features { margin-top: 32px; }
  .features li:last-child { border-bottom: 0; }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .site-header { padding-block: 20px; }
  .wordmark { font-size: 26px; }
  .mark { width: 32px; height: 32px; }
  .brand { gap: 10px; }
  nav { gap: 16px; font-size: 14px; }
  .product-head { gap: 16px; }
  .product-head img { width: 52px; height: 52px; border-radius: 12px; }
}
