/* Stone Courses: Gjirokastër */
@import url('https://fonts.googleapis.com/css2?family=Gloock&family=Public+Sans:wght@300;400;500;600&display=swap');

:root {
    --slate-900: #181c1f;
    --slate-800: #1f2428;
    --slate-700: #2a3035;
    --slate-600: #39414a;
    --lime-100: #eceeed;
    --lime-200: #dfe2e0;
    --lime-300: #c9cecb;
    --ink: #1a1f22;
    --ink-soft: #3f484d;
    --lichen: #a9c25a;
    --lichen-deep: #4a6420;
    --mortar: 6px;
    --font-display: 'Gloock', serif;
    --font-body: 'Public Sans', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    /* stone grain: fractal noise, tinted via blend */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--lichen-deep) var(--slate-900);
    scrollbar-width: thin;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--lime-100);
    background: var(--slate-900);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--lichen);
    color: var(--slate-900);
}

:focus-visible {
    outline: 2px solid var(--lichen);
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

.wrap {
    width: min(1280px, 100% - 40px);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--lichen);
    color: var(--slate-900);
    padding: 10px 16px;
    font-weight: 600;
    transition: top 0.2s;
}

.skip:focus {
    top: 12px;
}

/* ---------- Nav: a slab strip ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background-color 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
    background: rgba(24, 28, 31, 0.96);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: var(--lichen);
    color: var(--slate-900);
}

.menu-btn {
    display: none;
    background: none;
    border: 1px solid rgba(236, 238, 237, 0.4);
    color: inherit;
    font: inherit;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 3px;
    cursor: pointer;
    min-height: 44px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    z-index: -2;
    filter: grayscale(0.85) contrast(1.1) brightness(0.8);
    transform: scale(1.08);
    animation: settle 2.4s var(--ease-out) forwards;
}

@keyframes settle {
    to {
        transform: scale(1);
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, var(--slate-900) 4%, rgba(24, 28, 31, 0.55) 45%, rgba(24, 28, 31, 0.35) 100%);
}

.hero-copy {
    padding: 140px 0 clamp(64px, 12vh, 120px);
    max-width: 880px;
}

.hero h1 {
    font-size: clamp(2.8rem, 7.2vw, 6rem);
    letter-spacing: -0.015em;
    /* chiselled: dark cut above, lit edge below */
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7), 0 2px 0 rgba(255, 255, 255, 0.14), 0 14px 40px rgba(0, 0, 0, 0.5);
}

.hero h1 .sub {
    display: block;
    margin-top: 0.14em;
    font-size: 0.66em;
    line-height: 1.1;
    color: var(--lichen);
}

.hero .lede {
    margin-top: 28px;
    font-size: clamp(1.05rem, 1vw + 0.8rem, 1.3rem);
    max-width: 46ch;
    font-weight: 300;
    color: var(--lime-200);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 16px 28px;
    border-radius: 3px;
    border: 1.5px solid transparent;
    transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s, box-shadow 0.4s var(--ease-out);
}

.btn-primary {
    background: var(--lichen);
    color: var(--slate-900);
    box-shadow: 0 8px 0 -2px #5e7424;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 0 -2px #5e7424;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 -2px #5e7424;
}

.btn-ghost {
    border-color: rgba(236, 238, 237, 0.55);
    color: var(--lime-100);
}

.btn-ghost:hover {
    background: var(--lime-100);
    color: var(--slate-900);
}

/* ---------- Courses (sections) ---------- */
.course {
    padding: clamp(72px, 10vw, 128px) 0;
    position: relative;
}

.course-dark {
    background: var(--slate-900);
}

.course-mid {
    background: var(--slate-800);
}

.course-light {
    background: var(--lime-200);
    color: var(--ink);
}

.course-light::before,
.course-mid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    mix-blend-mode: multiply;
    opacity: 0.12;
    pointer-events: none;
}

.course>* {
    position: relative;
}

.course-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 56px;
}

.course h2 {
    font-size: clamp(2.4rem, 4.4vw, 4rem);
}

.course-head p {
    color: var(--lime-300);
    font-weight: 300;
    font-size: 1.1rem;
    max-width: 46ch;
}

.course-light .course-head p {
    color: var(--ink-soft);
}

/* ---------- Masonry: running bond, each course offset ---------- */
.wall {
    display: flex;
    flex-direction: column;
    gap: var(--mortar);
}

.row {
    display: flex;
    gap: var(--mortar);
}

.row>* {
    min-width: 0;
}

.row:nth-child(4n+1)>*:nth-child(1) {
    flex: 5;
}

.row:nth-child(4n+1)>*:nth-child(2) {
    flex: 3;
}

.row:nth-child(4n+1)>*:nth-child(3) {
    flex: 4;
}

.row:nth-child(4n+2)>*:nth-child(1) {
    flex: 3;
}

.row:nth-child(4n+2)>*:nth-child(2) {
    flex: 5;
}

.row:nth-child(4n+2)>*:nth-child(3) {
    flex: 4;
}

.row:nth-child(4n+3)>*:nth-child(1) {
    flex: 4;
}

.row:nth-child(4n+3)>*:nth-child(2) {
    flex: 4;
}

.row:nth-child(4n+3)>*:nth-child(3) {
    flex: 3;
}

.row:nth-child(4n)>*:nth-child(1) {
    flex: 3;
}

.row:nth-child(4n)>*:nth-child(2) {
    flex: 4;
}

.row:nth-child(4n)>*:nth-child(3) {
    flex: 5;
}

.stone {
    position: relative;
    background: var(--slate-700);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.3);
}

.course-light .stone {
    background: var(--lime-100);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 14px rgba(26, 31, 34, 0.18);
}

.stone::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    mix-blend-mode: multiply;
    opacity: 0.18;
    pointer-events: none;
}

.stone .photo {
    flex: 1 1 auto;
    min-height: clamp(220px, 20vw, 300px);
    position: relative;
    overflow: hidden;
    background: var(--slate-600);
}

.stone img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.25);
    transition: transform 0.9s var(--ease-out), filter 0.6s;
}

.stone:hover img {
    transform: scale(1.05);
    filter: grayscale(0);
}

.stone .body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.stone h3 {
    font-size: 1.55rem;
}

.stone p {
    font-size: 0.97rem;
    color: var(--lime-300);
    font-weight: 300;
    line-height: 1.55;
}

.course-light .stone p {
    color: var(--ink-soft);
}

.stone .tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--lichen);
}

.course-light .stone .tag {
    color: var(--lichen-deep);
}

/* blocks lay in on scroll, one course at a time */
.js .stone {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.js .stone.laid {
    opacity: 1;
    transform: none;
}

/* ---------- Listings: Stay, Eat ---------- */
.ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mortar);
}

.ledger-block {
    background: var(--slate-700);
    padding: 28px;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.3);
    position: relative;
}

.ledger-block h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.ledger-block .count {
    color: var(--lichen);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.ledger-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ledger-block li {
    border-top: 1px solid rgba(236, 238, 237, 0.14);
}

.ledger-block li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    text-decoration: none;
    transition: color 0.3s, transform 0.4s var(--ease-out);
}

.ledger-block li a::after {
    content: '\2192';
    color: var(--lichen);
    transition: transform 0.4s var(--ease-out);
}

.ledger-block li a:hover,
.ledger-block li a:focus-visible {
    color: var(--lichen);
    transform: translateX(8px);
}

.ledger-block li a:hover::after {
    transform: translateX(4px);
}

.ledger-note {
    margin-top: 22px;
    font-size: 0.9rem;
    color: var(--lime-300);
}

/* Eat: restaurants + bars */
.eat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--mortar);
}

.eat-card {
    background: var(--lime-100);
    color: var(--ink);
    padding: 24px 24px 22px;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 14px rgba(26, 31, 34, 0.18);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.eat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    mix-blend-mode: multiply;
    opacity: 0.14;
    pointer-events: none;
}

.eat-card h3 {
    font-size: 1.35rem;
}

.eat-card p {
    font-size: 0.94rem;
    color: var(--ink-soft);
    flex: 1;
}

.eat-card a {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--lichen-deep);
    text-underline-offset: 4px;
    padding: 6px 0;
}

.eat-card a:hover {
    color: var(--ink);
}

.subhead {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 56px 0 20px;
}

.subhead:first-of-type {
    margin-top: 0;
}

/* ---------- Voices ---------- */
.voices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mortar);
}

.voice {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--slate-600);
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.voice img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3) brightness(0.8);
    transition: transform 0.9s var(--ease-out), filter 0.5s;
}

.voice:hover img {
    transform: scale(1.04);
    filter: grayscale(0) brightness(0.95);
}

.voice span {
    position: absolute;
    left: 20px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.voice span::before {
    content: '';
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--lichen)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23181c1f'/%3E%3C/svg%3E") center/26px no-repeat;
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 860px;
}

.faq details {
    border-top: 1px solid rgba(26, 31, 34, 0.25);
}

.faq details:last-child {
    border-bottom: 1px solid rgba(26, 31, 34, 0.25);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 48px 22px 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    position: relative;
    min-height: 44px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 50%;
    translate: 0 -50%;
    font-family: var(--font-body);
    font-size: 1.8rem;
    color: var(--lichen-deep);
    transition: rotate 0.4s var(--ease-out);
}

.faq details[open] summary::after {
    rotate: 45deg;
}

.faq details p {
    padding: 0 48px 24px 0;
    color: var(--ink-soft);
    max-width: 62ch;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.contact-grid .lead {
    margin-top: 20px;
    font-size: 1.15rem;
    color: var(--lime-300);
    font-weight: 300;
    max-width: 40ch;
}

.contact-grid .mail {
    display: inline-block;
    margin-top: 28px;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    color: var(--lichen);
    text-underline-offset: 6px;
    overflow-wrap: anywhere;
}

form {
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 500;
}

input,
textarea {
    font: inherit;
    color: var(--lime-100);
    background: var(--slate-800);
    border: 1px solid rgba(236, 238, 237, 0.25);
    border-radius: 3px;
    padding: 14px 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input::placeholder,
textarea::placeholder {
    color: #9aa4aa;
}

input:hover,
textarea:hover {
    border-color: rgba(236, 238, 237, 0.5);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--lichen);
    box-shadow: 0 0 0 3px rgba(169, 194, 90, 0.3);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

button.btn {
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    justify-self: start;
}

/* ---------- Footer ---------- */
footer {
    background: var(--slate-900);
    border-top: 1px solid rgba(236, 238, 237, 0.14);
    padding: 36px 0 44px;
    font-size: 0.92rem;
    color: #aab3b8;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 32px;
}

footer a {
    text-underline-offset: 4px;
}

footer a:hover {
    color: var(--lichen);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .course-head {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .eat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .row {
        flex-wrap: wrap;
    }

    .row>* {
        flex: 1 1 calc(50% - var(--mortar)) !important;
    }

    .row>*:nth-child(odd):last-child {
        flex-basis: 100% !important;
    }
}

@media (max-width: 760px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--slate-900);
        padding: 12px 20px 20px;
        gap: 0;
        visibility: hidden;
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.5s var(--ease-out), visibility 0s linear 0.5s;
    }

    .nav-links.open {
        visibility: visible;
        clip-path: inset(0);
        transition-delay: 0s;
    }

    .nav-links a {
        padding: 14px 4px;
        font-size: 1.1rem;
        border-top: 1px solid rgba(236, 238, 237, 0.12);
    }

    .nav.open-menu {
        background: var(--slate-900);
    }

    .ledger,
    .voices,
    .eat-grid {
        grid-template-columns: 1fr;
    }

    .row>* {
        flex: 1 1 100% !important;
    }

    .hero-copy {
        padding-top: 110px;
    }

    .actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .stone .photo {
        flex: none;
        min-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .js .stone {
        opacity: 1;
        transform: none;
    }
}

.stone h3 a {
    text-decoration: none;
}

.stone h3 a:hover,
.stone h3 a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* ---------- Privacy policy ---------- */
.policy-page {
    padding-top: clamp(120px, 14vw, 170px);
}

.policy {
    max-width: 760px;
}

.policy h1 {
    font-size: clamp(2.4rem, 4.6vw, 4rem);
}

.policy-lead {
    margin-top: 20px;
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--ink-soft);
}

.policy section {
    margin-top: 40px;
}

.policy h2 {
    font-size: 1.6rem;
}

.policy section p {
    margin-top: 10px;
    color: var(--ink-soft);
    max-width: 68ch;
}

.policy a {
    color: var(--lichen-deep);
    text-underline-offset: 4px;
}
