/*
Theme Name: UGC KING
Description: Multilingual product website and editorial guides for UGC KING.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 8.0
Author: UGC KING
Text Domain: ugc-king-site
*/

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/onest-latin-ext.woff2) 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;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/onest-latin.woff2) 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;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(assets/fonts/unbounded-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(assets/fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(assets/fonts/unbounded-latin-ext.woff2) 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;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(assets/fonts/unbounded-latin.woff2) 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;
}

:root {
    color-scheme: light;
    --paper: #fff;
    --paper-2: #f4f3f6;
    --ink: #0c0c0c;
    --ink-2: #5a5862;
    --line: #e6e4ea;
    --control: #918d9b;
    --acid: #d6f44b;
    --acid-deep: #c2e22f;
    --night: #141318;
    --night-ink: #cfccd8;
    --r: 14px;
    --r-xl: 26px;
    --pill: 999px;
    --page: 1200px;
    --gutter: clamp(20px, 4.6vw, 68px);
    --ui: Onest, system-ui, sans-serif;
    --display: Unbounded, var(--ui);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--ui); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--acid); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.048em; line-height: 1.15; overflow-wrap: break-word; }
h1 { font-size: clamp(2.5rem, 5.6vw, 5.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 3.05rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.43rem); font-weight: 700; line-height: 1.22; }
.bound { width: min(calc(100% - var(--gutter) * 2), var(--page)); margin-inline: auto; }
.section { padding-block: clamp(52px, 7.4vw, 105px); }
.rule { border-top: 1px solid var(--line); }
.skip-link { position: fixed; z-index: 10; inset: 8px auto auto 8px; padding: 12px 16px; color: var(--paper); background: var(--ink); border-radius: var(--r); }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.lede { color: var(--ink-2); font-size: clamp(1.08rem, 1.75vw, 1.28rem); max-width: 59ch; }
.muted { color: var(--ink-2); }
.text-link { font-weight: 700; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { align-items: center; display: inline-flex; gap: 9px; white-space: nowrap; flex: none; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { font: 700 .9rem/1.15 var(--display); letter-spacing: -.045em; }
.main-nav, .header-actions, .languages { display: flex; align-items: center; }
.main-nav { gap: clamp(12px, 2.4vw, 32px); font-size: .92rem; font-weight: 600; }
.main-nav a, .languages a, .site-footer nav a { text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.header-actions { gap: clamp(12px, 1.6vw, 24px); }
.languages { gap: 2px; }
.languages a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--pill); font-size: .79rem; font-weight: 700; }
.languages a:hover { background: var(--paper-2); }
.languages a[aria-current] { color: var(--paper); background: var(--ink); }

.button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; min-height: 48px; padding: 10px 21px; border: 1px solid transparent; border-radius: var(--pill); text-align: center; text-decoration: none; font-size: .95rem; line-height: 1.2; font-weight: 700; transition: background-color .16s ease; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #26262b; }
.button-dark:focus-visible { outline-color: var(--ink); }
.button-line { background: var(--paper); border-color: var(--control); color: var(--ink); }
.button-line:hover { background: var(--paper-2); }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: var(--acid); }
.button-light:focus-visible { outline-color: var(--paper); }
.header-cta { min-height: 42px; padding-inline: 15px; white-space: nowrap; }

.hero { display: grid; grid-template-columns: minmax(0, 1.21fr) minmax(0, .9fr); align-items: center; gap: clamp(26px, 5vw, 76px); padding-block: clamp(54px, 8.3vw, 122px); }
.hero h1 { font-size: clamp(2rem, 4.25vw, 4.05rem); margin-block: 16px 25px; }
.hero .lede { max-width: 46ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.qualifier { margin-top: 16px; color: var(--ink-2); font-size: .87rem; }
.flow { background: var(--acid); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 38px); }
.flow figcaption { font-family: var(--display); font-size: clamp(1rem, 1.45vw, 1.32rem); font-weight: 700; letter-spacing: -.045em; margin-bottom: 21px; }
.flow-step { position: relative; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 14px; min-height: 98px; padding: 15px; border-radius: var(--r); background: var(--paper); }
.flow-step + .flow-step { margin-top: 24px; }
.flow-step + .flow-step::before { content: ""; position: absolute; width: 2px; height: 24px; top: -24px; left: 34px; background: var(--ink); }
.flow-label { font-size: .79rem; font-weight: 700; color: var(--ink-2); }
.flow-step strong { display: block; font-size: 1.12rem; line-height: 1.2; margin-block: 3px; }
.flow-step p:last-child, .flow-note { font-size: .88rem; line-height: 1.4; }
.flow-action { background: var(--night); color: var(--paper); }
.flow-action p { color: var(--night-ink); }
.flow-icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--paper-2); border-radius: 11px; }
.flow-icon::before { content: "#"; font-size: 1.3rem; font-weight: 700; }
.flow-action .flow-icon { background: #2c2a38; }
.flow-action .flow-icon::before { content: ""; width: 19px; height: 13px; border: 2px solid var(--paper); border-radius: 3px; }
.flow-action .flow-icon::after { content: ""; grid-area: 1 / 1; width: 10px; height: 6px; border-bottom: 1.5px solid var(--paper); border-right: 1.5px solid var(--paper); transform: translateY(-3px) rotate(45deg); }
.flow-icon::before { grid-area: 1 / 1; }
.flow-note { margin-top: 20px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding: 0; margin: 35px 0 0; list-style: none; }
.steps li { border-top: 1px solid var(--line); padding-top: 20px; }
.step-number { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; background: var(--paper-2); border-radius: var(--pill); font-weight: 700; margin-bottom: 15px; }
.steps p, .feature-list p, .card > p:last-child { color: var(--ink-2); margin-top: 10px; }
.feature-section { background: var(--paper-2); }
.feature-grid, .faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(25px, 7vw, 100px); }
.feature-list > div { padding: 17px 0; border-bottom: 1px solid #d3d0da; }
.feature-list > div:first-child { padding-top: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; display: flex; gap: 14px; justify-content: space-between; align-items: center; font-weight: 700; padding: 17px 0; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.28rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--ink-2); margin-bottom: 17px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 26px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; background: var(--paper-2); border-radius: var(--r); padding: clamp(19px, 3vw, 33px); }
.card:hover { background: #eceaf0; }
.card h3 { margin-top: 12px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.card h3 a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 4px; }
.card .eyebrow { color: var(--ink-2); }
.final-section { padding-bottom: clamp(45px, 7vw, 90px); }
.final { display: flex; align-items: center; justify-content: space-between; gap: 25px; background: var(--night); color: var(--paper); padding: clamp(24px, 4.6vw, 59px); border-radius: var(--r-xl); }
.final p { color: var(--night-ink); margin-top: 12px; }
.final .button { flex: 0 0 auto; }

.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 85px; padding-block: 16px; }
.site-footer nav { display: flex; gap: 10px 23px; flex-wrap: wrap; font-size: .91rem; }

.article-intro { max-width: 940px; margin-bottom: clamp(25px, 5vw, 53px); }
.article-intro h1 { font-size: clamp(2.25rem, 4.7vw, 4.1rem); margin-block: 15px; text-wrap: balance; }
.guide-crumbs { display: flex; gap: 9px; align-items: center; margin-bottom: 24px; }
.prose { max-width: 70ch; font-size: 1.09rem; }
.prose h2 { font-size: clamp(1.25rem, 2.8vw, 1.9rem); margin-block: 1.5em .5em; }
.prose p { margin-bottom: .9em; }
.prose img { max-width: 100%; border-radius: var(--r); }
.pagination { display: flex; align-items: center; gap: 15px; margin-top: 30px; }
.not-found .lede { margin-block: 16px 25px; }

@media (max-width: 1020px) {
    .header-cta { display: none; }
}
@media (max-width: 720px) {
    .header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: auto; gap: 8px; padding-block: 12px 10px; }
    .main-nav { grid-area: 2 / 1 / 3 / -1; flex-wrap: wrap; gap: 8px 16px; min-height: 30px; }
    .header-actions { grid-area: 1 / 2 / 2 / 3; }
    .hero, .feature-grid, .faq { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: clamp(1.55rem, 7.1vw, 3.5rem); }
    .steps { grid-template-columns: 1fr; gap: 18px; }
    .steps li { padding-top: 14px; }
    .step-number { margin-bottom: 10px; }
    .footer-row, .final, .section-head { flex-direction: column; align-items: flex-start; }
    .footer-row { padding-block: 22px; }
}
@media (max-width: 525px) {
    .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
