/* artromeos.com, Ferat Romeo Ozbey. Plain CSS, no build step.
   Look: a greenhouse. Pale glass-green page, one deep green pane for the hero,
   petal pink used once. One typeface (Bricolage Grotesque) in two weights. */

:root {
    --page: #f3f5f0;
    --panel: #e8ede7;
    --ink: #12271d;
    --muted: #4f6358;
    --line: #cdd6cf;
    --green: #143a2a;
    --green-2: #1d4d38;
    --on-green: #d9e5dc;
    --petal: #f4b4c4;
    --link: #1a6a46;
    --font: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
    --wide: 1180px;
    --radius: 20px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #0d1a13;
        --panel: #132419;
        --ink: #e7eee8;
        --muted: #9fb2a6;
        --line: #26382d;
        --green: #143a2a;
        --green-2: #1d4d38;
        --on-green: #d9e5dc;
        --petal: #f2a9bd;
        --link: #8dd1ab;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--font);
    font-optical-sizing: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--petal); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--green); color: #fff; padding: 8px 12px; z-index: 10; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

/* Type scale: 1.0625 / 1.25 / 1.5 / 2.1 / 3.4 (clamped) */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.1; }
h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.25rem; line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }
.prose { max-width: 36em; }
.prose p:last-child { margin-bottom: 0; }

/* Header */
header.site .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding-top: 22px;
    padding-bottom: 14px;
}
.brand { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--muted); letter-spacing: 0; }
nav { display: flex; gap: 4px; }
nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; }
nav a:hover { background: var(--panel); }
nav a[aria-current="page"] { background: var(--green); color: #fff; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 28px; }
.button {
    display: inline-block;
    background: var(--green);
    color: #fff;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
}
.button:hover { background: var(--green-2); text-decoration: none; }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button.quiet:hover { border-color: var(--ink); background: transparent; }
@media (prefers-color-scheme: dark) {
    .button { background: var(--link); color: var(--page); }
    .button:hover { background: #a5e0c0; }
    nav a[aria-current="page"] { background: var(--link); color: var(--page); }
}

/* The pane: one deep green panel, inset from the page edge, for the hero */
.pane {
    margin: 10px 0 0;
    background: var(--green);
    color: var(--on-green);
    border-radius: var(--radius);
    padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
    display: grid;
    gap: 40px;
    overflow: hidden;
}
.pane h1 { color: var(--petal); }
.pane .lead { color: var(--on-green); margin-top: 22px; }
.pane a:not(.button) { color: #fff; }
.pane .button { background: var(--petal); color: var(--green); }
.pane .button:hover { background: #fbc9d5; }
.pane .button.quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.pane .button.quiet:hover { border-color: #fff; }
@media (min-width: 900px) {
    .pane { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px; }
}

/* The window stack: two real screenshots, one over the other */
.stack { position: relative; margin: 0; aspect-ratio: 4 / 3.2; }
.stack img {
    position: absolute;
    width: 78%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.12);
    background: #fff;
}
.stack .back { left: 0; top: 0; }
.stack .front { right: 0; bottom: 0; }
.stack figcaption, .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Page sections */
.section { padding: clamp(48px, 7vw, 88px) 0 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 10px 0 0; }

/* Product rows (Home and Work) */
.products { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.product {
    display: grid;
    gap: 20px 48px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.product figure { margin: 0; }
.product figure img, .product .diagram {
    display: block;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
}
.product h3 a, .product h2 a { color: inherit; text-decoration: none; }
.product h3 a:hover, .product h2 a:hover { text-decoration: underline; }
.product .where { color: var(--muted); margin: 6px 0 12px; }
.product p { margin-bottom: 0.8em; }
.product .facts { margin: 14px 0 0; padding: 0; list-style: none; }
.product .facts li { padding: 9px 0 9px 20px; position: relative; border-top: 1px solid var(--line); }
.product .facts li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--petal); }
@media (min-width: 760px) {
    .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 44px 0; }
    .product.flip figure, .product.flip .diagram { order: 2; }
}

/* The blueprint drawn from its own parts (there is no demo picture yet) */
.product .diagram, .diagram {
    background: var(--panel);
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    aspect-ratio: 8 / 5;
    align-content: center;
    font-size: 0.9375rem;
    line-height: 1.35;
}
.diagram div {
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 14px 12px;
    display: grid;
    align-content: start;
    gap: 4px;
}
.diagram b { font-weight: 600; }
.diagram span { color: var(--muted); font-size: 0.875rem; }
.diagram div:nth-child(4) { background: var(--green); color: var(--on-green); border-color: var(--green); }
.diagram div:nth-child(4) span { color: var(--on-green); }

/* The build sequence (a real sequence, so it is numbered) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before {
    content: counter(step);
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid var(--green);
    display: grid; place-items: center;
    font-weight: 700; font-size: 0.9375rem;
    color: var(--green);
}
.steps li:last-child::before { background: var(--green); color: var(--petal); }
.steps b { display: block; font-weight: 600; font-size: 1.125rem; margin-bottom: 2px; align-self: center; }
.steps span { grid-column: 2; color: var(--muted); }
@media (min-width: 760px) {
    .steps { grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
}
@media (prefers-color-scheme: dark) {
    .steps li::before { border-color: var(--link); color: var(--link); }
    .steps li:last-child::before { background: var(--link); color: var(--page); }
}

/* Side-by-side blocks (About, Contact) */
.split { display: grid; gap: 32px 64px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; border-radius: 10px; }
.portrait figcaption { color: var(--muted); font-size: 0.9375rem; margin-top: 8px; }

dl.stack-list { margin: 0; border-top: 1px solid var(--line); }
dl.stack-list div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.stack-list dt { font-weight: 600; }
dl.stack-list dd { margin: 0; color: var(--muted); }

.mail { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; word-break: break-all; }

/* Closing band on Home and Work */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band h2 { max-width: 20em; }

/* Privacy: the kept policy text */
.policy h1 { margin-bottom: 0.6em; }
.policy h2 { font-size: 1.35rem; margin: 1.8em 0 0.4em; }
.policy ul { padding-left: 1.2em; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 88px); color: var(--muted); font-size: 0.9375rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 22px; padding-bottom: 30px; }
footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
    a, .button, nav a { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}
