:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --ink: #1e1d2b;
  --quiet: #545261;
  --accent: #4434ba;
  --lime: #e7f47d;
  --line: #ceccd3;
  font: 100%/1.5 system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #8272ed; outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.top, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; }
.top { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: white; font-family: Georgia, serif; font-style: italic; }
.brand-role { color: var(--quiet); font-weight: 450; }
nav { display: flex; gap: clamp(1rem, 4vw, 2.4rem); }
nav a { text-decoration: none; font-weight: 650; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(1.5rem, 5vw, 4.8rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.6rem); }
.label { display: flex; gap: .55rem; align-items: center; font-size: .875rem; font-weight: 650; margin: 0 0 1rem; }
.label span { background: var(--accent); border-radius: 50%; width: .52rem; height: .52rem; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(2.75rem, 5.7vw, 5.6rem); letter-spacing: -.065em; line-height: .99; margin-bottom: 1.35rem; }
h1 em { color: var(--accent); }
h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1.03; letter-spacing: -.055em; margin-bottom: 1rem; }
.lead { max-width: 33ch; color: var(--quiet); font-size: 1.125rem; }
.actions { display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; background: var(--accent); color: white; padding: .7rem 1.15rem; border-radius: .38rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #302494; }
.underlined { font-weight: 650; text-underline-offset: .27em; }
.underlined:hover { text-decoration-thickness: 2px; }
.preview { display: grid; justify-items: center; gap: .8rem; min-width: 0; padding: clamp(.9rem, 3vw, 2.2rem); background: #e5e0ff; border: 1px solid #d3ccf8; border-radius: .8rem; text-decoration: none; }
.preview:hover .preview-caption { text-decoration: underline; }
.browser { width: 100%; overflow: hidden; border-radius: .55rem; border: 1px solid #aaa1cb; box-shadow: 0 .85rem 2rem #38257226; }
.browser-bar { display: flex; align-items: center; gap: .28rem; padding: .45rem .65rem; background: #fff; font-size: .82rem; }
.browser-bar i { width: .43rem; height: .43rem; border-radius: 50%; background: #c3bdd9; }
.browser-bar span { margin-inline: auto; }
.sample { display: grid; position: relative; overflow: hidden; color: #fff9ed; background: #611d2d; }
.sample img { width: 100%; height: auto; aspect-ratio: 1.47; object-fit: cover; }
.sample::after { content: ""; position: absolute; inset: 2.15rem 0 0; background: linear-gradient(90deg, #310b1ae6, #310b1a00 83%); }
.sample-brand { padding: .38rem .65rem; font: italic 1rem Georgia, serif; }
.sample-title { position: absolute; bottom: 11%; left: 7%; z-index: 1; font: 500 clamp(1.9rem, 4.5vw, 3.8rem)/.97 Georgia, serif; letter-spacing: -.055em; }
.preview-caption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; font-weight: 680; }
.preview-caption small { font-size: .875rem; color: var(--quiet); font-weight: 450; }
.project { background: #28204f; color: white; }
.project-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.project h2 { margin-bottom: 0; }
.project p:not(.label) { max-width: 45ch; }
.light span { background: var(--lime); }
.project a { color: var(--lime); }
.details { padding-block: clamp(3rem, 7vw, 5.75rem); display: grid; grid-template-columns: .85fr 1fr; gap: 1.25rem 3.5rem; }
.details dl { margin: 0; }
.details dl div { border-top: 1px solid var(--line); padding-block: .85rem; }
.details dt { font-weight: 750; font-size: 1.125rem; }
.details dd { margin: .18rem 0 0; color: var(--quiet); }
.contact { background: var(--lime); padding: clamp(1.5rem, 5vw, 3.4rem); border-radius: .8rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.contact h2 { max-width: 16ch; }
.contact p { margin-bottom: 0; }
.address { display: block; margin-top: .6rem; text-underline-offset: .18em; overflow-wrap: anywhere; }
.footer { color: var(--quiet); font-size: .875rem; flex-wrap: wrap; }
@media (max-width: 760px) {
  .hero, .project-inner, .details { grid-template-columns: 1fr; }
  .preview { max-width: 33rem; }
}
@media (max-width: 470px) {
  .wrap { width: calc(100% - 2rem); }
  .brand-role, .nav-demo { display: none; }
}
