/* assets/css/style.css */

:root {
    --bg: #fff8fb;
    --bg-soft: #fff1f6;
    --bg-panel: rgba(255, 255, 255, 0.88);
    --bg-panel-strong: rgba(255, 255, 255, 0.95);
    --text: #352734;
    --muted: #725b6c;
    --muted-2: #8b7382;
    --line: rgba(128, 67, 96, 0.16);
    --line-strong: rgba(128, 67, 96, 0.24);
    --primary: #c94b63;
    --primary-dark: #a93a50;
    --primary-soft: #f9d7e3;
    --primary-soft-2: #f6c7d9;
    --search-band: rgba(186, 127, 151, 0.24);
    --search-band-border: rgba(186, 127, 151, 0.22);
    --shadow: 0 18px 50px rgba(162, 84, 119, 0.12);
    --shadow-soft: 0 10px 28px rgba(162, 84, 119, 0.08);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(248, 191, 214, 0.30), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 218, 185, 0.26), transparent 24%),
        linear-gradient(180deg, #fff7fb 0%, #fff4f8 46%, #fffafc 100%);
    line-height: 1.6;
}

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

a {
    color: inherit;
}

p {
    margin: 0 0 1em;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    background: #fff;
    color: #000;
    padding: 10px 14px;
    z-index: 9999;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255, 249, 252, 0.88);
    border-bottom: 1px solid rgba(128, 67, 96, 0.10);
}

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

.brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: block;
    height: 74px;
    width: auto;
    padding: 0;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.brand-name span {
    color: var(--primary-dark);
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--muted);
}

.top-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.top-nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-dark);
}

.top-nav a:hover {
    color: var(--primary-dark);
}

/* Hero */

.hero-section {
    padding: 24px 0 18px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
    gap: 22px;
    align-items: stretch;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.panel-large {
    padding: 28px 30px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(255, 209, 224, 0.55), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 229, 198, 0.45), transparent 26%),
        var(--bg-panel-strong);
}

.hero-main h1 {
    margin: 0 0 14px;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.7rem, 2.3vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-main p {
    margin: 0;
}

.hero-note {
    margin-top: 18px;
    color: var(--muted-2);
    font-size: 0.96rem;
    line-height: 1.55;
    max-width: 65ch;
}

.hero-side {
    display: grid;
}

.info-panel {
    padding: 22px 22px 20px;
    box-shadow: var(--shadow-soft);
}

.info-panel-combined {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 22px 20px;
}

.info-block + .info-block {
    margin-top: 18px;
}

.info-panel h2 {
    margin: 0 0 8px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.info-panel p {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.96rem;
    line-height: 1.55;
}

.mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}

.mini-btn-solid {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 8px 18px rgba(201, 75, 99, 0.18);
}

.mini-btn-solid:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Search band */

.search-band {
    margin-top: 6px;
    padding: 18px 0 20px;
    background: linear-gradient(180deg, var(--search-band), rgba(186, 127, 151, 0.20));
    border-top: 1px solid var(--search-band-border);
    border-bottom: 1px solid var(--search-band-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.search-band-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.search-kicker {
    text-align: center;
}

.search-kicker,
.section-kicker {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 12px;
}

.search-form-band {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.search-form input {
    width: 100%;
    min-height: 58px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 250, 252, 0.96);
    padding: 0 22px;
    font-size: 1.02rem;
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 6px 18px rgba(130, 43, 80, 0.08);
}

.search-form input::placeholder {
    color: #866878;
}

.search-form input:focus {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.24),
        0 8px 20px rgba(130, 43, 80, 0.12);
}

.search-form button {
    min-height: 58px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(201, 75, 99, 0.16);
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Categories */

.category-strip {
    padding: 14px 0 12px;
}

.category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 75, 99, 0.18);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.category-pill:hover {
    background: var(--primary);
    color: #fff;
}

.category-pill-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.category-pill-meta {
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
    border-color: rgba(128, 67, 96, 0.12);
    box-shadow: none;
    cursor: default;
}

/* Directory */

.directory-section {
    padding: 10px 0 48px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.section-head-minimal {
    justify-content: center;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    letter-spacing: -0.03em;
    color: var(--text);
}

.section-kicker {
    text-align: center;
}

.section-copy {
    margin: 10px 0 0;
    max-width: 70ch;
    color: var(--muted);
}

.site-count {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(201, 75, 99, 0.18);
    box-shadow: var(--shadow-soft);
    color: var(--muted);
    font-weight: 600;
}

.site-count strong {
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.site-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.site-card-head {
    margin-bottom: 14px;
}

.site-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text);
}

.site-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-domain {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(201, 75, 99, 0.08);
    color: var(--primary-dark);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 auto;
}

.site-shot {
    width: 200px;
    max-width: 100%;
    flex: 0 0 auto;
}

.site-shot-inner,
.site-shot-image {
    width: 200px;
    height: 200px;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(201, 75, 99, 0.16);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.72), transparent 28%),
        linear-gradient(135deg, #f9dbe6 0%, #fde8ef 50%, #ffe7d5 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    display: block;
}

.site-shot-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-shot-inner span {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.04em;
}

.site-shot-image {
    object-fit: cover;
    background: #fff;
}

.site-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.62;
}

.site-links {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.card-link {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-decoration: underline;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
}

.card-link:hover {
    color: var(--primary-dark);
}

.card-link-primary {
    color: var(--primary-dark);
}

/* Notices */

.notice {
    padding: 16px 18px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.notice-error {
    background: rgba(255, 241, 243, 0.95);
    border-color: rgba(194, 55, 101, 0.18);
}

.notice-small {
    margin-top: 8px;
    font-size: 0.92rem;
    color: #7f4760;
    word-break: break-word;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(128, 67, 96, 0.10);
    background: linear-gradient(180deg, rgba(255, 239, 246, 0.72), rgba(255, 247, 251, 0.9));
}

.footer-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--primary-dark);
}

/* Responsive */

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .top-nav {
        gap: 12px;
    }

    .panel-large {
        padding: 22px 20px;
    }

    .info-panel-combined {
        padding: 20px 20px 18px;
    }

    .brand-name {
        font-size: 1.7rem;
    }

    .hero-main h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .search-band {
        padding: 16px 0 18px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .site-shot,
    .site-shot-inner,
    .site-shot-image {
        width: 100%;
        max-width: 200px;
    }

    .site-shot-inner,
    .site-shot-image {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .footer-inner {
        align-items: flex-start;
    }
}
@media (max-width: 480px) {
    .brand-mark {
        height: 62px;
        padding: 4px;
    }
    .container {
        width: min(var(--container), calc(100% - 22px));
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-tagline {
        font-size: 0.84rem;
    }

    .info-panel,
    .site-card {
        padding: 16px;
    }

    .category-row {
        justify-content: flex-start;
    }

    .site-links {
        gap: 10px;
    }
}