:root {
    color-scheme: light;
    --bg: #f4f0e8;
    --paper: rgba(255, 252, 247, 0.76);
    --pill-bg: rgba(255, 45, 32, 0.04);
    --text: #171717;
    --muted: #5f5a52;
    --line: rgba(23, 23, 23, 0.12);
    --accent: #ff2d20;
    --accent-soft: rgba(255, 45, 32, 0.08);
    --shadow: 0 24px 64px rgba(50, 36, 24, 0.08);
    --image-shadow: 0 18px 36px rgba(26, 18, 12, 0.12);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111315;
    --paper: rgba(22, 25, 28, 0.82);
    --pill-bg: rgba(255, 141, 92, 0.1);
    --text: #f4efe6;
    --muted: #b9b1a5;
    --line: rgba(244, 239, 230, 0.14);
    --accent: #ff8d5c;
    --accent-soft: rgba(255, 141, 92, 0.14);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    --image-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    transition: background 220ms ease, color 220ms ease;
    background:
        radial-gradient(circle at top left, var(--accent-soft), transparent 30%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, white 18%) 0%, var(--bg) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

p,
h1 {
    margin: 0;
}

.page-shell {
    min-height: 100vh;
    padding: 24px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 380px);
    gap: 32px;
    width: min(980px, 100%);
    margin: 0 auto;
    align-items: center;
    min-height: calc(100vh - 48px);
}

.content,
.portrait {
    background: var(--paper);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    transition:
        background 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.content {
    padding: clamp(28px, 5vw, 56px);
    border-radius: 28px;
    position: relative;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.content::before {
    content: "php artisan inspire";
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 10px;
    background: var(--pill-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

h1 {
    margin-top: 10px;
    font-family: "Instrument Serif", serif;
    font-size: clamp(3.4rem, 10vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.015em;
}

.intro,
.note {
    max-width: 34rem;
    line-height: 1.75;
}

.intro {
    margin-top: 22px;
    font-size: 1.08rem;
}

.note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.94rem;
    opacity: 0.82;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.links a {
    position: relative;
    font-weight: 700;
    color: var(--accent);
}

.links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform-origin: left;
    transition: transform 180ms ease;
}

.links a:hover::after,
.links a:focus-visible::after {
    transform: scaleX(0.35);
}

.portrait {
    padding: 14px;
    border-radius: 28px;
}

.portrait img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--image-shadow);
}

@media (max-width: 860px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: auto;
        align-items: start;
    }

    .portrait {
        order: -1;
    }

    .portrait {
        max-width: 240px;
        padding: 10px;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 14px;
    }

    .content,
    .portrait {
        border-radius: 22px;
    }

    .content {
        padding: 24px 20px;
    }

    .portrait {
        padding: 10px;
        max-width: 200px;
    }

    h1 {
        font-size: clamp(3rem, 17vw, 4.3rem);
    }

    .links {
        gap: 12px 16px;
    }

    .intro,
    .note {
        line-height: 1.65;
    }
}
