:root {
  color-scheme: dark;
  --ink: #f7f1e6;
  --muted: #c4cbd6;
  --gold: #e6bd7c;
  --line: #354052;
  background: #0b1320;
  color: var(--ink);
  font: 16px/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--gold); text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.shell { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.top, footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .85rem 2rem; padding-block: 1.25rem; }
.top { border-bottom: 1px solid var(--line); }
.brand, nav a { color: var(--ink); text-decoration: none; }
.brand { font: 1.5rem Georgia, serif; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 4fr 6fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.5rem, 8vw, 6rem); }
h1, h2, h3 { margin: 0; font-family: Georgia, serif; font-weight: 400; line-height: 1.08; }
h1 { max-width: 9ch; font-size: clamp(3rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: 1.55rem; }
p, figcaption { color: var(--muted); }
.label { margin: 0 0 1rem; color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; font-weight: 700; }
.button { display: inline-block; padding: .65rem 1rem; color: #151a20; background: var(--gold); border-radius: 3px; text-decoration: none; font-weight: 700; }
.button:hover { background: #f3d7ae; }
figure { margin: 0; }
img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px; }
figcaption { margin-top: .45rem; font-size: .8rem; }
.work, .contact { padding-block: 3rem; border-top: 1px solid var(--line); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.projects article { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.product { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem 2rem; align-items: center; margin-bottom: 3rem; border: 1px solid var(--line); background: #121e30; padding: clamp(1.4rem, 5vw, 3rem); }
.product p:last-child { margin-bottom: 0; max-width: 54ch; }
.actions { display: grid; gap: .7rem; justify-items: start; }
.contact .button { margin-top: 1rem; }
footer { border-top: 1px solid var(--line); }
@media (max-width: 740px) {
  .shell { width: calc(100% - 2rem); }
  .hero, .projects, .product { grid-template-columns: 1fr; }
}
