/* ============================================================
   Vedierko — minimal editorial
   Papierovo biely podklad, atrament, bordová linka. Žiadne karty,
   žiadne tiene — len typografia a 1px linky.
   ============================================================ */

/* ---------- písma (self-hosted, variabilné) ---------- */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/fonts/playfair-display-latin-wght-normal.woff2') format('woff2-variations');
    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: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/fonts/playfair-display-latin-ext-wght-normal.woff2') format('woff2-variations');
    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-1EFF, U+20A0-20AB, U+20AD-20C0,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url('/fonts/playfair-display-latin-wght-italic.woff2') format('woff2-variations');
    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: 'Public Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/public-sans-latin-wght-normal.woff2') format('woff2-variations');
    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: 'Public Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/public-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
    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-1EFF, U+20A0-20AB, U+20AD-20C0,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- základ ---------- */
:root {
    --paper: #fdfdfb;
    --ink: #1a1a1a;
    --ink-muted: #5c5952;
    --wine: #7a1f2b;
    --hairline: #d8d4cc;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Public Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.column {
    max-width: 68ch;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 6vw, 3rem);
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }

a {
    color: var(--wine);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: rgba(122, 31, 43, 0.35);
    transition: text-decoration-color 0.25s ease, color 0.25s ease;
}
a:hover { text-decoration-color: var(--wine); }

:focus-visible {
    outline: 2px solid var(--wine);
    outline-offset: 3px;
    border-radius: 1px;
}

::selection { background: var(--wine); color: var(--paper); }

hr {
    border: 0;
    border-top: 1px solid var(--hairline);
    margin: 2.5rem 0;
}

/* ---------- masthead ---------- */
.masthead { padding-top: 1.5rem; }

.topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ink);
}

.brand {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.brand .dot { color: var(--wine); }

.languages {
    display: flex;
    gap: 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.languages a {
    color: var(--ink-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.languages a:hover { color: var(--wine); border-color: var(--wine); }
.languages a[aria-current] { color: var(--ink); border-color: var(--ink); }

.intro { padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(2.5rem, 7vw, 4rem); }

.intro h1 {
    font-size: clamp(2.1rem, 6.5vw, 3.4rem);
    font-weight: 650;
    margin-bottom: 0.5em;
    text-wrap: balance;
}
.intro h1 em {
    font-style: italic;
    color: var(--wine);
}

.kicker {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 1.8rem;
}
.kicker b { color: var(--wine); font-weight: 600; }

.actions {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.cta {
    display: inline-block;
    border: 1px solid var(--ink);
    padding: 0.75rem 1.6rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cta:hover {
    border-color: var(--wine);
    background: var(--wine);
    color: var(--paper);
}

/* fade-up pri načítaní — jediná vstupná animácia na stránke */
@media (prefers-reduced-motion: no-preference) {
    .intro {
        animation: settle 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }
    @keyframes settle {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: none; }
    }
}

/* ---------- manifest ---------- */
.manifest {
    border-top: 1px solid var(--hairline);
    padding: clamp(2rem, 6vw, 3.5rem) 0;
}
.manifest p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    line-height: 1.55;
    margin: 0;
}
.manifest p strong {
    font-style: normal;
    font-weight: 650;
    color: var(--wine);
}

/* ---------- číslované kapitoly ---------- */
.chapter {
    border-top: 1px solid var(--ink);
    padding: clamp(2rem, 6vw, 3.2rem) 0 clamp(2.2rem, 6vw, 3.4rem);
}

.chapter.first { border-top: 0; padding-top: 0.5rem; }

.chapter-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.chapter-head .index {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--wine);
    letter-spacing: 0.08em;
}
.chapter-head .index::after { content: ' —'; color: var(--hairline); }
.chapter-head h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0;
}

/* jemný reveal — riadi ho JS cez [data-reveal]/.shown */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-reveal].shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 01 · štandard ---------- */
.standard .tally {
    display: flex;
    align-items: baseline;
    gap: 1.4rem;
    margin-bottom: 1.8rem;
}
.standard .tally .figure {
    font-family: var(--serif);
    font-size: clamp(4rem, 13vw, 6.5rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--wine);
}
.standard .tally p {
    margin: 0;
    max-width: 42ch;
    color: var(--ink-muted);
}

.areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0 2.5rem;
}
.area {
    border-top: 1px solid var(--hairline);
    padding: 1.1rem 0 0.4rem;
}
.area h3 {
    font-size: 1.05rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}
.area h3 .count {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    margin-left: 0.5rem;
}
.area ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
}
.area li { padding: 0.28rem 0; }
.area li::before { content: '·  '; color: var(--wine); }

/* ---------- 02 · služby / cenník ---------- */
.ledger { border-top: 1px solid var(--hairline); }
.entry {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.2rem 1.5rem;
    align-items: baseline;
    border-bottom: 1px solid var(--hairline);
    padding: 1.2rem 0;
}
.entry h3 {
    font-size: 1.15rem;
    margin: 0;
}
.entry .price {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--wine);
    white-space: nowrap;
}
.entry .note {
    grid-column: 1 / -1;
    margin: 0.35rem 0 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
}
.entry .note a { white-space: nowrap; }

.aftertable {
    margin-top: 1.4rem;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

/* ---------- 03 · referencie ---------- */
.voices blockquote {
    margin: 0;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--hairline);
}
.voices blockquote:first-of-type { border-top: 1px solid var(--hairline); }
.voices blockquote p {
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.55;
    margin: 0 0 0.7rem;
}
.voices .source {
    font-size: 0.82rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-style: normal;
}
.voices .source b { color: var(--wine); font-weight: 600; }

/* ---------- 04 · FAQ ---------- */
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.05rem 2rem 1.05rem 0;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.25s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1.3rem;
    color: var(--wine);
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--wine); }
.faq details > p {
    margin: 0 0 1.2rem;
    color: var(--ink-muted);
    max-width: 60ch;
}

/* ---------- 05 · dopyt ---------- */
.enquiry .contactlines {
    list-style: none;
    margin: 0 0 2.2rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 2.2rem;
    font-size: 0.95rem;
}
.enquiry .contactlines .tag {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.enquiry .contactlines a { font-weight: 500; }

.enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem 2rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.wide { grid-column: 1 / -1; }

.field label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    padding: 0.45rem 0;
    transition: border-color 0.25s ease;
}
.field select { appearance: auto; }
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--wine);
    box-shadow: 0 1px 0 0 var(--wine);
}

/* honeypot — mimo obrazovky, nie display:none */
.trap {
    position: absolute !important;
    left: -6000px !important;
    top: auto !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.enquiry-form .submitrow {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}
.enquiry-form button {
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--wine);
    color: var(--paper);
    border: 1px solid var(--wine);
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}
.enquiry-form button:hover { background: var(--paper); color: var(--wine); }
.enquiry-form button:disabled { opacity: 0.55; cursor: wait; }

.consent {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin: 0;
}

.notice {
    grid-column: 1 / -1;
    border-left: 2px solid var(--ink);
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
    margin: 0;
}
.notice.ok { border-color: var(--ink); }
.notice.err { border-color: var(--wine); color: var(--wine); }

/* ---------- pätička ---------- */
.colophon {
    border-top: 1px solid var(--ink);
    margin-top: clamp(2rem, 6vw, 3rem);
    padding: 1.8rem 0 2.6rem;
    font-size: 0.85rem;
    color: var(--ink-muted);
}
.colophon .langrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}
.colophon .langrow a { color: var(--ink-muted); }
.colophon .langrow a:hover { color: var(--wine); }
.colophon p { margin: 0 0 0.5rem; }

/* ---------- podstránky ---------- */
.breadcrumbs {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    margin: 1.6rem 0 0;
}
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--wine); }
.breadcrumbs .sep { color: var(--hairline); padding-inline: 0.4rem; }

.pagehead { padding: clamp(1.6rem, 5vw, 2.8rem) 0 clamp(1.2rem, 4vw, 2rem); }
.pagehead h1 {
    font-size: clamp(1.9rem, 5.5vw, 2.8rem);
    margin-bottom: 0.4em;
    text-wrap: balance;
}
.pagehead .kicker { margin-bottom: 0; }

.prose { padding-bottom: 1.5rem; }
.prose h2 {
    font-size: 1.35rem;
    border-top: 1px solid var(--hairline);
    padding-top: 1.6rem;
    margin-top: 2.2rem;
}
.prose ul { padding-left: 1.1rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35rem; }
.prose .aside { color: var(--ink-muted); font-size: 0.95rem; }

.steps {
    list-style: none;
    counter-reset: step;
    margin: 0 0 1.4em;
    padding: 0;
}
.steps li {
    counter-increment: step;
    border-top: 1px solid var(--hairline);
    padding: 0.9rem 0 0.9rem 3rem;
    position: relative;
}
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.95rem;
    font-family: var(--serif);
    font-style: italic;
    color: var(--wine);
}
.steps b { font-weight: 600; }

.backline { margin: 2.5rem 0 0; font-size: 0.95rem; }

/* ---------- 404 / drobné stránky ---------- */
.plain {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 4rem;
}
.plain h1 { font-size: clamp(2rem, 6vw, 3rem); }

/* ---------- responzivita ---------- */
@media (max-width: 620px) {
    .enquiry-form { grid-template-columns: 1fr; }
    .standard .tally { flex-direction: column; gap: 0.6rem; }
    .entry { grid-template-columns: 1fr; }
    .entry .price { font-size: 1.05rem; }
}
