/* Ash & Oak site styles. One file for all pages.
   Brand: Ash & Oak palette + Rubik site-wide; venture pages use their own palette as accents.
   Text colors come only from the contrast-safe list: #595A5C, #682061, #A35527, and white on those three. */

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/rubik-400.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/rubik-600.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/rubik-700.woff2") format("woff2"); }

:root {
  /* Ash & Oak */
  --ao-orange: #EC6D46;   /* large text / UI only */
  --ao-gold: #FAA71A;     /* decorative only */
  --ao-gray: #595A5C;     /* body text */
  --ao-taupe: #A69A96;    /* decorative only */
  --ao-blush: #DCCCC8;    /* decorative only */
  /* Radios Without Rulers */
  --rwr-plum: #682061;
  --rwr-coral: #F0635F;
  --rwr-lilac: #BD82B5;
  --rwr-mist: #CCC6CB;
  /* Refugium */
  --ref-teal: #2EBCB0;
  --ref-rust: #A35527;
  --ref-amber: #F68B1F;
  --ref-sage: #C8DBD9;

  /* Page roles (Ash & Oak defaults; venture pages override) */
  --text: var(--ao-gray);
  --heading: var(--ao-gray);
  --accent: var(--ao-orange);      /* rules, borders, focus ring */
  --accent-2: var(--ao-gold);      /* decorative */
  --button-bg: var(--ao-gray);
  --tint: #F7F2F0;                 /* light background panel */
  --border: var(--ao-blush);

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 42rem;
  --wide: 72rem;
  --radius: 6px;
}

.v-refugium {
  --heading: var(--ref-rust);
  --accent: var(--ref-teal);
  --accent-2: var(--ref-amber);
  --button-bg: var(--ref-rust);
  --tint: #EEF5F4;
  --border: var(--ref-sage);
}
.v-rwr {
  --heading: var(--rwr-plum);
  --accent: var(--rwr-coral);
  --accent-2: var(--rwr-lilac);
  --button-bg: var(--rwr-plum);
  --tint: #F5F1F4;
  --border: var(--rwr-mist);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #FFFFFF;
}
img { max-width: 100%; height: auto; display: block; }

/* Headings: Ash & Oak style = bold, sentence case, no tracking; sub-headers semi-bold */
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; margin-top: 2.2em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.6em; }
/* Venture pages: Urbane Rounded is not licensed for web, so Rubik with uppercase H1/H2 at 0.05em */
.v-refugium h1, .v-refugium h2, .v-rwr h1, .v-rwr h2 { text-transform: uppercase; letter-spacing: 0.05em; }
.v-refugium h3, .v-rwr h3 { letter-spacing: 0.02em; }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }

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

/* Skip link */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--ao-gray); color: #FFFFFF; padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

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

/* Header */
.site-header { border-bottom: 4px solid transparent; border-image: linear-gradient(90deg, #F99D39, #E05B6F) 1; background: #FFFFFF; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand img { height: 48px; width: auto; }
.brand { display: inline-block; text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav li { margin: 0; }
.site-nav a { display: inline-block; padding: 0.35rem 0; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--ao-blush); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ao-orange); }

/* Main */
main { padding-bottom: 4rem; }
.intro { padding-top: 3rem; }
.intro .lede { font-size: 1.2rem; max-width: var(--measure); }
.eyebrow { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; margin: 0 0 0.5rem; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 0.6em; }
.title-row h1 { margin: 0; }
.title-row img { height: 56px; width: auto; }
.logo-title { margin: 0 0 1rem; line-height: 1; }
.logo-title img { height: 80px; width: auto; margin-left: -16px; } /* logo files have built-in left padding */

.button { display: inline-block; background: var(--button-bg); color: #FFFFFF; font-weight: 600; font-size: 1.0625rem; text-decoration: none; padding: 0.75rem 1.4rem; border-radius: var(--radius); border: 0; border-bottom: 4px solid var(--accent); cursor: pointer; font-family: inherit; line-height: 1.3; }
.button:hover { filter: brightness(1.12); }
.button:focus-visible { outline-color: var(--text); }

.hero-photo { margin: 2rem 0 0; }
.hero-photo img { width: 100%; border-radius: var(--radius); }

section { scroll-margin-top: 1rem; }

/* Venture cards (Home) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.card { background: var(--tint); border-radius: var(--radius); border-top: 6px solid var(--ao-orange); padding: 1.25rem 1.25rem 0.5rem; }
.card h3 { margin-top: 0; }
.card--refugium { border-top-color: var(--ref-teal); background: #EEF5F4; }
.card--refugium h3 { color: var(--ref-rust); }
.card--rootworks { border-top-color: var(--ao-orange); }
.card--rwr { border-top-color: var(--rwr-plum); background: #F5F1F4; }
.card--rwr h3 { color: var(--rwr-plum); }

/* Tinted panel */
.panel { background: var(--tint); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 1.25rem 1.5rem 0.25rem; margin-top: 2.2em; max-width: var(--measure); }
.panel h2 { margin-top: 0; }

/* Steps (Rootworks) */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ao-gray); color: #FFFFFF; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* FAQ */
.faq h3 { font-size: 1.125rem; }

/* Photo grid (Radios Without Rulers): mixed shapes, so a column layout */
.photo-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; columns: 3 13rem; column-gap: 1rem; }
.photo-grid li { break-inside: avoid; margin: 0 0 1rem; }
.photo-grid img { width: 100%; border-radius: var(--radius); background: var(--tint); }

/* Form */
.form { max-width: 36rem; margin-top: 1.5rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .help { font-size: 0.95rem; margin: 0.35rem 0 0; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #FFFFFF;
  border: 2px solid var(--ao-gray); border-radius: var(--radius); padding: 0.6rem 0.75rem;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ao-orange); outline-offset: 1px; }
.hidden { display: none !important; }
.form-note { font-size: 0.95rem; margin-top: 1rem; }

.contact-list { list-style: none; padding: 0; }

/* Footer */
.site-footer { background: var(--ao-gray); color: #FFFFFF; padding: 2.5rem 0; font-size: 0.975rem; }
.site-footer a { color: #FFFFFF; text-decoration-color: var(--ao-gold); }
.site-footer :focus-visible { outline-color: #FFFFFF; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-start; }
.site-footer img { height: 40px; width: auto; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer .legal { margin-top: 0.75rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .brand img { height: 40px; }
  .intro { padding-top: 2rem; }
  .title-row img { height: 44px; }
  .logo-title img { height: 64px; margin-left: -13px; }
}
.after-panel { margin-top: 2rem; }
