/* RAM Guy Associates
   Direction chosen 15 October 2026: Lilac layout with a photo hero, the Wix site's palette
   warmed with forest green and walnut brown, Fraunces over Wix Madefor Text.
   Reference build: explore/round-4/lilac-hero.html. Rules in CLAUDE.md. */

:root {
  /* Grounds and panels */
  --ground: #FDFBF7;
  --stone: #F2F1EC;
  --sand: #E3D5CA;
  --sand-soft: #EFE7DF;
  --sky: #D5E3E3;

  /* Greens */
  --forest-ink: #1A2E22;
  --forest: #2D4A3A;
  --sage: #56635A;
  --sage-light: #C4C8C2;
  --on-forest-soft: #E6EBE6;

  /* Browns */
  --walnut: #5B3E2C;
  --walnut-deep: #3F2A1E;
  --sand-muted: #C9B8A8;
  --on-photo-soft: #E6DDD4;

  /* The hero scrim color. See the hero photo rule in CLAUDE.md before changing the .shade gradients. */
  --scrim: 35, 24, 16;

  --display: "Fraunces", Georgia, serif;
  --text: "Wix Madefor Text", system-ui, sans-serif;

  --r-lg: 36px;
  --r: 24px;
  --edge: clamp(24px, 5vw, 64px);
  --gap: 12px;
}

/* Base */
* { box-sizing: border-box; }
html { interpolate-size: allow-keywords; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--forest-ink); font-family: var(--text); font-size: 1.125rem; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; }
h2 { color: var(--forest); }
[id] { scroll-margin-top: 104px; }

a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 999px; }
.hero a:focus-visible, .top:not(.solid) a:focus-visible, .contact a:focus-visible, .foot a:focus-visible, details[open] summary:focus-visible { outline-color: var(--sand); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--forest); color: var(--ground); padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.btn.light { background: var(--ground); color: var(--forest-ink); }
.btn.light:hover { background: var(--sand); }
.btn.ghost { color: var(--ground); box-shadow: inset 0 0 0 1.5px rgba(253,251,247,.7); }
.btn.ghost:hover { background: rgba(253,251,247,.14); }
.btn.forest { background: var(--forest); color: var(--ground); }
.btn.forest:hover { background: var(--walnut); }
.btn.outline { color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn.outline:hover { background: var(--sand-soft); }

/* Photo placeholders. Each one names the photo that belongs there.
   To fill one: swap the .ph div for <img src="/assets/img/..." alt="..."> in the same spot. */
.ph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 24px; text-align: center; border-radius: inherit;
  background: repeating-linear-gradient(135deg, var(--sand-soft) 0 14px, #EAE0D6 14px 28px); color: var(--walnut); }
.ph::before { content: ""; width: 30px; height: 30px; margin-bottom: 4px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.5-2h7L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.5-2h7L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph span { font-weight: 600; font-size: 1rem; }
.ph small { font-size: 0.95rem; max-width: 26ch; line-height: 1.4; }
details .ph { background: repeating-linear-gradient(135deg, rgba(253,251,247,.10) 0 14px, rgba(253,251,247,.04) 14px 28px); color: var(--sand-soft); }

/* Header. Without JavaScript it sits over the hero and scrolls away.
   With JavaScript (html.js) it stays fixed and turns solid once the hero is gone. */
.top {
  position: absolute; z-index: 20; top: var(--gap); left: var(--gap); right: var(--gap);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 20px var(--edge); border-radius: var(--r-lg) var(--r-lg) 0 0;
  color: var(--ground); transition: background .3s, color .3s, box-shadow .3s, padding .3s, border-radius .3s;
}
html.js .top { position: fixed; }
.top.solid { background: rgba(253,251,247,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--forest-ink); padding-top: 10px; padding-bottom: 10px; border-radius: 999px; box-shadow: 0 1px 2px rgba(26,46,34,.06), 0 10px 30px rgba(26,46,34,.10); }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; text-decoration: none; justify-self: start; white-space: nowrap; }
.links { display: flex; gap: 4px; }
.links a { text-decoration: none; padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.links a:hover { background: rgba(253,251,247,.16); }
.top.solid .links a:hover { background: var(--stone); }
.top .cta { justify-self: end; }
.top.solid .cta { background: var(--forest); color: var(--ground); }
.top.solid .cta:hover { background: var(--walnut); }

/* Hero: a full-bleed photo with the copy over it */
.hero { position: relative; margin: var(--gap); border-radius: var(--r-lg); overflow: hidden; min-height: min(calc(100svh - 24px), 920px); display: flex; align-items: flex-end; color: var(--ground); background: var(--walnut-deep); }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero .shade { position: absolute; inset: 0; background:
  linear-gradient(to bottom, rgba(var(--scrim), .8) 0, rgba(var(--scrim), .7) 70px, rgba(var(--scrim), 0) 190px),
  linear-gradient(to right, rgba(var(--scrim), .6) 0%, rgba(var(--scrim), .4) 42%, rgba(var(--scrim), 0) 72%),
  linear-gradient(to top, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .72) 34%, rgba(var(--scrim), .42) 60%, rgba(var(--scrim), .06) 88%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding: 160px var(--edge) clamp(28px, 4vw, 52px); display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: end; }
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 6.2rem); line-height: 0.98; max-width: 13ch; }
.hero .lede { margin-top: 22px; font-size: 1.25rem; max-width: 40ch; color: var(--sand-soft); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Ron as a thumbnail card in the hero */
.ron { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px; border-radius: 22px; background: rgba(var(--scrim), .58); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(253,251,247,.2); max-width: 380px; }
.ron img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; object-position: 50% 14%; flex: none; }
.ron b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.2; }
.ron span { display: block; font-size: 0.95rem; color: var(--on-photo-soft); }
.ron a { display: inline-block; margin-top: 4px; font-weight: 600; text-underline-offset: 0.2em; }

/* Light hero: for light, calm photos. Add class="light" to .hero and class="light-hero" to body.
   An off-white wash replaces the dark scrim and the text turns forest. Tuned so every line passes
   WCAG AA even over a pure black photo; check new photos with scripts/hero-contrast.js. */
.hero.light { color: var(--forest-ink); background: var(--stone); }
.hero.light .shade { background:
  linear-gradient(to bottom, rgba(253,251,247,.82) 0, rgba(253,251,247,.72) 70px, rgba(253,251,247,0) 190px),
  linear-gradient(to right, rgba(253,251,247,.68) 0%, rgba(253,251,247,.5) 42%, rgba(253,251,247,0) 72%),
  linear-gradient(to top, rgba(253,251,247,.9) 0%, rgba(253,251,247,.76) 34%, rgba(253,251,247,.5) 60%, rgba(253,251,247,.06) 88%); }
.hero.light h1 { color: var(--forest); }
.hero.light .lede { color: var(--forest-ink); }
.hero.light .btn.light { background: var(--forest); color: var(--ground); }
.hero.light .btn.light:hover { background: var(--walnut); }
.hero.light .btn.ghost { color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.hero.light .btn.ghost:hover { background: rgba(45,74,58,.08); }
.hero.light .ron { background: rgba(253,251,247,.74); box-shadow: inset 0 0 0 1px rgba(26,46,34,.08), 0 8px 24px rgba(26,46,34,.08); }
.hero.light .ron span { color: #34433A; }
.light-hero .top:not(.solid) { color: var(--forest-ink); }
.light-hero .top:not(.solid) .links a:hover { background: rgba(45,74,58,.08); }
.light-hero .top:not(.solid) .cta { background: var(--forest); color: var(--ground); }
.light-hero .top:not(.solid) .cta:hover { background: var(--walnut); }
.hero.light a:focus-visible, .light-hero .top:not(.solid) a:focus-visible { outline-color: var(--forest); }

/* Who we work with */
.who { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 28px 24px 0; }
.who p { color: var(--sage); font-size: 1rem; }
.who ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; list-style: none; margin: 0; padding: 0; }
.who li { background: var(--sand-soft); color: var(--walnut); border-radius: 999px; padding: 9px 18px; font-weight: 500; font-size: 1rem; }

/* Services: sand panels that open into forest green */
.services { max-width: 1040px; margin: 0 auto; padding: clamp(64px, 8vw, 112px) 24px; }
.services h2, .about h2 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.services .sub { margin-top: 12px; color: var(--sage); }
.acc { margin-top: 40px; display: grid; gap: 10px; }
details { background: var(--sand-soft); border-radius: var(--r); transition: background .25s, color .25s; }
details:not([open]):hover { background: var(--sand); }
details[open] { background: var(--forest); color: var(--ground); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-radius: var(--r); }
summary::-webkit-details-marker { display: none; }
summary h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.plus { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ground); position: relative; transition: transform .3s, background .25s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: var(--forest-ink); border-radius: 2px; }
.plus::after { transform: rotate(90deg); }
details[open] .plus { transform: rotate(45deg); background: var(--sand); }
details[open] .plus::before, details[open] .plus::after { background: var(--walnut); }
details .svc { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px 36px; align-items: start; padding: 0 28px 28px; }
details .svc p { max-width: 52ch; font-size: 1.15rem; color: var(--on-forest-soft); }
details .svc .photo { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; }
details .svc img { width: 100%; height: 100%; object-fit: cover; }
details::details-content { height: 0; overflow: clip; transition: height .35s ease, content-visibility .35s allow-discrete; }
details[open]::details-content { height: auto; }

/* In the community: real projects and partners */
.work { max-width: 1240px; margin: 0 auto; padding: 0 24px clamp(64px, 8vw, 112px); }
.work h2 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.work .sub { margin-top: 12px; color: var(--sage); }
.gallery { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap); margin-top: 40px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; }
.gallery .photo { flex: 1; min-height: 240px; border-radius: var(--r); overflow: hidden; }
.gallery .lead { grid-row: span 2; }
.gallery .lead .photo { min-height: 520px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 10px; color: var(--sage); font-size: 0.95rem; }

/* About: the family firm beside the lettermark */
.about { max-width: 1240px; margin: 0 auto; padding: 0 24px clamp(64px, 8vw, 112px); display: grid; grid-template-columns: 0.9fr 1.25fr 0.85fr; gap: var(--gap); }
.tile { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); }
.tile.text { background: var(--sand-soft); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.tile.text p { max-width: 40ch; }
.tile.mark { background: var(--walnut); display: grid; place-items: center; min-height: 380px; }
.tile.mark span { font-family: var(--display); font-weight: 600; font-size: clamp(4.5rem, 8.5vw, 8.5rem); letter-spacing: -0.035em; line-height: 1; color: var(--sand); }
.tile.portrait { margin: 0; padding: 0; position: relative; overflow: hidden; min-height: 460px; background: var(--sand-soft); }
.tile.portrait .photo { position: absolute; inset: 0; }
.tile.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.tile.portrait figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--ground); border-radius: 18px; padding: 12px 16px; font-size: 0.95rem; line-height: 1.35; color: var(--sage); }
.tile.portrait figcaption b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--forest-ink); }

/* Contact */
.contact { margin: var(--gap); border-radius: var(--r-lg); background: var(--forest); color: var(--ground); padding: clamp(48px, 7vw, 96px) var(--edge); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.contact h2 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); color: var(--ground); }
.contact .note { margin-top: 20px; color: var(--sage-light); max-width: 36ch; font-size: 1.2rem; }
.reach { display: grid; gap: 10px; }
.reach a { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--ground); color: var(--forest-ink); text-decoration: none; border-radius: 22px; padding: 22px 26px; font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -0.01em; overflow-wrap: anywhere; transition: transform .2s; }
.reach a small { flex: none; white-space: nowrap; font-family: var(--text); font-weight: 500; font-size: 0.95rem; color: var(--sage); letter-spacing: 0; }
.reach a:hover { transform: translateY(-2px); }

/* Footer band */
.foot { margin: 0 var(--gap) var(--gap); border-radius: var(--r-lg); background: var(--walnut-deep); color: var(--sand); padding: clamp(36px, 5vw, 56px) var(--edge); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px 48px; font-size: 1rem; }
.foot .brand { color: var(--ground); font-size: 1.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.foot nav a { text-decoration: none; padding: 6px 0; }
.foot nav a:hover { text-decoration: underline; }
.foot .legal { flex-basis: 100%; color: var(--sand-muted); font-size: 0.95rem; }

/* Simple pages (404) */
.plain { max-width: 760px; margin: 0 auto; padding: 180px 24px 120px; }
.plain h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--forest); }
.plain p { margin-top: 20px; font-size: 1.25rem; max-width: 44ch; }
.plain .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* Responsive */
@media (max-width: 900px) {
  .links a { padding: 10px 11px; }
  .hero-inner { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr 1fr; }
  .tile.text { grid-column: 1 / -1; order: -1; }
  .tile.mark { min-height: 240px; }
  .tile.mark span { font-size: clamp(4.5rem, 14vw, 8rem); }
  .tile.portrait { min-height: 380px; }
}
@media (max-width: 780px) {
  .top { grid-template-columns: 1fr auto; }
  .links { display: none; }
}
@media (max-width: 680px) {
  .top { padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 1.15rem; }
  .top .cta { padding: 10px 18px; min-height: 44px; }
  .hero { min-height: 88svh; }
  .hero .shade { background:
    linear-gradient(to bottom, rgba(var(--scrim), .8) 0, rgba(var(--scrim), .7) 64px, rgba(var(--scrim), 0) 170px),
    linear-gradient(rgba(var(--scrim), .42), rgba(var(--scrim), .42)),
    linear-gradient(to top, rgba(var(--scrim), .85) 0%, rgba(var(--scrim), .6) 45%, rgba(var(--scrim), .1) 85%); }
  .hero.light .shade { background:
    linear-gradient(to bottom, rgba(253,251,247,.82) 0, rgba(253,251,247,.72) 64px, rgba(253,251,247,0) 170px),
    linear-gradient(rgba(253,251,247,.54), rgba(253,251,247,.54)),
    linear-gradient(to top, rgba(253,251,247,.86) 0%, rgba(253,251,247,.62) 45%, rgba(253,251,247,.1) 85%); }
  .hero-inner { padding-top: 120px; }
  .ron { max-width: none; }
  .reach a { flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 22px; font-size: 1.35rem; }
  .reach a small { order: -1; }
  summary { padding: 22px 20px; }
  details .svc { grid-template-columns: 1fr; padding: 0 20px 24px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .lead { grid-row: auto; }
  .gallery .lead .photo, .gallery .photo { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .about { grid-template-columns: 1fr; }
  .tile.portrait { min-height: 420px; }
  .tile.mark { min-height: 200px; }
}

/* Motion: skipped for people who ask for less */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  details::details-content, .plus, .top, .btn, .reach a, details { transition: none; }
  .reach a:hover { transform: none; }
}
