/* ==========================================================================
   SkyViews content pages: blog, articles, service pages.
   Same palette and typeface as the home page, without the template bundle,
   so these pages load fast (they exist mainly for search).
   ========================================================================== */

:root {
    --paper: #f5f3ef;
    --paper-deep: #ede9d2;
    --card: #ffffff;
    --ink: #2c2721;
    --ink-soft: #5f574a;
    --ink-mute: #736d5c;
    --brown: #a58a6c;
    --brown-deep: #8a7259;
    --night: #3d362f;
    --night-soft: #635039;
    --rule: rgba(44, 39, 33, 0.14);
    --rule-light: rgba(237, 233, 210, 0.22);

    --font: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --shell: 1240px;
    --measure: 68ch;
    --gutter: clamp(20px, 5vw, 64px);
    --radius: 18px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    font-weight: 350;
    line-height: 1.7;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--brown-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.eyebrow {
    margin: 0 0 16px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 243, 239, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rule);
}

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 76px;
}

.site-header__logo img {
    width: auto;
    height: 26px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.site-nav a {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--brown-deep);
}

.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.site-header__langs {
    display: flex;
    gap: 10px;
    font-size: 0.82rem;
}

.site-header__langs a {
    color: var(--ink-mute);
    text-decoration: none;
}

.site-header__langs a[aria-current="true"] {
    color: var(--ink);
    font-weight: 600;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease;
}

.pill:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

.pill__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brown);
}

.pill__arrow svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
    transform: rotate(-45deg);
}

.pill--light {
    background: #fff;
    color: var(--ink);
}

.pill--light:hover {
    background: var(--paper);
    color: var(--ink);
}

.pill--ghost {
    padding: 13px 22px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--rule);
}

.pill--ghost:hover {
    background: var(--paper-deep);
    color: var(--ink);
}

/* mobile navigation: native <details>, works without JavaScript */
.mobile-nav {
    display: none;
    margin-left: auto;
}

.mobile-nav summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 0.9rem;
    list-style: none;
    cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    padding: 18px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 20px 40px rgba(44, 39, 33, 0.08);
}

.mobile-nav__panel a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    font-size: 1.25rem;
    text-decoration: none;
}

.mobile-nav__panel .pill {
    display: inline-flex;
    margin-top: 20px;
    padding: 8px 8px 8px 20px;
    border: 0;
    color: #fff;
    font-size: 1rem;
}

.mobile-nav__langs {
    display: flex;
    gap: 18px;
    margin-top: 18px;
}

.mobile-nav__langs a {
    display: inline;
    padding: 0;
    border: 0;
    font-size: 0.95rem;
    color: var(--ink-mute);
}

.mobile-nav__langs a[aria-current="true"] {
    color: var(--ink);
    font-weight: 600;
}

@media (max-width: 960px) {
    .site-nav,
    .site-header__langs,
    .site-header__bar > .pill {
        display: none;
    }

    .mobile-nav {
        display: block;
    }
}

/* ----------------------------------------------------------- breadcrumbs */

.breadcrumbs {
    margin: 0;
    padding: 28px 0 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ink-mute);
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--rule);
}

.breadcrumbs a {
    color: var(--ink-mute);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--ink);
}

/* --------------------------------------------------------- blog listing */

.blog-hero {
    padding-block: clamp(48px, 8vw, 110px) clamp(36px, 5vw, 64px);
}

.blog-hero h1,
.page-title {
    max-width: 18ch;
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--brown);
}

.blog-hero p,
.lede {
    max-width: 56ch;
    margin: 0;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    color: var(--ink-soft);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(36px, 4vw, 56px) clamp(18px, 2.4vw, 32px);
    padding-bottom: clamp(72px, 9vw, 140px);
}

@media (max-width: 1000px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.post-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-deep);
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) {
    .post-card__media:hover img {
        transform: scale(1.04);
    }
}

.post-card__meta {
    margin: 18px 0 8px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.post-card h2,
.post-card h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.25;
}

.post-card h2 a,
.post-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
    color: var(--brown-deep);
}

.post-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------- article */

.article-head {
    max-width: 860px;
    margin: 0 auto;
    padding-block: clamp(28px, 5vw, 64px) clamp(28px, 4vw, 44px);
}

.article-head h1 {
    margin: 0 0 22px;
    font-size: clamp(2.2rem, 5vw, 3.9rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-mute);
}

.article-hero {
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--paper-deep);
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prose {
    max-width: var(--measure);
    margin: 0 auto;
    padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
    font-size: 1.125rem;
    line-height: 1.78;
}

.prose > :first-child {
    margin-top: 0;
}

.prose h2 {
    margin: 2.2em 0 0.6em;
    font-size: clamp(1.6rem, 2.6vw, 2.05rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.prose h3 {
    margin: 1.8em 0 0.5em;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.3;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose blockquote {
    margin: 0 0 1.15em;
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.prose li {
    margin-bottom: 0.45em;
}

.prose li::marker {
    color: var(--brown);
}

.prose strong {
    font-weight: 600;
}

.prose a {
    color: var(--brown-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--ink);
}

.prose blockquote {
    padding: 20px 24px;
    border-left: 3px solid var(--brown);
    border-radius: 0 12px 12px 0;
    background: var(--paper-deep);
    font-size: 1.05rem;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.table-wrap {
    margin: 0 0 1.4em;
    overflow-x: auto;
}

.prose table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.98rem;
    line-height: 1.5;
}

.prose th,
.prose td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
}

.prose thead th {
    border-bottom: 2px solid var(--ink);
    font-weight: 600;
}

/* service offer at the end of an article */
.offer {
    max-width: 960px;
    margin: 0 auto clamp(56px, 7vw, 96px);
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius);
    background: var(--night);
    color: var(--paper-deep);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 40px;
}

.offer .eyebrow {
    color: rgba(237, 233, 210, 0.6);
}

.offer h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 300;
    line-height: 1.2;
    color: #fff;
}

.offer p {
    margin: 0;
    color: rgba(237, 233, 210, 0.82);
}

.offer__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.offer__actions .link {
    color: var(--paper-deep);
    font-size: 0.92rem;
}

@media (max-width: 760px) {
    .offer {
        grid-template-columns: 1fr;
    }
}

.related {
    padding: clamp(56px, 7vw, 96px) 0;
    border-top: 1px solid var(--rule);
}

.related h2 {
    margin: 0 0 32px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 300;
    color: var(--brown);
}

.related .post-grid {
    padding-bottom: 0;
}

/* ---------------------------------------------------------- service page */

.service-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 110px);
}

.service-hero__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper-deep);
}

.service-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.service-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

@media (max-width: 900px) {
    .service-hero {
        grid-template-columns: 1fr;
    }

    .service-hero__media {
        aspect-ratio: 4 / 3;
        order: -1;
    }
}

.section {
    padding: clamp(64px, 8vw, 128px) 0;
}

.section--deep {
    background: var(--paper-deep);
}

.section--night {
    background: var(--night);
    color: var(--paper-deep);
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--brown);
}

.section--night .section-head h2 {
    color: #fff;
}

.section-head p {
    margin: 0;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.section--night .section-head p,
.section--night p {
    color: rgba(237, 233, 210, 0.82);
}

.options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 28px);
}

.option {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3.4vw, 44px);
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--rule);
}

.option--dark {
    background: var(--night);
    border-color: var(--night);
    color: var(--paper-deep);
}

.option h3 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 400;
    line-height: 1.2;
}

.option--dark h3 {
    color: #fff;
}

.option p {
    margin: 0 0 20px;
    color: var(--ink-soft);
}

.option--dark p {
    color: rgba(237, 233, 210, 0.82);
}

.ticks {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.ticks li {
    position: relative;
    padding-left: 28px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--brown);
    border-bottom: 2px solid var(--brown);
    transform: rotate(-45deg) translateY(-50%);
}

.option .pill,
.option .pill--ghost {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 820px) {
    .options {
        grid-template-columns: 1fr;
    }
}

.inventory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--rule);
}

.inventory__group {
    padding: 28px 28px 32px 0;
    border-bottom: 1px solid var(--rule);
}

.inventory__group h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 500;
}

.inventory__group ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .inventory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .inventory {
        grid-template-columns: 1fr;
    }
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    padding-top: 20px;
    border-top: 1px solid var(--rule-light);
    counter-increment: step;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--brown);
}

.steps h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
}

.steps p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
}

.split__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.faq {
    max-width: 860px;
    border-top: 1px solid var(--rule);
}

.faq details {
    border-bottom: 1px solid var(--rule);
}

.faq summary {
    position: relative;
    padding: 22px 48px 22px 0;
    font-size: 1.15rem;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--brown);
    transform: translateY(-50%);
    transition: transform 0.25s ease;
}

.faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq details > div {
    padding: 0 0 24px;
    color: var(--ink-soft);
}

.faq details > div p {
    margin: 0 0 0.8em;
}

.cta-band {
    padding: clamp(64px, 8vw, 120px) 0;
    text-align: center;
}

.cta-band h2 {
    max-width: 22ch;
    margin: 0 auto 18px;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--brown);
}

.cta-band p {
    max-width: 56ch;
    margin: 0 auto 30px;
    color: var(--ink-soft);
}

.cta-band .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.contact-line {
    margin-top: 22px;
    font-size: 0.95rem;
    color: var(--ink-mute);
}

.contact-line a {
    color: var(--ink);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
    padding: clamp(48px, 6vw, 80px) 0 36px;
    background: var(--paper-deep);
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--rule);
}

.site-footer__grid img {
    width: auto;
    height: 26px;
    margin-bottom: 16px;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 2;
}

.site-footer a {
    color: var(--ink);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--brown-deep);
}

.site-footer__legal {
    padding-top: 22px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--ink-mute);
}

@media (max-width: 760px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
