/* Sierra Blanca Ventures LLC — site styles */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gypsum: #f6f6f2;       /* page */
  --ink: #1d2230;          /* text */
  --slate: #565d6c;        /* secondary text */
  --rule: #d8d9d1;         /* hairlines */
  --shadow: #2f4a6b;       /* mountain-shadow blue: links, ridge */
  --snow: #ffffff;         /* snowcap */
  --ridge-far: #c9cdd0;

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 40rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gypsum: #161a22;
    --ink: #e8e8e2;
    --slate: #a3a8b3;
    --rule: #2c323e;
    --shadow: #9dbbe0;
    --snow: #e8e8e2;
    --ridge-far: #333a47;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--gypsum);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: var(--shadow); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--shadow); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  padding: 1.75rem 0 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.005em;
}
.brand svg { width: 28px; height: 20px; flex: none; }
.site-nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.site-nav a { color: var(--slate); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Hero (home) */
.hero { padding-top: 4.5rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
}
.hero p {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 32rem;
  margin: 0;
}

.ridge {
  display: block;
  width: 100%;
  height: auto;
  margin: 3rem 0 0;
}
.ridge .far { fill: none; stroke: var(--ridge-far); stroke-width: 1.5; }
.ridge .near { fill: none; stroke: var(--shadow); stroke-width: 2; stroke-linejoin: round; }
.ridge .cap { fill: var(--snow); stroke: var(--shadow); stroke-width: 2; stroke-linejoin: round; }

/* Page body */
main { padding-bottom: 4rem; }

.page-head { padding: 4rem 0 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.page-head p { color: var(--slate); margin: 0 0 1rem; font-size: 1.1rem; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 2.75rem 0 0.75rem;
}
p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }

/* Properties list */
.properties { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.properties li {
  padding: 1.4rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.properties h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 0.15rem;
}
.properties h3 a { color: var(--ink); text-decoration: none; }
.properties h3 a:hover { color: var(--shadow); text-decoration: underline; }
.properties .domain { font-size: 0.9rem; color: var(--slate); margin: 0 0 0.5rem; }
.properties p:last-child { margin: 0; }

/* Company facts */
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 2rem; }
.facts dt { color: var(--slate); font-size: 0.95rem; }
.facts dd { margin: 0; }
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.75rem; }
}

.email-big {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 4.2vw, 1.6rem);
  overflow-wrap: anywhere;
}

.updated { color: var(--slate); font-size: 0.95rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--slate); }

@media (prefers-reduced-motion: no-preference) {
  .ridge .near, .ridge .cap {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: draw 1.6s ease-out 0.2s forwards;
  }
  .ridge .cap { animation-delay: 0.9s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
