:root {
    --ym-ink: #0b0f16;
    --ym-night: #111827;
    --ym-plum: #4a233d;
    --ym-wine: #7b3554;
    --ym-wine-light: #9a476a;
    --ym-paper: #f4efe6;
    --ym-canvas: #faf8f3;
    --ym-mist: #c8ced8;
    --ym-gold: #d2a66d;
    --ym-gold-dark: #b78348;
    --ym-text: #171a21;
    --ym-muted: #626874;
    --ym-white: #fffdfc;
    --ym-border: #ded8ce;
    --ym-content: 1200px;
    --ym-article: 760px;
    --ym-font-heading: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    --ym-font-body: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    --ym-font-latin: "Inter", "Noto Sans JP", sans-serif;
    --ym-shadow: 0 24px 64px rgb(11 15 22 / 10%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ym-text);
    background: var(--ym-canvas);
    font-family: var(--ym-font-body);
    font-size: clamp(1rem, 0.96rem + 0.16vw, 1.125rem);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

body.admin-bar .ym-header {
    top: 32px;
}

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

a {
    color: var(--ym-wine);
    text-underline-offset: 0.18em;
}

button,
input,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--ym-text);
    font-family: var(--ym-font-heading);
    font-weight: 600;
    letter-spacing: 0.015em;
}

:focus-visible {
    outline: 3px solid rgb(210 166 109 / 72%);
    outline-offset: 4px;
}

.ym-container {
    width: min(calc(100% - 40px), var(--ym-content));
    margin-inline: auto;
}

.ym-article {
    width: min(calc(100% - 40px), var(--ym-article));
    margin-inline: auto;
}

.ym-kicker {
    margin: 0 0 0.9rem;
    color: var(--ym-gold-dark);
    font-family: var(--ym-font-latin);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2em;
}

.ym-skip-link {
    position: fixed;
    z-index: 99999;
    top: 8px;
    left: 8px;
    padding: 0.65rem 1rem;
    transform: translateY(-160%);
    color: var(--ym-ink);
    background: var(--ym-gold);
    font-weight: 700;
}

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

/* Header */
.ym-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    height: 78px;
    border-bottom: 1px solid rgb(255 255 255 / 9%);
    background: rgb(11 15 22 / 96%);
    backdrop-filter: blur(18px);
}

.ym-header__inner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.ym-brand {
    display: block;
    flex: 0 0 auto;
}

.ym-brand img {
    width: 285px;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
}

.ym-desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 1.9vw, 2rem);
}

.ym-desktop-nav a {
    position: relative;
    color: var(--ym-mist);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ym-desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 1px;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    background: var(--ym-gold);
    transition: transform 180ms ease;
}

.ym-desktop-nav a:hover {
    color: var(--ym-white);
}

.ym-desktop-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.ym-nav-search {
    padding: 0.35rem 0 0.35rem 1rem;
    border-left: 1px solid rgb(255 255 255 / 18%);
}

.ym-mobile-nav {
    display: none;
}

/* Hero */
.ym-hero {
    position: relative;
    min-height: 620px;
    height: calc(100svh - 78px);
    max-height: 820px;
    overflow: hidden;
    color: var(--ym-white);
    background: var(--ym-ink);
}

.ym-hero__picture,
.ym-hero__img,
.ym-hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ym-hero__img {
    object-fit: cover;
}

.ym-hero__overlay {
    background:
        linear-gradient(90deg, rgb(7 10 15 / 94%) 0%, rgb(11 15 22 / 70%) 39%, rgb(11 15 22 / 15%) 74%, rgb(11 15 22 / 8%) 100%),
        linear-gradient(0deg, rgb(7 10 15 / 42%) 0%, transparent 42%);
}

.ym-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.ym-hero__eyebrow {
    margin: 0 0 1.25rem;
    color: var(--ym-gold);
    font-family: var(--ym-font-latin);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.24em;
}

.ym-hero__title {
    max-width: 780px;
    margin: 0 0 1.25rem;
    color: var(--ym-white);
    font-size: clamp(2.8rem, 5.25vw, 5rem);
    line-height: 1.36;
    letter-spacing: 0.045em;
    text-wrap: balance;
}

.ym-hero__sub {
    margin: 0 0 2.2rem;
    color: #e1e4e9;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: 0.035em;
}

.ym-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.ym-hero__scroll {
    position: absolute;
    z-index: 2;
    right: 1.5rem;
    bottom: 5rem;
    color: rgb(255 255 255 / 58%);
    font-family: var(--ym-font-latin);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    writing-mode: vertical-rl;
}

.ym-hero__scroll::after {
    display: inline-block;
    width: 1px;
    height: 54px;
    margin-top: 0.8rem;
    content: "";
    background: linear-gradient(var(--ym-gold), transparent);
}

/* Buttons */
.ym-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ym-button:hover {
    transform: translateY(-2px);
}

.ym-button--primary {
    color: var(--ym-white);
    background: var(--ym-wine);
}

.ym-button--primary:hover {
    color: var(--ym-white);
    background: var(--ym-wine-light);
}

.ym-button--ghost {
    border-color: rgb(255 255 255 / 42%);
    color: var(--ym-white);
    background: rgb(11 15 22 / 24%);
}

.ym-button--ghost:hover {
    border-color: var(--ym-white);
    color: var(--ym-white);
}

/* Intro */
.ym-intro {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: var(--ym-canvas);
}

.ym-intro__inner {
    display: grid;
    grid-template-columns: 0.48fr 1.25fr 0.9fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.ym-intro__lead {
    margin: -0.45rem 0 0;
    font-family: var(--ym-font-heading);
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    font-weight: 500;
    line-height: 1.75;
}

.ym-intro__inner > p:last-child {
    margin: 0;
    color: var(--ym-muted);
    font-size: 0.96rem;
}

/* Sections */
.ym-section {
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

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

.ym-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ym-border);
}

.ym-section-heading h2 {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.8rem);
    line-height: 1.35;
}

.ym-section-heading > a {
    flex: 0 0 auto;
    color: var(--ym-text);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.ym-section-heading > a:hover {
    color: var(--ym-wine);
}

/* Cards */
.ym-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.ym-card {
    overflow: hidden;
    border: 1px solid rgb(23 26 33 / 8%);
    border-radius: 12px;
    background: var(--ym-white);
    box-shadow: 0 14px 42px rgb(11 15 22 / 6%);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ym-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ym-shadow);
}

.ym-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.ym-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--ym-night);
}

.ym-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.ym-card:hover .ym-card__img {
    transform: scale(1.035);
}

.ym-card__pr {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    color: var(--ym-ink);
    background: var(--ym-gold);
    font-family: var(--ym-font-latin);
    font-size: 0.68rem;
    font-weight: 800;
}

.ym-card__body {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    padding: 1.35rem 1.4rem 1.25rem;
}

.ym-card__cat,
.ym-article-header__labels a {
    align-self: flex-start;
    color: var(--ym-wine);
    font-size: 0.73rem;
    font-weight: 700;
    text-decoration: none;
}

.ym-card__title {
    margin: 0.75rem 0 0.65rem;
    font-size: 1.15rem;
    line-height: 1.62;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ym-card__excerpt {
    margin: 0 0 1rem;
    color: var(--ym-muted);
    font-size: 0.84rem;
    line-height: 1.75;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ym-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.95rem;
    border-top: 1px solid var(--ym-border);
    color: var(--ym-muted);
    font-family: var(--ym-font-latin);
    font-size: 0.72rem;
}

.ym-card__meta span {
    color: var(--ym-text);
    font-weight: 700;
}

/* Empty state */
.ym-empty-state {
    display: grid;
    overflow: hidden;
    grid-template-columns: 1.16fr 0.84fr;
    border-radius: 16px;
    color: var(--ym-white);
    background: var(--ym-ink);
    box-shadow: var(--ym-shadow);
}

.ym-empty-state img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.ym-empty-state > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
}

.ym-empty-state h2,
.ym-empty-state h3 {
    margin-bottom: 1rem;
    color: var(--ym-white);
    font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}

.ym-empty-state p:last-child {
    margin: 0;
    color: var(--ym-mist);
    font-size: 0.92rem;
}

.ym-empty-state--compact {
    grid-template-columns: 0.8fr 1.2fr;
}

.ym-empty-state--compact img {
    min-height: 300px;
}

/* Hub */
.ym-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ym-hub {
    position: relative;
    display: grid;
    min-height: 300px;
    padding: clamp(2rem, 4vw, 3.5rem);
    grid-template-rows: auto auto 1fr auto;
    overflow: hidden;
    border-radius: 12px;
    color: var(--ym-white);
    text-decoration: none;
}

.ym-hub::after {
    position: absolute;
    right: -12%;
    bottom: -44%;
    width: 52%;
    aspect-ratio: 1;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
    opacity: 0.16;
    transition: transform 300ms ease;
}

.ym-hub:hover::after {
    transform: scale(1.13);
}

.ym-hub > span {
    font-family: var(--ym-font-latin);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.ym-hub h3 {
    margin: 1.1rem 0 0.65rem;
    color: inherit;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.ym-hub p {
    max-width: 430px;
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.ym-hub b {
    align-self: end;
    margin-top: 2rem;
    font-family: var(--ym-font-latin);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.ym-hub--wine { background: var(--ym-wine); }
.ym-hub--night { background: var(--ym-night); }
.ym-hub--paper { color: var(--ym-text); background: var(--ym-white); border: 1px solid var(--ym-border); }
.ym-hub--gold { color: var(--ym-ink); background: var(--ym-gold); }

/* Mini features */
.ym-mini-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--ym-border);
    background: var(--ym-border);
}

.ym-mini-features article {
    min-height: 270px;
    padding: 2rem;
    background: var(--ym-white);
}

.ym-mini-features span {
    color: var(--ym-gold-dark);
    font-family: var(--ym-font-latin);
    font-size: 0.74rem;
    font-weight: 700;
}

.ym-mini-features h3 {
    margin: 3rem 0 1rem;
    font-size: 1.35rem;
}

.ym-mini-features p {
    margin: 0;
    color: var(--ym-muted);
    font-size: 0.9rem;
}

/* Editorial section */
.ym-editorial {
    color: var(--ym-white);
    background: var(--ym-ink);
}

.ym-editorial h2,
.ym-editorial h3 {
    color: var(--ym-white);
}

.ym-editorial__inner {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: clamp(3rem, 8vw, 8rem);
}

.ym-editorial__inner > div:first-child {
    position: sticky;
    top: 120px;
    align-self: start;
}

.ym-editorial__inner > div:first-child h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.55;
}

.ym-editorial__points article {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    padding: 0 0 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.ym-editorial__points article > span {
    color: var(--ym-gold);
    font-family: var(--ym-font-latin);
    font-size: 0.75rem;
    font-weight: 700;
}

.ym-editorial__points h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.ym-editorial__points p {
    margin: 0;
    color: var(--ym-mist);
    font-size: 0.9rem;
}

.ym-editorial__points > a {
    color: var(--ym-gold);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

/* Page and archive hero */
.ym-page-hero {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    color: var(--ym-white);
    background:
        radial-gradient(circle at 82% 15%, rgb(210 166 109 / 12%), transparent 34%),
        var(--ym-ink);
}

.ym-page-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--ym-white);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.45;
}

.ym-page-hero__desc {
    max-width: 720px;
    margin-top: 1rem;
    color: var(--ym-mist);
}

.ym-page-hero__desc p {
    margin: 0;
}

/* Single article */
.ym-article-header {
    padding: clamp(3.5rem, 7vw, 6rem) 0 3rem;
    background: var(--ym-paper);
}

.ym-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 2.5rem;
    color: var(--ym-muted);
    font-size: 0.75rem;
}

.ym-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.ym-article-header__labels {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.ym-pr-label {
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--ym-gold-dark);
    border-radius: 4px;
    color: var(--ym-gold-dark);
    font-family: var(--ym-font-latin);
    font-size: 0.67rem;
    font-weight: 800;
}

.ym-article-header h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4.8vw, 3.75rem);
    line-height: 1.48;
}

.ym-article-header__lead {
    margin: 0 0 1.3rem;
    color: var(--ym-muted);
    font-size: 1.03rem;
}

.ym-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.3rem;
    color: var(--ym-muted);
    font-size: 0.75rem;
}

.ym-featured-image {
    margin-top: 3rem;
}

.ym-featured-image img {
    width: 100%;
    max-height: 675px;
    object-fit: cover;
    border-radius: 14px;
}

.ym-article-layout {
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.ym-disclosure {
    margin-bottom: 3rem;
    padding: 1.25rem 1.35rem;
    border-left: 3px solid var(--ym-gold);
    background: var(--ym-paper);
    color: var(--ym-muted);
    font-size: 0.82rem;
    line-height: 1.75;
}

.ym-disclosure strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ym-text);
}

.ym-disclosure p {
    margin: 0;
}

.ym-entry-content {
    font-size: clamp(1rem, 0.96rem + 0.14vw, 1.08rem);
}

.ym-entry-content > * {
    margin-top: 0;
    margin-bottom: 1.8rem;
}

.ym-entry-content h2 {
    margin-top: 4rem;
    margin-bottom: 1.4rem;
    padding-top: 1rem;
    border-top: 3px solid var(--ym-gold);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.55;
}

.ym-entry-content h3 {
    margin-top: 2.8rem;
    margin-bottom: 1.1rem;
    padding-left: 0.85rem;
    border-left: 4px solid var(--ym-plum);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.ym-entry-content a {
    font-weight: 600;
}

.ym-entry-content blockquote {
    margin-inline: 0;
    padding: 1.2rem 1.4rem;
    border-left: 3px solid var(--ym-wine);
    background: var(--ym-paper);
}

.ym-entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ym-entry-content th,
.ym-entry-content td {
    padding: 0.8rem;
    border: 1px solid var(--ym-border);
    text-align: left;
}

.ym-entry-content th {
    background: var(--ym-paper);
}

.ym-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.5rem 0;
    font-size: 0.78rem;
}

.ym-tags a {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--ym-border);
    border-radius: 999px;
    color: var(--ym-muted);
    text-decoration: none;
}

.ym-author-box {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 1.8rem;
    border: 1px solid var(--ym-border);
    border-radius: 12px;
    background: var(--ym-white);
}

.ym-author-box img {
    border-radius: 50%;
}

.ym-author-box span {
    color: var(--ym-gold-dark);
    font-family: var(--ym-font-latin);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.ym-author-box h2 {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.15rem;
}

.ym-author-box p {
    margin: 0 0 0.5rem;
    color: var(--ym-muted);
    font-size: 0.82rem;
}

.ym-author-box a {
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

/* Page */
.ym-page-content {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(5rem, 9vw, 8rem);
}

.ym-lead {
    margin: 0 0 2.5rem;
    font-family: var(--ym-font-heading);
    font-size: 1.25rem;
    line-height: 1.8;
}

/* Contact */
.ym-contact-form {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.ym-contact-form > label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.ym-contact-form label > span {
    color: var(--ym-wine);
    font-size: 0.7rem;
}

.ym-contact-form input[type="text"],
.ym-contact-form input[type="email"],
.ym-contact-form textarea,
.search-form .search-field {
    width: 100%;
    border: 1px solid var(--ym-border);
    border-radius: 7px;
    color: var(--ym-text);
    background: var(--ym-white);
}

.ym-contact-form input[type="text"],
.ym-contact-form input[type="email"],
.search-form .search-field {
    min-height: 48px;
    padding: 0.6rem 0.8rem;
}

.ym-contact-form textarea {
    padding: 0.8rem;
    resize: vertical;
}

.ym-contact-form__consent {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    font-weight: 500 !important;
}

.ym-contact-form__consent input {
    width: 18px;
    height: 18px;
}

.ym-honeypot {
    position: absolute;
    left: -10000px;
}

.ym-form-notice {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 7px;
    font-size: 0.9rem;
}

.ym-form-notice--success { background: #eaf4ed; color: #1d5b2d; }
.ym-form-notice--error { background: #f7e9ec; color: #7b243a; }

/* Search */
.search-form {
    display: flex;
    max-width: 620px;
    gap: 0.5rem;
    margin-top: 1.6rem;
}

.search-form label {
    flex: 1;
}

.search-form .search-submit {
    padding: 0.6rem 1.2rem;
    border: 0;
    border-radius: 7px;
    color: var(--ym-white);
    background: var(--ym-wine);
    font-weight: 700;
}

/* Pagination */
.ym-pagination {
    margin-top: 3rem;
}

.ym-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.ym-pagination a,
.ym-pagination .current {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--ym-border);
    border-radius: 6px;
    text-decoration: none;
}

.ym-pagination .current {
    border-color: var(--ym-wine);
    color: var(--ym-white);
    background: var(--ym-wine);
}

/* 404 */
.ym-not-found {
    min-height: 70vh;
    padding: clamp(4rem, 9vw, 8rem) 0;
    color: var(--ym-white);
    background: var(--ym-ink);
}

.ym-not-found__inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.ym-not-found h1 {
    color: var(--ym-white);
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.45;
}

.ym-not-found p:not(.ym-kicker) {
    color: var(--ym-mist);
}

.ym-not-found img {
    border-radius: 14px;
}

/* Footer */
.ym-footer {
    padding: clamp(4rem, 8vw, 7rem) 0 1.8rem;
    color: var(--ym-mist);
    background: #080b10;
}

.ym-footer__top {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(3rem, 7vw, 7rem);
    padding-bottom: 4rem;
}

.ym-footer__brand img {
    width: 310px;
    max-height: 65px;
    object-fit: contain;
    object-position: left center;
}

.ym-footer__brand > p {
    margin: 1.5rem 0 0;
    color: var(--ym-white);
    font-family: var(--ym-font-heading);
    font-size: 1.15rem;
}

.ym-footer__brand .ym-footer__note {
    max-width: 440px;
    margin-top: 0.8rem;
    color: #8d94a1;
    font-family: var(--ym-font-body);
    font-size: 0.82rem;
}

.ym-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ym-footer__nav h2 {
    margin-bottom: 1rem;
    color: var(--ym-gold);
    font-family: var(--ym-font-latin);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
}

.ym-footer__nav a {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--ym-mist);
    font-size: 0.8rem;
    text-decoration: none;
}

.ym-footer__nav a:hover {
    color: var(--ym-white);
}

.ym-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 11%);
    color: #7b828e;
    font-size: 0.7rem;
}

.ym-footer__bottom p {
    margin: 0;
}

@media (max-width: 1020px) {
    .ym-brand img {
        width: 238px;
    }

    .ym-desktop-nav {
        gap: 1rem;
    }

    .ym-desktop-nav a {
        font-size: 0.78rem;
    }

    .ym-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    body.admin-bar .ym-header {
        top: 46px;
    }

    .ym-container,
    .ym-article {
        width: min(calc(100% - 32px), var(--ym-content));
    }

    .ym-article {
        max-width: var(--ym-article);
    }

    .ym-header {
        height: 64px;
    }

    .ym-brand img {
        width: 208px;
        max-height: 44px;
    }

    .ym-desktop-nav {
        display: none;
    }

    .ym-mobile-nav {
        position: relative;
        display: block;
    }

    .ym-mobile-nav summary {
        display: flex;
        width: 44px;
        height: 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        list-style: none;
    }

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

    .ym-mobile-nav summary span {
        display: block;
        width: 22px;
        height: 1px;
        background: var(--ym-white);
    }

    .ym-mobile-nav nav {
        position: fixed;
        top: 64px;
        right: 0;
        left: 0;
        display: grid;
        padding: 1.3rem 1.2rem 1.6rem;
        border-top: 1px solid rgb(255 255 255 / 10%);
        background: var(--ym-ink);
        box-shadow: 0 25px 45px rgb(0 0 0 / 35%);
    }

    .admin-bar .ym-mobile-nav nav {
        top: 110px;
    }

    .ym-mobile-nav nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgb(255 255 255 / 9%);
        color: var(--ym-mist);
        font-size: 0.9rem;
        text-decoration: none;
    }

    .ym-hero {
        min-height: 620px;
        height: calc(100svh - 64px);
        max-height: 820px;
    }

    .ym-hero__overlay {
        background:
            linear-gradient(0deg, rgb(7 10 15 / 94%) 0%, rgb(11 15 22 / 70%) 42%, rgb(11 15 22 / 12%) 79%, rgb(11 15 22 / 20%) 100%);
    }

    .ym-hero__content {
        justify-content: flex-end;
        padding-bottom: 11vh;
    }

    .ym-hero__title {
        font-size: clamp(2.25rem, 10vw, 3.25rem);
    }

    .ym-hero__scroll {
        display: none;
    }

    .ym-intro__inner,
    .ym-editorial__inner,
    .ym-footer__top,
    .ym-not-found__inner {
        grid-template-columns: 1fr;
    }

    .ym-intro__inner {
        gap: 1.5rem;
    }

    .ym-intro__lead {
        margin-top: 0;
    }

    .ym-section-heading {
        align-items: start;
        flex-direction: column;
        gap: 0.9rem;
    }

    .ym-hub-grid {
        grid-template-columns: 1fr;
    }

    .ym-hub {
        min-height: 250px;
    }

    .ym-editorial__inner > div:first-child {
        position: static;
    }

    .ym-empty-state,
    .ym-empty-state--compact {
        grid-template-columns: 1fr;
    }

    .ym-empty-state img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .ym-author-box {
        grid-template-columns: 74px 1fr;
        padding: 1.25rem;
    }

    .ym-footer__nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .ym-footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 560px) {
    .ym-card-grid,
    .ym-mini-features {
        grid-template-columns: 1fr;
    }

    .ym-card__body {
        min-height: 225px;
    }

    .ym-hero__actions {
        width: 100%;
    }

    .ym-hero__actions .ym-button {
        width: 100%;
    }

    .ym-mini-features {
        gap: 1px;
    }

    .ym-footer__nav {
        grid-template-columns: 1fr;
    }

    .search-form {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
