/* Signal theme. Every value comes from the theme.json scales. */

:root {
	--sg-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--sg-line: rgba(255, 255, 255, 0.08);
	--sg-line-2: rgba(255, 255, 255, 0.12);
	--sg-amber: #FFB547;
	--sg-boat: #FFC36B;
	--sg-muted: #9B9B9B;
	--sg-mist: #C7CBD6;
	--sg-slate: #9BA3B8;
	--sg-surface: #181818;
	--sg-surface-2: #272727;
	--sg-navy: #0E1A33;
	--sg-night: #03060E;
	--sg-mono: var(--wp--preset--font-family--geist-mono);
}

html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--sg-amber); color: #000; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }

.sg-skip { position: absolute; left: 8px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: 9999px; background: #fff; color: #000; transform: translateY(-200%); }
.sg-skip:focus { transform: none; }

/* ---------- Header ---------- */
.sg-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; margin: 0 !important; }
.admin-bar .sg-header { top: 48px; }
.sg-header__pill { pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 9999px; background: rgba(24, 24, 24, 0.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.sg-header__pill > * { margin: 0 !important; }
.sg-brand { font-size: var(--wp--preset--font-size--sm); font-weight: 600; line-height: 1; }
.sg-brand a { display: inline-flex; align-items: center; gap: 8px; padding: 12px; border-radius: 9999px; color: #fff; text-decoration: none; white-space: nowrap; }
.sg-brand a::before { content: ""; width: 8px; height: 8px; border-radius: 9999px; background: var(--sg-amber); box-shadow: 0 0 10px var(--sg-amber); }
.sg-nav { color: #fff; font-size: var(--wp--preset--font-size--sm); gap: 4px; }
.sg-nav .wp-block-navigation__container { gap: 4px; }
.sg-nav .wp-block-navigation-item__content { display: inline-flex; padding: 12px; border-radius: 9999px; color: #B8B8B8; text-decoration: none; line-height: 1; transition: background-color 300ms var(--sg-ease), color 300ms var(--sg-ease); }
.sg-nav .wp-block-navigation-item__content:hover { color: #fff; }
.sg-nav .current-menu-item > .wp-block-navigation-item__content { color: #fff; background: rgba(255, 255, 255, 0.1); }
.sg-header__cta .wp-block-button__link { font-size: var(--wp--preset--font-size--sm); padding: 8px 12px; min-height: 0; }

/* Mobile menu: full height panel, links arrive one after another. */
.sg-nav .wp-block-navigation__responsive-container-open,
.sg-nav .wp-block-navigation__responsive-container-close { color: #fff; padding: 10px; }
.sg-nav .wp-block-navigation__responsive-container.is-menu-open { background-color: rgba(3, 6, 14, 0.94) !important; color: #fff !important; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); padding: 96px 24px 24px; }
.sg-nav .is-menu-open .wp-block-navigation__container { gap: 8px; align-items: flex-start; }
.sg-nav .is-menu-open .wp-block-navigation-item__content { font-size: var(--wp--preset--font-size--3-xl); color: #fff; padding: 8px 0; background: none !important; }
.sg-nav .is-menu-open .wp-block-navigation-item { opacity: 0; animation: sg-rise-sm 500ms var(--sg-ease) forwards; }
.sg-nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 60ms; }
.sg-nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 120ms; }
.sg-nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 180ms; }

/* ---------- Type helpers ---------- */
.is-style-kicker, .sg-label { font-family: var(--sg-mono); font-size: var(--wp--preset--font-size--xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sg-amber); line-height: 16px; margin: 0; }
.is-style-gradient { background: linear-gradient(90deg, #fff, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.sg-display { font-size: var(--wp--preset--font-size--6-xl) !important; line-height: 1 !important; letter-spacing: -0.03em; }
.sg-lead { font-size: var(--wp--preset--font-size--lg); line-height: 28px; color: var(--sg-mist); max-width: 480px; }
.sg-chip { display: inline-flex; align-self: flex-start; padding: 4px 12px; border: 1px solid var(--sg-line-2); border-radius: 9999px; background: rgba(24, 24, 24, 0.5); color: #D4D4D4; text-transform: none; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button__link { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; text-decoration: none; transition: transform 500ms var(--sg-ease), background-color 300ms var(--sg-ease); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button__link:active { transform: scale(0.98); }
.is-style-ghost .wp-block-button__link { background: rgba(24, 24, 24, 0.4); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.is-style-ghost .wp-block-button__link:hover { background: rgba(24, 24, 24, 0.7); color: #fff; }

/* ---------- Night hero ---------- */
.sg-hero { position: relative; overflow: hidden; container-type: size; background: var(--sg-night); color: #fff; margin: 0 !important; max-width: none !important; }
.sg-hero--full { height: clamp(640px, 56.25vw, 100svh); }
.sg-hero--tall { height: 480px; }
.sg-hero--banner { height: 420px; }
.sg-hero--short { height: 380px; }
.sg-hero__stage { position: absolute; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); left: calc((100cqw - max(100cqw, 177.78cqh)) * var(--fx, 0.5)); top: calc((100cqh - max(100cqh, 56.25cqw)) * var(--fy, 0.5)); }
.sg-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: sg-settle 3s var(--sg-ease) both; }
.sg-hero__beam { position: absolute; right: calc(100% - var(--bx, 75.6%)); top: calc(var(--by, 30%) - 15%); width: 72%; height: 30%; transform-origin: 100% 50%; clip-path: polygon(0 0, 100% 47%, 100% 53%, 0 100%); background: linear-gradient(to left, rgba(255, 214, 140, 0.55), rgba(255, 180, 90, 0.18) 45%, rgba(255, 180, 90, 0)); mix-blend-mode: screen; pointer-events: none; animation: sg-sweep 7s var(--sg-ease) infinite alternate, sg-flicker 2.4s var(--sg-ease) infinite alternate; }
.sg-hero--lost .sg-hero__beam { animation: sg-search 9s var(--sg-ease) infinite; }
.sg-boat { position: absolute; border-radius: 9999px; background: var(--sg-boat); box-shadow: 0 0 12px var(--sg-amber); animation: sg-twinkle 3.2s var(--sg-ease) infinite; }
.sg-hero__shade { position: absolute; inset: 0; pointer-events: none; }
.sg-hero--full .sg-hero__shade { background: linear-gradient(90deg, rgba(3, 6, 14, 0.5), rgba(3, 6, 14, 0) 55%); }
.sg-hero:not(.sg-hero--full) .sg-hero__shade { background: linear-gradient(to bottom, rgba(3, 6, 14, 0.2), rgba(3, 6, 14, 0) 35%, rgba(3, 6, 14, 0.85) 80%, var(--sg-night)); }
.sg-hero__inner { position: relative; z-index: 2; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.sg-hero__inner > * { margin: 0 !important; }
.sg-hero--full .sg-hero__inner { justify-content: center; padding: 96px 6% 64px; width: 52%; min-width: 320px; }
.sg-hero:not(.sg-hero--full) .sg-hero__inner { justify-content: flex-end; max-width: 1120px; margin: 0 auto; padding: 96px 24px 48px; }
.sg-hero__inner .wp-block-buttons { padding-top: 8px; }
.sg-hero-foot { position: absolute; left: 6%; bottom: 6%; font-family: var(--sg-mono); font-size: var(--wp--preset--font-size--xs); color: var(--sg-slate); }
.sg-hero__inner > *:not(.sg-hero-foot) { animation: sg-rise 800ms var(--sg-ease) both; }
.sg-hero__inner > *:nth-child(2) { animation-delay: 120ms; }
.sg-hero__inner > *:nth-child(3) { animation-delay: 240ms; }
.sg-hero__inner > *:nth-child(4) { animation-delay: 360ms; }

/* ---------- Layout ---------- */
.sg-main { margin: 0 !important; }
.sg-main > * { margin-block: 0 !important; }
.sg-wrap { max-width: 1120px; margin-inline: auto !important; padding-inline: 24px; box-sizing: border-box; width: 100%; }
.sg-wrap--narrow { max-width: 928px; }
.sg-wrap--read { max-width: 728px; }
.sg-section { padding-block: 96px 48px; display: flex; flex-direction: column; gap: 32px; }
.sg-section > * { margin: 0 !important; }
.sg-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.sg-head > * { margin: 0 !important; }
.sg-head h2 { font-size: var(--wp--preset--font-size--4-xl); line-height: 40px; }
.sg-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.sg-head--split > .wp-block-group { display: flex; flex-direction: column; gap: 12px; }
.sg-head--split > .wp-block-group > * { margin: 0; }
.sg-more { margin: 0; font-size: var(--wp--preset--font-size--sm); }
.sg-more a { color: var(--sg-muted); text-decoration: none; display: inline-flex; gap: 8px; }
.sg-more a::after { content: "→"; transition: transform 500ms var(--sg-ease); }
.sg-more a:hover::after { transform: translateX(4px); }

/* ---------- Cards ---------- */
.sg-grid { display: grid; gap: 16px; }
.sg-grid > * { margin: 0 !important; }
.sg-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sg-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sg-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sg-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--sg-line); border-radius: 16px; background: var(--sg-surface); color: #fff; text-decoration: none; transition: transform 500ms var(--sg-ease), border-color 300ms var(--sg-ease); }
.sg-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255, 181, 71, 0.16), rgba(255, 181, 71, 0) 60%); opacity: 0; transition: opacity 500ms var(--sg-ease); pointer-events: none; }
.sg-card:hover { transform: translateY(-4px); border-color: rgba(255, 190, 110, 0.35); }
.sg-card:hover::before { opacity: 1; }
.sg-card > * { position: relative; margin: 0 !important; }
.sg-card h3 { font-size: var(--wp--preset--font-size--xl); line-height: 28px; margin: 0; }
.sg-card p { font-size: var(--wp--preset--font-size--sm); line-height: 20px; color: var(--sg-muted); margin: 0; }
.sg-card h3 a { color: inherit; text-decoration: none; }
.sg-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sg-card__lit { display: none; }
.sg-feature[class*="sg-ic-"] h3::before { content: ""; display: block; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 8px; background: var(--sg-surface-2) var(--sg-ic) center / 20px no-repeat; transition: transform 500ms var(--sg-ease); }
.sg-feature[class*="sg-ic-"]:hover h3::before { transform: scale(1.08) rotate(-4deg); }
.sg-ic-search { --sg-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23FFB547' d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z'/%3E%3C/svg%3E"); }
.sg-ic-device { --sg-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23FFB547' d='M176,16H80A24,24,0,0,0,56,40V216a24,24,0,0,0,24,24h96a24,24,0,0,0,24-24V40A24,24,0,0,0,176,16ZM72,64H184V192H72Zm8-32h96a8,8,0,0,1,8,8v8H72V40A8,8,0,0,1,80,32Zm96,192H80a8,8,0,0,1-8-8v-8H184v8A8,8,0,0,1,176,224Z'/%3E%3C/svg%3E"); }
.sg-ic-article { --sg-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23FFB547' d='M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H40V56H216V200ZM184,96a8,8,0,0,1-8,8H80a8,8,0,0,1,0-16h96A8,8,0,0,1,184,96Zm0,32a8,8,0,0,1-8,8H80a8,8,0,0,1,0-16h96A8,8,0,0,1,184,128Zm0,32a8,8,0,0,1-8,8H80a8,8,0,0,1,0-16h96A8,8,0,0,1,184,160Z'/%3E%3C/svg%3E"); }
.sg-num, .sg-guest__src { font-family: var(--sg-mono); font-size: var(--wp--preset--font-size--xs) !important; color: var(--sg-slate) !important; }

/* Projects */
.sg-projects--groups { display: flex; flex-direction: column; gap: 48px; padding-block: 48px 0; }
.sg-projects__group { display: flex; flex-direction: column; gap: 16px; }
.sg-project__meta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sg-mono); font-size: var(--wp--preset--font-size--xs); color: var(--sg-slate); }
.sg-project__dot, .sg-project__light { width: 6px; height: 6px; border-radius: 9999px; background: var(--sg-boat); box-shadow: 0 0 10px var(--sg-amber); }
.sg-project__body { display: flex; flex-direction: column; gap: 4px; }
.sg-project__title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sg-go { opacity: 0.5; transition: transform 500ms var(--sg-ease), opacity 300ms var(--sg-ease); }
.sg-card:hover .sg-go { opacity: 1; transform: translate(2px, -2px); }
.sg-project--visual { padding: 8px; gap: 8px; }
.sg-project--visual .sg-project__body { padding: 8px 8px 12px; }
.sg-project--visual h3 { font-size: var(--wp--preset--font-size--lg); }
.sg-project__visual { position: relative; height: 160px; border-radius: 8px; background: var(--sg-navy); display: flex; align-items: flex-end; padding: 16px; box-sizing: border-box; overflow: hidden; }
.sg-project__light { position: absolute; right: 16px; top: 16px; width: 8px; height: 8px; box-shadow: 0 0 14px var(--sg-amber); animation: sg-twinkle 3.2s var(--sg-ease) infinite; }
.sg-project__kind { font-family: var(--sg-mono); font-size: var(--wp--preset--font-size--xs); color: var(--sg-slate); transition: transform 500ms var(--sg-ease); }
.sg-card:hover .sg-project__kind { transform: translateY(-4px); }

/* ---------- Tagline ---------- */
.sg-tagline { padding-block: 160px; margin-block: 0 !important; }
.sg-tagline__text { margin: 0; max-width: 880px; font-size: var(--wp--preset--font-size--5-xl); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; color: #fff; }
.sg-motion .sg-word { color: rgba(255, 255, 255, 0.28); transition: color 500ms var(--sg-ease); }
.sg-motion .sg-word.is-on { color: #fff; }

/* ---------- Post rows ---------- */
.sg-list { margin: 0; }
.sg-list .sg-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--sg-line); border-radius: 16px; overflow: hidden; }
.sg-rows > li { margin: 0; }
.sg-rows > li + li { border-top: 1px solid var(--sg-line); }
.sg-rows > li[hidden] { display: none; }
.sg-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 24px; transition: background-color 300ms var(--sg-ease); }
.sg-row:hover { background: var(--sg-surface); }
.sg-row > * { margin: 0 !important; }
.sg-row__date { width: 96px; font-family: var(--sg-mono); font-size: var(--wp--preset--font-size--xs); color: var(--sg-muted); }
.sg-row__title { flex: 1 1 280px; font-size: var(--wp--preset--font-size--lg) !important; line-height: 28px !important; font-weight: 500; letter-spacing: 0; }
.sg-row__title a { color: #fff; text-decoration: none; }
.sg-row__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sg-row__cat { display: flex; flex-wrap: wrap; gap: 4px; position: relative; z-index: 2; font-size: var(--wp--preset--font-size--xs); }
.sg-row__cat a, .sg-meta__cat a { display: inline-flex; padding: 2px 8px; border-radius: 9999px; border: 1px solid var(--sg-line-2); color: var(--sg-muted); text-decoration: none; }
.sg-row__cat a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.sg-row__cat .wp-block-post-terms__separator { display: none; }
.sg-row::after { content: "→"; color: var(--sg-muted); transition: transform 500ms var(--sg-ease); }
.sg-row:hover::after { transform: translateX(4px); }
.sg-filter-empty, .sg-empty { padding: 48px 24px; text-align: center; color: var(--sg-muted); margin: 0; }
.sg-filter-empty[hidden] { display: none; }
.sg-pagination { margin-top: 24px; gap: 8px; font-size: var(--wp--preset--font-size--sm); }
.sg-pagination a, .sg-pagination .current { padding: 8px 12px; border-radius: 9999px; border: 1px solid var(--sg-line-2); text-decoration: none; color: #fff; }
.sg-pagination .current { background: #fff; color: #000; }

/* Topic pills */
.sg-filter { margin: 0 0 24px; }
.sg-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.sg-pill { display: inline-flex; align-items: center; min-height: 36px; box-sizing: border-box; padding: 8px 12px; border-radius: 9999px; border: 1px solid var(--sg-line-2); background: rgba(24, 24, 24, 0.6); color: #B8B8B8; font-size: var(--wp--preset--font-size--sm); line-height: 1; text-decoration: none; transition: background-color 300ms var(--sg-ease), color 300ms var(--sg-ease); }
.sg-pill:hover { color: #fff; }
.sg-pill[aria-current="page"] { background: #fff; color: #000; border-color: #fff; font-weight: 500; }

/* ---------- About ---------- */
.sg-prose { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.sg-prose > * { max-width: 680px; margin: 0 !important; font-size: var(--wp--preset--font-size--lg); line-height: 28px; color: var(--sg-mist); }
.sg-links { display: flex; flex-direction: column; border: 1px solid var(--sg-line); border-radius: 16px; overflow: hidden; }
.sg-links > p { position: relative; display: flex; justify-content: space-between; gap: 16px; margin: 0 !important; padding: 20px 24px; transition: background-color 300ms var(--sg-ease); }
.sg-links > p + p { border-top: 1px solid var(--sg-line); }
.sg-links > p:hover { background: var(--sg-surface); }
.sg-links a { color: #fff; font-weight: 500; text-decoration: none; }
.sg-links a::after { content: ""; position: absolute; inset: 0; }
.sg-links span { font-size: var(--wp--preset--font-size--sm); color: var(--sg-muted); }
.sg-links span::after { content: " ↗"; }

/* ---------- Contact ---------- */
#contact { padding-block: 48px 96px; }
.sg-contact { position: relative; overflow: hidden; padding: 80px 32px; border: 1px solid var(--sg-line); border-radius: 24px; background: var(--sg-navy); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.sg-contact::before { content: ""; position: absolute; left: 50%; top: -160px; width: 480px; height: 320px; margin-left: -240px; border-radius: 9999px; background: radial-gradient(closest-side, rgba(255, 181, 71, 0.28), rgba(255, 181, 71, 0)); pointer-events: none; }
.sg-contact > * { position: relative; margin: 0 !important; }
.sg-contact__title { font-size: var(--wp--preset--font-size--5-xl); line-height: 1; }
.sg-contact .sg-lead { max-width: 520px; }
.sg-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; border: 1px solid var(--sg-line); border-radius: 24px; background: var(--sg-navy); }
.sg-cta > * { margin: 0 !important; }
.sg-cta h2 { font-size: var(--wp--preset--font-size--3-xl); line-height: 36px; margin: 0 0 8px; }
.sg-cta p { color: var(--sg-mist); margin: 0; }

/* ---------- Article ---------- */
.sg-main--article { padding-top: 96px; }
.sg-article-head { display: flex; flex-direction: column; gap: 16px; padding: 64px 0 48px; }
.sg-article-head > * { margin: 0 !important; }
.sg-back a { font-size: var(--wp--preset--font-size--sm); color: var(--sg-muted); text-decoration: none; }
.sg-back a::before { content: "← "; }
.sg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--sg-mono); font-size: var(--wp--preset--font-size--xs); color: var(--sg-slate); }
.sg-meta > * { margin: 0 !important; }
.sg-meta__cat a { border-color: rgba(255, 181, 71, 0.4); color: var(--sg-amber); }
.sg-meta__cat .wp-block-post-terms__separator { display: none; }
.sg-meta__updated::before { content: "Updated "; }
.sg-article-head .wp-block-post-title { font-size: var(--wp--preset--font-size--5-xl); line-height: 1; }
.sg-featured img { border-radius: 16px; }
.sg-content > * + * { margin-top: 24px; }
.sg-content h2 { font-size: var(--wp--preset--font-size--2-xl); line-height: 32px; margin-top: 48px; color: #fff; }
.sg-content h3 { font-size: var(--wp--preset--font-size--xl); margin-top: 32px; color: #fff; }
.sg-content a { color: #fff; text-decoration-color: rgba(255, 181, 71, 0.6); text-underline-offset: 3px; }
.sg-content img { border-radius: 12px; height: auto; }
.sg-content pre { overflow-x: auto; }
.sg-content blockquote { margin-inline: 0; padding: 24px; border: 1px solid var(--sg-line); border-radius: 16px; background: var(--sg-surface); }
.sg-content code:not(pre code) { font-family: var(--sg-mono); font-size: 0.875em; padding: 2px 4px; border-radius: 4px; background: var(--sg-surface-2); }
.sg-content table { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--base); }
.sg-content th, .sg-content td { border: 1px solid var(--sg-line-2); padding: 8px 12px; }
.sg-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 64px 0 0; }
.sg-postnav > * { margin: 0 !important; }
.sg-postnav .wp-block-post-navigation-link { position: relative; padding: 20px; border: 1px solid var(--sg-line); border-radius: 16px; transition: background-color 300ms var(--sg-ease), border-color 300ms var(--sg-ease); }
.sg-postnav .wp-block-post-navigation-link:hover { background: var(--sg-surface); border-color: rgba(255, 190, 110, 0.3); }
.sg-postnav .post-navigation-link-next { text-align: right; grid-column: 2; }
.sg-postnav a { color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.sg-postnav a::after { content: ""; position: absolute; inset: 0; }
.sg-postnav .post-navigation-link__label { font-family: var(--sg-mono); font-size: var(--wp--preset--font-size--xs); font-weight: 400; color: var(--sg-muted); }
.sg-postnav [class*="__arrow"] { display: none; }

/* Reading progress */
.sg-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 2px; background: var(--sg-amber); box-shadow: 0 0 12px var(--sg-amber); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ---------- Footer ---------- */
.sg-footer { max-width: 1120px; margin: 0 auto !important; padding: 24px; padding-bottom: 48px; box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--sg-line); font-size: var(--wp--preset--font-size--sm); color: var(--sg-muted); }
.sg-footer > * { margin: 0 !important; }
.sg-footer__links { display: flex; gap: 16px; }
.sg-footer a { color: var(--sg-muted); text-decoration: none; }
.sg-footer a:hover { color: #fff; }

/* ---------- Motion ---------- */
.sg-motion .sg-reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--sg-ease), transform 700ms var(--sg-ease); }
.sg-motion .sg-reveal.is-visible { opacity: 1; transform: none; }

@keyframes sg-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sg-rise-sm { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sg-settle { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes sg-sweep { from { transform: rotate(12deg); } to { transform: rotate(-16deg); } }
@keyframes sg-search { 0% { transform: rotate(14deg); } 50% { transform: rotate(-20deg); } 100% { transform: rotate(14deg); } }
@keyframes sg-flicker { from { opacity: 0.75; } to { opacity: 1; } }
@keyframes sg-twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
	.sg-card:hover, .wp-block-button__link:hover { transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.sg-hero--full { height: max(640px, 100svh); }
	.sg-hero--tall { height: 560px; }
	.sg-hero--banner { height: 480px; }
	.sg-hero--short { height: 440px; }
	.sg-hero--full .sg-hero__inner { width: auto; min-width: 0; padding: 120px 24px 96px; justify-content: flex-end; }
	.sg-hero--full .sg-hero__shade { background: linear-gradient(to bottom, rgba(3, 6, 14, 0.1), rgba(3, 6, 14, 0.2) 40%, rgba(3, 6, 14, 0.85) 75%, var(--sg-night)); }
	.sg-hero-foot { left: 24px; bottom: 32px; }
	.sg-display { font-size: var(--wp--preset--font-size--4-xl) !important; }
	.sg-head h2, .sg-contact__title { font-size: var(--wp--preset--font-size--3-xl); line-height: 36px; }
	.sg-article-head .wp-block-post-title { font-size: var(--wp--preset--font-size--4-xl); }
	.sg-tagline { padding-block: 96px; }
	.sg-tagline__text { font-size: var(--wp--preset--font-size--3-xl); line-height: 36px; }
	.sg-section { padding-block: 64px 32px; }
	.sg-contact { padding: 48px 24px; }
	.sg-row { padding: 20px; }
	.sg-row__date { width: auto; }
	.sg-postnav { grid-template-columns: 1fr; }
	.sg-postnav .post-navigation-link-next { grid-column: 1; }
	.sg-header { top: 12px; }
	.sg-header__cta { display: none !important; }
}

/* Short heads sit above narrow lists: align their text with the list. */
.sg-hero--short .sg-hero__inner { max-width: 928px; }

/* About body comes from the page content. */
.sg-about { font-size: inherit; line-height: inherit; color: inherit; margin: 0 !important; }
.sg-about > * { margin-block: 0 !important; }
.sg-contact-part { margin: 0 !important; }
