/* RayCo site styles: change colors in the light/dark theme blocks below. */
:root {
  color-scheme: light;
  --page: #f8fafc; --surface: #fff; --surface-muted: #eef3f8;
  --text: #152435; --text-soft: #475569; --muted: #6c7a89;
  --border: #dbe3eb; --blue: #174f81; --blue-hover: #0c3c66;
  --shadow: 0 14px 50px rgba(18, 40, 61, .055);
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0c121a; --surface: #141e2a; --surface-muted: #182536;
  --text: #edf4fa; --text-soft: #b4c3d2; --muted: #92a4b5;
  --border: #2a3b4c; --blue: #7bb7e0; --blue-hover: #add9f6;
  --shadow: 0 15px 55px rgba(0, 0, 0, .18);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { background: var(--page); color: var(--text); margin: 0; min-height: 100vh; font-family: var(--sans); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; transition: background .2s, color .2s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.container { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 14px; top: -70px; background: var(--text); color: var(--page); padding: 10px 15px; z-index: 100; }
.skip-link:focus { top: 10px; }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-content { min-height: 92px; display: flex; align-items: center; gap: 28px; }
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; width: 175px; height: auto; }
:root[data-theme="dark"] .brand-logo, :root[data-theme="dark"] .feature-logo { filter: brightness(0) invert(1); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.65vw, 35px); margin-left: auto; }
.main-nav a { font-size: 14px; font-weight: 550; color: var(--text-soft); padding: 11px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.theme-toggle { background: var(--surface-muted); border: 1px solid var(--border); color: var(--text); border-radius: 9px; display: inline-flex; gap: 9px; align-items: center; padding: 10px 12px; margin-left: 12px; white-space: nowrap; font-size: 12px; }
.theme-toggle:hover { border-color: var(--blue); }
.theme-icon { width: 17px; height: 17px; flex: none; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
main { flex: 1; }
.home-main { display: flex; align-items: center; padding-block: 96px 112px; }
.home-layout { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr); gap: clamp(45px, 7vw, 105px); align-items: center; }
.eyebrow { color: var(--blue); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; font-weight: 750; margin: 0 0 21px; }
h1 { font-size: clamp(47px, 6.2vw, 84px); font-weight: 740; line-height: 1.08; letter-spacing: -.065em; margin: 0 0 24px; }
.intro { font-size: clamp(18px, 1.75vw, 22px); color: var(--text); line-height: 1.6; letter-spacing: -.016em; max-width: 600px; margin: 0 0 18px; }
.body-copy { color: var(--text-soft); font-size: 15px; line-height: 1.8; max-width: 520px; margin: 0; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 35px; }
.button { border: 1px solid var(--border); display: inline-flex; gap: 18px; align-items: center; padding: 13px 18px; border-radius: 8px; font-size: 14px; font-weight: 650; transition: background .15s, border .15s; }
.button.primary { color: #fff; background: #174f81; border-color: #174f81; }
.button.primary:hover { background: #0c3c66; }
.button.subtle { color: var(--text); background: transparent; }
.button.subtle:hover { border-color: var(--blue); }
.feature-box { padding: clamp(30px, 4vw, 55px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.feature-logo { display: block; max-width: 100%; width: 100%; height: auto; }
.feature-divider { height: 1px; background: var(--border); margin-block: 38px 26px; }
.feature-box p { font-weight: 650; font-size: 14px; margin: 0 0 17px; }
.interest-chips { display: flex; gap: 9px; flex-wrap: wrap; }
.interest-chips span { font-size: 12px; padding: 9px 12px; border-radius: 7px; color: var(--text-soft); background: var(--surface-muted); border: 1px solid var(--border); }
.page-main { padding-block: 80px 110px; }
.page-main h1 { font-size: clamp(47px, 5vw, 66px); margin-bottom: 19px; }
.page-lead { max-width: 650px; font-size: 17px; line-height: 1.7; color: var(--text-soft); margin: 0 0 40px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--border); padding: 28px; border-radius: 12px; min-height: 249px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.project-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-top { color: var(--muted); display: flex; justify-content: space-between; font-size: 12px; font-weight: 650; margin-bottom: 21px; }
.card-top span:last-child { color: var(--blue); font-size: 17px; }
.project-card h2 { font-size: 23px; letter-spacing: -.035em; margin: 0 0 10px; }
.project-card p { font-size: 14px; color: var(--text-soft); line-height: 1.7; margin: 0; }
.card-foot { margin-top: auto; padding-top: 23px; font-size: 12px; font-weight: 700; color: var(--blue); }
.below-grid { color: var(--muted); font-size: 14px; margin-top: 28px; }
.below-grid a, .read-next a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.narrow-page { width: min(790px, calc(100% - 64px)); }
.reading-content { font-size: 17px; line-height: 1.9; color: var(--text-soft); }
.reading-content p { margin: 0 0 20px; }
.reading-content h2 { margin: 43px 0 17px; color: var(--text); letter-spacing: -.035em; font-size: 24px; }
.reading-content .interest-chips { margin-bottom: 32px; }
.reading-content .read-next { font-size: 15px; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 24px; margin: 31px 0 30px; color: var(--text); }
.contact-link:hover { border-color: var(--blue); }
.contact-link > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.contact-link strong { font-size: 19px; }
.contact-link small { color: var(--muted); font-size: 13px; }
.reading-content .contact-note { font-size: 14px; color: var(--muted); }
.site-footer { margin-top: auto; border-top: 1px solid var(--border); }
.footer-content { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding-block: 23px; color: var(--muted); font-size: 12px; }
.footer-content a:hover { color: var(--blue); }
@media (max-width: 900px) {
 .header-content { gap: 18px; }
 .brand-logo { width: 142px; }
 .main-nav { gap: 17px; }
 .home-layout { grid-template-columns: 1fr; }
 .home-main { padding-block: 75px; }
 .home-aside { max-width: 570px; }
}
@media (max-width: 670px) {
 .container, .narrow-page { width: min(100% - 32px, 1140px); }
 .header-content { padding-block: 16px; min-height: auto; flex-wrap: wrap; row-gap: 12px; justify-content: space-between; }
 .brand-logo { width: 140px; }
 .main-nav { order: 3; width: 100%; justify-content: space-between; margin-left: 0; }
 .main-nav a { padding: 8px 0; font-size: 13px; }
 .theme-toggle { margin-left: 0; }
 .home-main { padding-block: 66px 75px; }
 h1 { font-size: 53px; }
 .page-main { padding-block: 65px 80px; }
 .project-grid { grid-template-columns: 1fr; gap: 14px; }
 .project-card { min-height: 215px; }
 .footer-content { flex-wrap: wrap; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
