@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600&display=swap');

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

:root {
    --bg: #fafaf8;
    --white: #fff;
    --text: #111;
    --text-2: #737373;
    --accent: #ff5c00;
    --accent-soft: #fff1eb;
    --border: #e8e5e0;
    --border-hover: #ccc8c0;
    --radius: 12px;
    --serif: 'Instrument Serif', 'Georgia', serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: #fff; }

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
    transition: all var(--transition);
}
a:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* ===== NAV ===== */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    background: var(--text);
    color: #fff;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all var(--transition);
}

.nav-brand:hover {
    text-decoration: none;
    background: var(--accent);
    transform: scale(1.04);
}

.site-nav a:not(.nav-brand) {
    font-size: 13px;
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.site-nav a:not(.nav-brand):hover { color: var(--text); }

.site-nav a:not(.nav-brand)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: 1px;
}

.site-nav a:not(.nav-brand):hover::after { transform: scaleX(1); }

/* ===== LAYOUT ===== */
.container {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HERO ===== */
.hero {
    padding: 100px 24px 64px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), #e04e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-2);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== SECTION LIST (homepage) ===== */
.section-list {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-item {
    padding: 24px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.section-item::after {
    content: '\2192';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    font-size: 18px;
    color: var(--border-hover);
    transition: all var(--transition);
}

.section-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.section-item:hover::after {
    color: var(--accent);
    transform: translateY(-50%) translateX(0);
}

.section-item a {
    font-family: var(--serif);
    font-size: 22px;
    text-decoration: none;
    color: var(--text);
    transition: color var(--transition);
}

.section-item:hover a { color: var(--accent); }

.section-item p {
    font-size: 14px;
    color: var(--text-2);
    margin-top: 4px;
    line-height: 1.6;
    max-width: 90%;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 80px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-2);
    font-size: 15px;
}

/* ===== CONTROLS ===== */
.controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

input[type="text"],
input[type="search"],
select,
textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

input[type="text"]:focus,
input[type="search"]:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

input::placeholder { color: #bbb; }

select { cursor: pointer; }

/* ===== FILTER PILLS ===== */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--text-2);
    font-family: var(--sans);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--text);
    color: var(--text);
    background: var(--white);
}

.filter-btn.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

/* ===== ITEM LIST ===== */
.item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.item:last-child { border-bottom: none; }

.item:hover { padding-left: 4px; }

.item h3 {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
    margin-bottom: 2px;
}

.item p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
}

.item .meta {
    display: flex;
    gap: 20px;
    margin-top: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-2);
}

.meta strong { font-weight: 600; color: var(--text); }

/* ===== TABLE ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-2);
    border-bottom: 2px solid var(--text);
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: top;
}

.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table td:first-child a { color: var(--text); font-weight: 500; }
.data-table td:first-child a:hover { color: var(--accent); }

.data-table tr:hover td { background: rgba(0,0,0,0.015); }

/* ===== DETAILS ===== */
details { margin-top: 6px; }

details summary {
    font-size: 13px;
    color: var(--accent);
    cursor: pointer;
    font-weight: 500;
    list-style: none;
}

details summary::-webkit-details-marker { display: none; }
details summary::before { content: '+ '; }
details[open] summary::before { content: '\2212 '; }

details ol {
    margin: 8px 0 0 20px;
    font-size: 13px;
    color: var(--text-2);
}

details ol li { padding: 2px 0; }

/* ===== DOT INDICATOR ===== */
.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: dotPulse 2s infinite;
    vertical-align: middle;
    margin-right: 2px;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.indicator-red { background: #ef4444; }
.indicator-yellow { background: #eab308; }
.indicator-green { background: #22c55e; }

/* ===== FOOTER ===== */
footer {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text-2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .site-nav {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px 16px;
    }
    .site-nav a:not(.nav-brand) { font-size: 12px; }
    .hero { padding: 60px 20px 40px; }
    .hero h1 { font-size: 32px; }
    .section-list { padding: 0 16px 40px; gap: 10px; }
    .section-item { padding: 20px; }
    .section-item a { font-size: 19px; }
    .section-item::after { display: none; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 8px 6px; }
    .controls { flex-direction: column; align-items: stretch; }
}
