.rg-home {
  --ink:#302018; --paper:#faf5ee; --cacao:#34231e; --accent:#963d2c; --wash:#f4e6da; --line:#dfc9b8;
  --section-gap:clamp(32px,5vw,66px); --card-gap:clamp(10px,1.5vw,18px);
  box-sizing:border-box; background:var(--paper); color:var(--ink); font:16px/1.55 "Segoe UI Variable",system-ui,sans-serif;
  padding:clamp(18px,4vw,48px) max(clamp(18px,4vw,48px),calc((100% - 1230px)/2)); margin:0;
}
.rg-home * {box-sizing:border-box}
.rg-home h1,.rg-home h2,.rg-home h3 {font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;font-weight:790;line-height:.98;letter-spacing:-.065em;color:inherit;margin:0}
.rg-home a {color:inherit}
.rg-home :focus-visible {outline:3px solid #a34732;outline-offset:4px}
.rg-mast,.rg-footer {display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.rg-mast {padding-bottom:22px}
.rg-logo {font-size:clamp(23px,3vw,35px);letter-spacing:-.065em;font-weight:750;margin:0}
.rg-logo a {text-decoration:none}
.rg-logo strong {color:var(--accent);margin-left:.06em}
.rg-mast .wp-block-buttons {display:flex;flex-wrap:wrap;gap:8px}
.rg-home .wp-block-button__link,.rg-actions button {display:inline-block;font:650 1rem/1.25 "Segoe UI Variable",system-ui,sans-serif;color:var(--ink);background:white;border:1px solid var(--line);border-radius:999px;padding:.72em 1.1em;text-decoration:none;transition:background .18s,color .18s}
.rg-home .wp-block-button__link:hover,.rg-actions button:hover {background:var(--ink);color:white}
.rg-hero {display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(10px,2vw,28px);padding:clamp(12px,2vw,28px);overflow:hidden;border-radius:8px 8px 52px 8px;background:radial-gradient(ellipse at 0% 100%,#674038 0%,transparent 55%),var(--cacao)}
.rg-intro,.rg-feature {position:relative;min-width:0;overflow:hidden}
.rg-home .rg-hero > *,.rg-home .rg-intro > * {margin-block:0}
.rg-intro {padding:clamp(16px,3.3vw,48px);color:#fff5e9;display:flex;flex-direction:column;justify-content:center;gap:20px}
.rg-intro h1 {color:#fff5e9;font-size:clamp(49px,7vw,106px);max-width:8ch;line-height:.91}
.rg-intro > p {font-size:clamp(16px,1.65vw,21px);max-width:31ch;margin:0;color:#f5dfd0}
.rg-intro .wp-block-button__link,.rg-actions button {background:var(--accent);color:white;border-color:var(--accent)}
.rg-feature {background:#4f3429;min-height:clamp(370px,38vw,560px);display:flex;align-items:end;border-radius:4px 4px 34px 4px}
.rg-feature figure {position:absolute;inset:0;margin:0}
.rg-feature figure a,.rg-feature img {display:block;width:100%;height:100%;object-fit:cover}
.rg-feature .rg-feature-label {position:relative;margin:0 16px 16px;width:max-content;max-width:calc(100% - 32px);background:var(--paper);color:var(--ink);border-radius:6px;padding:12px 16px;font-weight:720}
.rg-feature-label a {display:block;text-decoration:none}
.rg-feature-label a:hover {text-decoration:underline}
.rg-home > :is(.rg-section,.rg-explorer) {margin-block:var(--section-gap) 0}
.rg-section h2,.rg-explorer h2 {font-size:clamp(34px,5vw,62px);margin-block:0 16px}
.rg-tiles {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--card-gap)}
.rg-home .rg-tiles > .wp-block-button {min-width:0;margin:0}
.rg-home .rg-tiles > .wp-block-button > a {height:100%}
.rg-home .rg-tiles .wp-block-button__link {display:flex;align-items:end;justify-content:space-between;min-height:88px;border:1px solid var(--line);border-radius:6px;font-size:clamp(16px,1.7vw,23px);padding:15px;background:white}

.rg-home .rg-tiles .wp-block-button__link:hover {background:var(--accent);color:white}
.rg-home .rg-tiles .wp-block-button__link::after {content:"↗";margin-left:7px}
.rg-home .rg-section > :is(.rg-tiles,.rg-feed),.rg-home .rg-feed > .wp-block-post-template {margin-block:0}
.rg-home .rg-feed .wp-block-post-template,.rg-home .rg-results {list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--card-gap);padding:0;margin:0}
.rg-home .rg-feed .wp-block-post,.rg-home .rg-results > li {min-width:0;margin:0}
.rg-home .rg-feed .wp-block-post > figure {margin:0 0 10px;width:100%;aspect-ratio:4/3;border-radius:24px;overflow:hidden;background:transparent}
.rg-home .rg-feed .wp-block-post > figure :is(a,img) {border-radius:0;background:transparent}
.rg-feed figure a,.rg-feed figure img,.rg-results img {display:block;width:100%;height:100%;object-fit:cover}
.rg-feed .wp-block-post-title {font-size:clamp(20px,2.8vw,34px);margin:0}
.rg-explorer {padding:clamp(16px,4vw,40px);border:1px solid var(--line);border-radius:10px;background:var(--wash);scroll-margin-top:20px}
.rg-explorer form {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.rg-field {display:grid;gap:4px;font-weight:650;min-width:0}
.rg-keyword {grid-column:span 2}
.rg-field input,.rg-field select {width:100%;min-width:0;border:1px solid #9b7a69;border-radius:10px;background:white;color:var(--ink);font:inherit;font-weight:400;padding:10px}
.rg-actions,.rg-pages {display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.rg-actions {grid-column:1/-1}
.rg-actions button {cursor:pointer}
.rg-result-count {font-weight:680;margin:24px 0 12px}
.rg-results li {background:white;border-radius:6px;overflow:hidden}
.rg-results a {display:block;text-decoration:none}
.rg-results a:hover span {text-decoration:underline}
.rg-results img {aspect-ratio:4/3;height:auto;border-radius:0;background:var(--wash)}
.rg-results span {display:block;padding:12px;font-weight:650}
.rg-pages {margin-top:18px}
.rg-footer {border-top:1px solid var(--line);padding-top:18px;margin-top:42px}
@media(max-width:700px) {
  .rg-hero {grid-template-columns:1fr;border-radius:8px 8px 32px 8px}
  .rg-feature {min-height:0;aspect-ratio:4/3;border-bottom-right-radius:22px}
  .rg-tiles,.rg-home .rg-feed .wp-block-post-template,.rg-home .rg-results,.rg-explorer form {grid-template-columns:repeat(2,minmax(0,1fr))}
  .rg-home .rg-tiles .wp-block-button__link {min-height:70px}
}
@media(max-width:375px) {.rg-explorer form {grid-template-columns:1fr}.rg-keyword {grid-column:auto}}
.rg-hero :focus-visible {outline-color:#ffc49c}
.rg-intro h1 em {color:#ffc49c;font-style:normal}
@media(prefers-reduced-motion:no-preference) {
  .rg-intro h1 {animation:rg-settle .65s cubic-bezier(.2,.75,.25,1) both}
  .rg-feature img {animation:rg-photo-in .8s cubic-bezier(.2,.75,.25,1) both}
  .rg-feature-label {animation:rg-settle .55s .1s ease-out both}
  .rg-feature figure,.rg-feed img {transition:transform .46s cubic-bezier(.2,.75,.25,1)}
  .rg-home .rg-tiles .wp-block-button__link::after {
    display:inline-block;
    transition:transform .22s ease-out;
  }
  @media(hover:hover) {
    .rg-feature:hover figure,.rg-feed figure:hover img {transform:scale(1.045)}
    .rg-home .rg-tiles .wp-block-button__link:hover::after {transform:translate(3px,-3px)}
  }
  @supports (animation-timeline:view()) {
    .rg-section h2,.rg-tiles > .wp-block-button:not(:focus-within),.rg-feed .wp-block-post:not(:focus-within) {
      animation:rg-rise linear both;
      animation-timeline:view();
      animation-range:entry 0% entry 85%;
    }
    .rg-feed .wp-block-post:not(:focus-within) {animation-name:rg-fade}
    .rg-tiles > .wp-block-button:nth-child(even):not(:focus-within),
    .rg-feed .wp-block-post:nth-child(2):not(:focus-within) {
      animation-range:entry 10% entry 100%;
    }
  }
}
@keyframes rg-settle {
  from {opacity:.75;transform:translateY(12px)}
  to {opacity:1;transform:translateY(0)}
}
@keyframes rg-photo-in {
  from {transform:scale(1.055)}
  to {transform:scale(1)}
}
@keyframes rg-rise {
  from {opacity:.8;transform:translateY(12px)}
  to {opacity:1;transform:translateY(0)}
}
@keyframes rg-fade {
  from {opacity:.8}
  to {opacity:1}
}
@media(prefers-reduced-motion:reduce) {.rg-home * {transition:none!important}}
