:root {
    color-scheme: light;
    --ink: #202336;
    --muted: #62677c;
    --accent: #5c3bbd;
    --line: #e4e5ed;
    --paper: #f8f9fc;
}

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

html {
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #9174e1;
    outline-offset: 5px;
    border-radius: 4px;
}

.studio-container {
    width: calc(100% - 64px);
    max-width: 1100px;
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 10;
    padding: 10px 16px;
    transform: translateY(-180%);
    background: #fff;
    color: var(--accent);
}

.skip-link:focus {
    transform: none;
}

.studio-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.studio-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 24px;
}

.studio-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.4px;
    line-height: 1.3;
    text-decoration: none;
}

.studio-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #efeafa;
    color: var(--accent);
}

.studio-brand svg {
    width: 25px;
    height: 25px;
}

.studio-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.studio-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
}

.studio-nav a:hover,
.studio-nav a[aria-current="page"] {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.home-main {
    padding-top: 32px;
}

/* A compact, content-sized banner replaces the theme's full-screen header. */
.studio-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 280px;
    overflow: hidden;
    padding: 36px 48px;
    border-radius: 20px;
    background: #281449 url("../images/header.jpg") center / cover no-repeat;
    color: #fff;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
}

.studio-hero .eyebrow {
    color: #ded5f5;
}

.studio-hero h1 {
    margin: 0;
    font-size: clamp(36px, 4.3vw, 52px);
    font-weight: 700;
    letter-spacing: -1.8px;
    line-height: 1.12;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 12px;
    margin-top: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 550;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.hero-link:hover {
    color: #e2d8ff;
}

.hero-art {
    position: absolute;
    right: 64px;
    width: 190px;
    height: 190px;
    color: #d7ccf5;
    opacity: 0.6;
    transform: rotate(-10deg);
}

.hero-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.studio-details {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 56px;
    padding: 44px 0 48px;
}

.studio-details h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.6px;
    line-height: 1.35;
}

.section-label {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 1.5px;
    line-height: 1.5;
    text-transform: uppercase;
}

.studio-details p:not(.section-label) {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.studio-contact {
    padding-left: 40px;
    border-left: 1px solid var(--line);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    gap: 12px;
    margin-top: 8px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.contact-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.studio-footer {
    border-top: 1px solid var(--line);
}

.studio-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    gap: 12px 32px;
    padding-block: 16px;
    color: var(--muted);
    font-size: 12px;
}

.studio-footer p {
    margin: 0;
    color: inherit;
    font: inherit;
}

.studio-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.studio-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}

.studio-footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Both policies share a readable single-column layout. */
.policy-page {
    background: #fff;
}

.policy-main {
    max-width: 896px;
    padding-block: 36px 64px;
}

.policy-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.policy-back:hover {
    color: var(--accent);
}

.policy-title {
    margin: 0 0 32px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: inherit;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.25;
}

.policy-copy {
    color: #45495a;
    overflow-wrap: anywhere;
}

.policy-copy p,
.policy-copy li {
    height: auto;
    padding-block: 0;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.85;
    text-align: left;
}

.policy-copy p {
    margin: 0 0 20px;
}

.policy-copy span {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.policy-copy a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy-copy .reference-text {
    color: inherit;
    text-decoration: none;
}

.policy-copy h2,
.policy-copy h3,
.policy-copy h4,
.policy-copy h5 {
    margin: 28px 0 14px;
    padding: 0;
    color: var(--ink);
    font-family: inherit;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.3px;
    line-height: 1.5;
    text-align: left;
}

.policy-copy li {
    margin-bottom: 8px;
}

.policy-table {
    max-width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.policy-table table {
    width: 100%;
    min-width: 580px;
    margin: 0;
    border-spacing: 0;
    border-collapse: collapse;
}

.policy-table td,
.policy-table th {
    padding: 16px;
    border: 1px solid var(--line);
    vertical-align: top;
}

.policy-table p:last-child {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .hero-art {
        right: 32px;
        width: 130px;
        height: 130px;
        opacity: 0.35;
    }

    .studio-hero {
        padding-inline: 32px;
    }

    .studio-details {
        gap: 32px;
    }

    .studio-contact {
        padding-left: 28px;
    }
}

@media (max-width: 640px) {
    .studio-container {
        width: calc(100% - 40px);
    }

    .studio-header-inner {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        padding-top: 16px;
    }

    .studio-brand {
        width: 100%;
    }

    .studio-nav {
        gap: 24px;
    }

    .studio-nav a {
        min-height: 46px;
        font-size: 13px;
    }

    .home-main {
        padding-top: 20px;
    }

    .studio-hero {
        min-height: 248px;
        padding: 28px 24px;
        border-radius: 16px;
    }

    .studio-hero h1 {
        font-size: clamp(30px, 8vw, 42px);
        letter-spacing: -1.2px;
    }

    .hero-art {
        display: none;
    }

    .studio-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-block: 32px;
    }

    .studio-contact {
        padding-top: 28px;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .studio-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-block: 20px;
    }

    .policy-main {
        padding-block: 20px 40px;
    }

    .policy-copy p,
    .policy-copy li {
        font-size: 15px;
    }
}

@media print {
    .studio-header,
    .studio-footer,
    .skip-link,
    .policy-back {
        display: none;
    }

    .policy-main {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .policy-table {
        overflow: visible;
    }

    .policy-table table {
        min-width: 0;
    }
}
