/* Fonts are self-hosted (SIL Open Font License), so no visitor data goes to Google Fonts. */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2?v=a75c792f98) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2?v=4c98b9d490) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* bengali */
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-bengali-bengali.woff2?v=d8cebde059) format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
/* devanagari */
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-devanagari-devanagari.woff2?v=12223f2bee) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}

/* Fallbacks sized to Archivo's metrics (fontTools: ascent 878, descent 210, avg width 0.449 em),
   so swapping in the web font barely moves text (Lighthouse CLS). */
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial'), local('ArialMT');
  size-adjust: 101.8%;
  ascent-override: 86.3%;
  descent-override: 20.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo Fallback Android';
  src: local('Roboto');
  size-adjust: 101%;
  ascent-override: 86.9%;
  descent-override: 20.8%;
  line-gap-override: 0%;
}

/*
 * ganska.pl
 * A fashion-house page: white paper, true black, one oxblood accent for what is current.
 * Archivo's width axis does the work: expanded for the wordmark and headings, normal for reading.
 */
:root {
    --paper: #ffffff;
    --ink: #000000;
    --stone: #f0efec;
    --grey: #6b6b6b;
    --rule: #d9d8d4;
    --oxblood: #6e1f2b;
    --banner-bg: #000000;
    --banner-ink: #ffffff;

    --font: "Archivo", "Archivo Fallback", "Archivo Fallback Android", "Noto Sans Devanagari", "Noto Sans Bengali", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    --gutter: clamp(16px, 4vw, 56px);
    --max: 1320px;
    --col-gap: clamp(20px, 3vw, 40px);

    color-scheme: light;
}

/* Dark follows the system unless the visitor picked a theme with the switch (theme.js sets data-theme). */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #000000;
        --ink: #f4f3f0;
        --stone: #161616;
        --grey: #a3a3a3;
        --rule: #333333;
        --oxblood: #d27b89;
        --banner-bg: #f4f3f0;
        --banner-ink: #000000;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #000000;
    --ink: #f4f3f0;
    --stone: #161616;
    --grey: #a3a3a3;
    --rule: #333333;
    --oxblood: #d27b89;
    --banner-bg: #f4f3f0;
    --banner-ink: #000000;
    color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    font-weight: 400;
    font-stretch: 100%;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

:lang(hi), :lang(bn) { line-height: 1.8; }
:lang(zh) { line-height: 1.85; }

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

a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood); }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

h1, h2, h3, p { margin: 0; }
h3 { font-size: 1rem; font-weight: 600; }

.skip {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    padding: .5em 1em;
    background: var(--ink);
    color: var(--paper);
}
.skip:focus { top: 8px; }

/* ---------- Header ---------- */

.top {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    justify-content: space-between;
    align-items: baseline;
    font-size: .875rem;
}
.top-contact { text-decoration: none; padding: 4px 0; }
.top-contact:hover { text-decoration: underline; }

.top-right { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
/* Padding keeps every link at least 24px tall (WCAG 2.5.8). */
.langs a { text-decoration: none; color: var(--grey); padding: 4px 0; }
.langs a:hover { color: var(--ink); }
/* Language names in their own scripts use system fonts: waiting for Noto here would reflow the header. */
.langs a:lang(hi), .langs a:lang(bn), .langs a:lang(zh) { font-family: system-ui, sans-serif; }
.langs a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--oxblood); text-decoration-thickness: 2px; }

/* A half-filled circle for the theme switch; the fill moves with aria-pressed. */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font: inherit;
    color: var(--grey);
    background: none;
    border: 0;
    cursor: pointer;
}
/* Until theme.js enables it the switch keeps its space, invisible: showing it later would push the page down (CLS). */
.theme-toggle[hidden] { visibility: hidden; }
.theme-toggle:hover, .theme-toggle[aria-pressed="true"] { color: var(--ink); }
.theme-toggle::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.theme-toggle[aria-pressed="true"]::before { background: currentColor; }

/* ---------- Hero ---------- */

main > section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
}
main > .hero { padding-top: clamp(32px, 7vw, 96px); overflow-x: clip; }

/* The name set as a house wordmark: expanded, light, edge to edge. */
.wordmark {
    grid-column: 1 / -1;
    font-size: min(8.6vw, 116px);
    font-weight: 300;
    font-stretch: 125%;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: .95;
    white-space: nowrap;
    padding-bottom: clamp(20px, 3vw, 36px);
    border-bottom: 1px solid var(--ink);
    margin-bottom: clamp(24px, 3vw, 40px);
    animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes settle {
    from { letter-spacing: .14em; opacity: 0; }
    to { letter-spacing: .01em; opacity: 1; }
}

.hero-role { grid-column: 1 / 4; }
.role { font-weight: 600; line-height: 1.35; }
.place { color: var(--grey); margin-top: 4px; }

.hero-text { grid-column: 4 / 9; }
.lead { font-size: 1.3125rem; line-height: 1.5; font-weight: 300; max-width: 30em; }
:lang(hi) .lead, :lang(bn) .lead, :lang(zh) .lead { font-size: 1.1875rem; line-height: 1.8; font-weight: 400; }

.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.button {
    display: inline-block;
    padding: 14px 28px;
    background: var(--ink);
    color: var(--paper);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
}
/* Paper on oxblood keeps 4.5:1 in both themes (white on the lighter dark-theme oxblood would not). */
.button:hover { background: var(--oxblood); color: var(--paper); }
.link { font-size: .9375rem; font-weight: 500; }

.portrait {
    grid-column: 9 / 13;
    position: relative;
    margin: 0;
}
.portrait img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    background: var(--stone);
}

/* A woven end-fold brand label, stitched at both ends. */
.woven {
    position: absolute;
    left: -24px;
    bottom: 28px;
    display: grid;
    gap: 2px;
    padding: 10px 26px;
    background:
        repeating-linear-gradient(90deg, rgb(255 255 255 / .04) 0 1px, transparent 1px 2px),
        #000;
    color: #fff;
    text-align: center;
    font-stretch: 125%;
    box-shadow: 0 6px 16px -6px rgb(0 0 0 / .45);
}
.woven::before, .woven::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-left: 1px dashed rgb(255 255 255 / .45);
}
.woven::before { left: 9px; }
.woven::after { right: 9px; }
.woven-name { font-size: 11px; font-weight: 600; letter-spacing: .22em; }
.woven-sub { font-size: 7.5px; letter-spacing: .26em; opacity: .75; }

/* ---------- Blocks ---------- */

main > .block { margin-top: clamp(80px, 11vw, 160px); }

.block-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 12px;
    align-items: baseline;
    padding-top: 20px;
    border-top: 1px solid var(--ink);
}
.block-head h2 { grid-column: 1 / 6; }
.block-head p { grid-column: 6 / 12; color: var(--grey); max-width: 38em; }

h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.625rem);
    font-weight: 300;
    font-stretch: 118%;
    line-height: 1.1;
    letter-spacing: -.005em;
}
h2:lang(hi), h2:lang(bn), h2:lang(zh) { font-weight: 400; line-height: 1.35; }

/* Licensing: brand names set like a collection's label line-up */

.licenses {
    list-style: none;
    margin: clamp(40px, 5vw, 64px) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .05em .55em;
    font-size: clamp(2rem, 5.4vw, 4.75rem);
    font-weight: 300;
    font-stretch: 125%;
    line-height: 1.12;
    letter-spacing: -.01em;
}
.licenses li { white-space: nowrap; }
.licenses-more { color: var(--grey); }
.licenses-more:lang(hi), .licenses-more:lang(bn), .licenses-more:lang(zh) { letter-spacing: 0; }

.license-points {
    margin: clamp(40px, 5vw, 64px) 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 32px;
}
.license-points > div { padding-top: 12px; border-top: 1px solid var(--rule); }
.license-points dt { font-weight: 600; }
.license-points dd { margin: 8px 0 0; color: var(--grey); font-size: .9375rem; }

/* Regions */

.regions {
    list-style: none;
    margin: clamp(40px, 5vw, 64px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 48px;
}
.region-native {
    display: block;
    font-size: clamp(2.5rem, 4.6vw, 4rem);
    font-weight: 300;
    font-stretch: 112%;
    line-height: 1.15;
    min-height: 1.3em;
}
.regions h3 { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--rule); }
.regions p { margin-top: 8px; color: var(--grey); font-size: .9375rem; }

/* Work */

.work {
    margin: clamp(40px, 5vw, 64px) 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--col-gap);
}
.work > div {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 4px var(--col-gap);
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
}
.work dt { font-weight: 600; }
.work dd { margin: 0; color: var(--grey); font-size: .9375rem; }

/* ---------- Career as a range plan, one column per season ---------- */

.plan {
    list-style: none;
    margin: clamp(40px, 5vw, 64px) 0 0;
    padding: 0;
}
.plan > li {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: var(--col-gap);
    row-gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
}
.plan-when { color: var(--grey); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.plan-desc { margin-top: 6px; font-size: .9375rem; max-width: 34em; }

.plan-years, .plan-track {
    display: grid;
    grid-template-columns: repeat(var(--seasons), minmax(0, 1fr));
}
.plan-years > span {
    grid-column: span 2;
    font-size: .8125rem;
    color: var(--grey);
    font-variant-numeric: tabular-nums;
    padding-left: 4px;
    border-left: 1px solid var(--rule);
}
.plan-track {
    align-self: center;
    height: 22px;
    /* Shade every AW column so the seasons read like a range plan. */
    background: repeating-linear-gradient(90deg,
        transparent 0 calc(100% / var(--seasons)),
        var(--stone) calc(100% / var(--seasons)) calc(200% / var(--seasons)));
}
.plan-bar { grid-row: 1; height: 100%; background: var(--ink); }
.is-current .plan-bar { background: var(--oxblood); }

.plan > .plan-axis { padding-top: 0; border-bottom-color: var(--ink); align-items: end; }
.plan-legend { font-size: .8125rem; color: var(--grey); }

.facts {
    margin-top: clamp(48px, 6vw, 80px);
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: var(--col-gap);
    row-gap: 40px;
}
.facts h3 { margin-bottom: 10px; }
.facts strong { font-weight: 600; }
.muted { color: var(--grey); margin-top: 8px; font-size: .9375rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain strong { display: inline-block; min-width: 9em; }

/* ---------- Contact ---------- */

main > .contact { padding-bottom: clamp(64px, 9vw, 128px); }
.contact-email {
    margin-top: clamp(32px, 4vw, 48px);
    font-size: clamp(2rem, 6.6vw, 6rem);
    font-weight: 300;
    font-stretch: 125%;
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.contact-email a { text-decoration-thickness: 1px; text-underline-offset: .15em; }
.contact-more {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    font-size: .9375rem;
}
.contact-more a { display: inline-block; padding: 4px 0; }

.foot {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter) 40px;
    display: flex;
    flex-wrap: wrap;
    font-size: .8125rem;
    color: var(--grey);
}
.foot > * { padding-top: 24px; border-top: 1px solid var(--rule); }
.foot p { flex: 1; }
.foot-link {
    font: inherit;
    color: inherit;
    background: none;
    border-width: 1px 0 0;
    border-color: var(--rule);
    border-style: solid;
    padding: 24px 0 0 24px;
    line-height: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: .25em;
}
.foot-link:hover { color: var(--ink); }

/* ---------- Cookie consent ---------- */

.consent {
    position: fixed;
    z-index: 10;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 16px;
    max-width: 640px;
    margin-left: auto;
    padding: clamp(16px, 4vw, 24px);
    background: var(--banner-bg);
    color: var(--banner-ink);
    font-size: .9375rem;
    line-height: 1.5;
    box-shadow: 0 12px 32px -12px rgb(0 0 0 / .5);
}
.consent[hidden] { display: none; }
.consent-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
/* Accept and reject carry equal weight: neither choice is nudged. */
.consent-button {
    flex: 1 1 100px;
    padding: 12px 16px;
    font: inherit;
    font-weight: 500;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    cursor: pointer;
}
.consent-button:hover { background: var(--banner-ink); color: var(--banner-bg); }
.consent :focus-visible { outline-color: var(--banner-ink); }
.consent a { color: inherit; }
.consent a:hover { color: inherit; text-decoration-thickness: 2px; }


/* ---------- Privacy policy ---------- */

.doc {
    max-width: calc(40em + 2 * var(--gutter));
    margin: 0 auto;
    padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(64px, 9vw, 128px);
}
.doc-back {
    font-stretch: 125%;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8125rem;
    text-decoration: none;
}
.doc h1 {
    margin-top: 32px;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 300;
    font-stretch: 118%;
    line-height: 1.1;
}
.doc h1:lang(hi), .doc h1:lang(bn), .doc h1:lang(zh) { font-weight: 400; line-height: 1.35; }
.doc-updated { margin-top: 12px; color: var(--grey); font-size: .9375rem; }
.doc section { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); }
.doc h2 { font-size: 1.25rem; font-weight: 600; font-stretch: 100%; line-height: 1.35; }
.doc section p { margin-top: 12px; }
.doc-end { margin-top: 48px; }

/* ---------- 404 ---------- */

.notfound {
    min-height: 100vh;
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--gutter);
    display: grid;
    align-content: center;
    gap: 32px;
}
.notfound-code {
    font-size: clamp(6rem, 22vw, 16rem);
    font-weight: 300;
    font-stretch: 125%;
    line-height: .9;
}
.notfound ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.notfound li { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.notfound li span { min-width: 14em; }

/* ---------- Narrower screens ---------- */

@media (max-width: 1080px) {
    .hero-role { grid-column: 1 / 7; margin-bottom: 20px; }
    .hero-text { grid-column: 1 / 8; }
    .portrait { grid-column: 8 / 13; grid-row: 2 / 4; }
    .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
    .license-points { grid-template-columns: minmax(0, 1fr); }
    .wordmark { font-size: 16.6vw; white-space: normal; line-height: .92; }
    .wordmark span { display: block; }
    .hero-role, .hero-text, .portrait { grid-column: 1 / -1; grid-row: auto; }
    .portrait { margin: 40px 0 0 24px; }
    .block-head h2, .block-head p { grid-column: 1 / -1; }
    .plan > li, .facts { grid-template-columns: minmax(0, 1fr); }
    .plan-axis .plan-meta { order: 2; }
    .plan-years > span:nth-child(even) { visibility: hidden; }
}

@media (max-width: 480px) {
    .regions { grid-template-columns: minmax(0, 1fr); }
    .work > div { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .wordmark { animation: none; }
}
