/* ================================
   DIANTHOS – One-page archive
   Mobile-first layout
   ================================ */

:root {
    --bg-page: #f3f3f3;
    --bg-header: #e8e7e7;
    --bg-footer: #4c5357;

    --surface: #ffffff;
    --surface-soft: #f7f7f7;

    --accent: #f27e29;
    --accent-soft: #ffe1c4;

    --text-main: #262a2d;
    --text-muted: #6c6f72;

    --border-soft: #dadada;

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-pill: 999px;

    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.12);
    --shadow-subtle: 0 4px 14px rgba(0, 0, 0, 0.07);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top, rgba(0, 0, 0, 0.02), transparent 55%),
        linear-gradient(180deg, #f5f5f5 0%, var(--bg-page) 40%, #f8f8f8 100%);
}

/* Layout helpers */

.container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */

.site-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid #d2d2d2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    max-width: 170px;
    height: auto;
    display: block;
}

/* Main */

.site-main {
    padding: 1.6rem 0 2.8rem;
}

/* Hero */

.hero {
    padding: 0.5rem 0 1.8rem;
}

.hero h1 {
    font-size: 1.55rem;
    margin: 0 0 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-subtitle {
    margin: 0 0 0.7rem;
    font-size: 0.98rem;
    color: var(--text-main);
}

.hero-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Accordion */

.accordion-section {
    padding-top: 0.4rem;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.accordion-item {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
}

.accordion-item.open {
    box-shadow: var(--shadow-soft);
    border-color: rgba(242, 126, 41, 0.6);
    transform: translateY(-1px);
}

.accordion-header {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #ffffff, #f6f6f6);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.accordion-header:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.acc-index {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 2.6rem;
}

.acc-title {
    font-size: 0.95rem;
    font-weight: 560;
    flex: 1;
}

.acc-chevron {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    border: 1px solid #d2d2d2;
    position: relative;
    flex-shrink: 0;
}

.acc-chevron::before,
.acc-chevron::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 7px;
    height: 1.5px;
    background: #555a5d;
    border-radius: 999px;
    transform-origin: center;
    transition: transform 0.18s ease;
}

.acc-chevron::before {
    transform: translate(-50%, -50%) rotate(45deg) translateX(-1px);
}

.acc-chevron::after {
    transform: translate(-50%, -50%) rotate(-45deg) translateX(1px);
}

.accordion-item.open .acc-chevron::before {
    transform: translate(-50%, -50%) rotate(-45deg) translateX(-1px);
}

.accordion-item.open .acc-chevron::after {
    transform: translate(-50%, -50%) rotate(45deg) translateX(1px);
}

/* Tiny accent line at bottom of header when open */

.accordion-item.open .accordion-header::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #ffb463);
}

/* Panel */

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    background: var(--surface-soft);
    transition: max-height 0.28s ease, opacity 0.22s ease;
    opacity: 0;
}

.accordion-item.open .accordion-panel {
    max-height: 2000px; /* αρκετό για το περιεχόμενο */
    opacity: 1;
}

.panel-inner {
    padding: 0.95rem 1.05rem 1.1rem;
    font-size: 0.93rem;
}

.panel-inner p {
    margin: 0 0 0.7rem;
}

.panel-inner h3 {
    font-size: 0.98rem;
    margin: 0.95rem 0 0.4rem;
}

.panel-inner ul {
    padding-left: 1.1rem;
    margin: 0.25rem 0 0.75rem;
}

.panel-inner li + li {
    margin-top: 0.18rem;
}

/* Glossary list */

.glossary-list {
    margin: 0.4rem 0 0.2rem;
    padding: 0;
}

.glossary-list dt {
    font-weight: 570;
    margin-top: 0.7rem;
}

.glossary-list dd {
    margin: 0.18rem 0 0.3rem;
    color: var(--text-muted);
}

/* Contact / disclaimer styles */

.contact-email a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(242, 126, 41, 0.6);
    background: linear-gradient(135deg, #ffffff, #fff7f0);
    color: var(--text-main);
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(242, 126, 41, 0.25);
    transition: box-shadow 0.18s ease, transform 0.08s ease, background 0.18s ease;
}

.contact-email a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(242, 126, 41, 0.3);
    background: linear-gradient(135deg, #fffaf4, #ffe5ce);
}

.small-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */

.site-footer {
    background-color: var(--bg-footer);
    padding: 1.8rem 1rem 1.6rem;
    color: #e7e9ec;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.footer-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto 0.9rem;
}

.footer-text {
    margin: 0;
    font-size: 0.8rem;
    color: #d2d6db;
}

/* Media queries */

@media (min-width: 768px) {
    .hero {
        padding: 1rem 0 2.1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 640px;
    }

    .hero-note {
        max-width: 640px;
    }
}
