:root {
  --sg-cream: #fff8e7;
  --sg-cherry: #d64545;
  --sg-blue: #3d6ea8;
  --sg-grass: #3f6b4a;
  --sg-ink: #2a241c;
  --sg-mute: #6d6458;
  --sg-display: "DM Serif Display", Georgia, serif;
  --sg-body: "DM Sans", "Avenir Next", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body.sg {
  margin: 0; background: var(--sg-cream); color: var(--sg-ink);
  font-family: var(--sg-body); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--sg-cherry); text-decoration: none; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--sg-blue); color: #fff; padding: 8px 12px; }
.skip:focus { top: 12px; }

.sg-mast { max-width: 1160px; margin: 0 auto; padding: 22px 20px 8px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.sg-brand { display: flex; gap: 12px; align-items: center; color: inherit; }
.sg-brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sg-cherry); }
.sg-brand strong { display: block; font-family: var(--sg-display); font-size: 1.5rem; }
.sg-brand em { display: block; font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sg-mute); }
.sg-nav { display: flex; gap: 16px; }
.sg-nav a { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--sg-ink); min-height: 44px; display: inline-flex; align-items: center; }
.sg-nav a[aria-current="page"] { color: var(--sg-cherry); }
.sg-toggle { display: none; background: var(--sg-cherry); color: #fff8e7; border: 0; padding: 8px 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; min-height: 44px; cursor: pointer; }

.sg-quilt { max-width: 1160px; margin: 12px auto 0; padding: 0 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; }
.sg-quilt a:first-child { grid-row: span 2; }
.sg-quilt img { width: 100%; height: 100%; object-fit: cover; }
.sg-quilt a { overflow: hidden; position: relative; }
.sg-quilt a:nth-child(2) { outline: 8px solid var(--sg-cherry); outline-offset: -8px; }
.sg-quilt a:nth-child(3) { outline: 8px solid var(--sg-blue); outline-offset: -8px; }
.sg-quilt a:nth-child(4) { outline: 8px solid var(--sg-grass); outline-offset: -8px; }
.sg-quilt a:nth-child(5) { outline: 8px solid var(--sg-cherry); outline-offset: -8px; }

.sg-intro { max-width: 720px; margin: 36px auto 28px; padding: 0 20px; text-align: center; }
.sg-intro .kicker { color: var(--sg-blue); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.72rem; font-weight: 700; }
.sg-intro h1 { font-family: var(--sg-display); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 8px 0 12px; }

.sg-cards { max-width: 1160px; margin: 0 auto 72px; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sg-card { background: #fff; border: 1px solid #eadfc6; overflow: hidden; color: inherit; display: flex; flex-direction: column; }
.sg-card .bar { height: 10px; }
.sg-card:nth-child(3n + 1) .bar { background: var(--sg-cherry); }
.sg-card:nth-child(3n + 2) .bar { background: var(--sg-blue); }
.sg-card:nth-child(3n + 3) .bar { background: var(--sg-grass); }
.sg-card img { width: 100%; height: 180px; object-fit: cover; }
.sg-card div { padding: 16px; }
.sg-card h3 { font-family: var(--sg-display); font-size: 1.45rem; margin: 0 0 8px; }

.sg-essay { max-width: 700px; margin: 0 auto; padding: 48px 20px 80px; }
.sg-essay h1 { font-family: var(--sg-display); font-size: clamp(2.3rem, 5vw, 3.6rem); }
.sg-essay figure { margin: 8px 0 22px; }
.sg-essay img { width: 100%; outline: 8px solid var(--sg-cherry); outline-offset: -8px; }
.sg-essay .body p { font-size: 1.08rem; }

.sg-gallery { max-width: 1160px; margin: 0 auto; padding: 36px 16px 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sg-gallery figure { margin: 0; }
.sg-gallery img { width: 100%; height: 180px; object-fit: cover; }
.sg-gallery figcaption { font-size: 0.75rem; padding: 6px 2px; color: var(--sg-mute); }

.sg-about { max-width: 980px; margin: 0 auto; padding: 48px 20px 80px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: center; }
.sg-about h1 { font-family: var(--sg-display); font-size: clamp(2.4rem, 5vw, 3.8rem); }

.sg-foot { border-top: 8px solid var(--sg-cherry); padding: 20px; display: flex; justify-content: space-between; color: var(--sg-mute); font-size: 0.85rem; }

@media (max-width: 900px) {
  .sg-quilt { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .sg-quilt a:first-child { grid-column: span 2; grid-row: span 1; }
  .sg-cards, .sg-about, .sg-gallery { grid-template-columns: 1fr; }
  .sg-nav { display: none; }
  .sg-nav.is-open { display: flex; flex-direction: column; flex-basis: 100%; width: 100%; }
  .sg-toggle { display: block; }
  .sg-brand em { display: none; }
}

.rk-nav, .ph-nav, .pl-nav, .og-nav, .cl-nav, .rr-skyline, .cp-nav, .bh-nav, .sg-nav, .sr-nav { list-style: none; margin: 0; padding: 0; }
.rk-nav li, .ph-nav li, .pl-nav li, .og-nav li, .cl-nav li, .rr-skyline li, .cp-nav li, .bh-nav li, .sg-nav li, .sr-nav li { margin: 0; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo, .custom-logo-link img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.body img, .aligncenter, .alignwide, .alignfull { max-width: 100%; height: auto; }
.theme-feature { display: grid; gap: 24px; margin: 24px auto 48px; max-width: 1180px; padding: 0 24px; }
.theme-feature img { width: 100%; height: auto; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 1180px; margin: 0 auto 64px; padding: 0 24px; }
.theme-grid img { width: 100%; height: 200px; object-fit: cover; }
body.ph .theme-feature, body.cl .theme-feature { color: inherit; }
button[data-nav-toggle] { min-height: 44px; cursor: pointer; }
@media (min-width: 900px) {
  .theme-feature { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
