:root {
  color-scheme: dark;
  --ink: #f3f7fa;
  --muted: #a9b9c7;
  --accent: #6ce4ed;
  --line: #263641;
  --page: #0b1015;
  --panel: #111a22;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p { color: var(--muted); line-height: 1.65; }
.frame { width: min(100% - 3rem, 72rem); margin-inline: auto; }

.site-header, .site-footer {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-header img, .site-footer img { display: block; object-fit: contain; object-position: left; }
nav { display: flex; gap: clamp(.85rem, 3vw, 2rem); }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4rem, 9vw, 8rem);
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 5.8vw, 5.25rem); }
h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 38ch; font-size: 1.1rem; margin-block: 1.25rem 1.75rem; }

.cta {
  display: inline-block;
  padding: .8rem 1.05rem;
  border-radius: .4rem;
  background: var(--accent);
  color: #0b2429;
  text-decoration: none;
  font-weight: 650;
}
.cta:hover { background: #95f0f4; }

.example { overflow: hidden; color-scheme: light; color: #24302a; border: 1px solid #80908a; border-radius: .8rem; background: #f1eee5; box-shadow: 0 1.5rem 4rem #0006; }
.example-header, .example-footer { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; padding: 1rem; font-size: .88rem; }
.example-header span:first-child { font-weight: 700; }
.example-header span:last-child { color: #47544c; }
.example-body { min-height: 16rem; padding: clamp(1.5rem, 5vw, 3rem); display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(130deg, #34504c, #172d2b); color: #f3eee1; }
.example-body p { color: inherit; font-family: Georgia, serif; font-size: clamp(1.75rem, 3.4vw, 3.1rem); line-height: 1.08; margin: 0 0 .7rem; }
.example-footer { justify-content: flex-start; }

.services, .work { padding-block: 2.25rem 3.5rem; }
h2 { font-size: clamp(1.95rem, 3.8vw, 3rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.35rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.service-grid article, .work article { border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); padding: 1.35rem; }
article p { margin-bottom: 0; }
.work article { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.35rem; }
.work p { max-width: 58ch; }
.secondary { background: transparent; border: 1px solid var(--line); color: var(--accent); }
.secondary:hover { background: #1b2933; }
.site-footer { border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .hero, .service-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 3rem 2rem; }
  .example-body { min-height: 12rem; }
}
@media (max-width: 370px) {
  .frame { width: calc(100% - 2rem); }
  .site-header img { width: 105px; }
  nav { font-size: .9rem; }
}
