/* Cambiante Restaurantes — Santa Marta */

:root {
    --bg: #faf6ef;
    --tint: #f2e8da;
    --ink: #1f1a14;
    --muted: #6e645a;
    --line: rgba(31, 26, 20, 0.1);
    --accent: #e27e2c;
    --accent-hover: #ec8c3c;
    --accent-text: #b4561b;

    --font-display: "Fraunces", Georgia, serif;
    --font-sans: "Jost", "Avenir Next", system-ui, sans-serif;

    --gutter: clamp(16px, 4vw, 40px);
    --radius: 24px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.6 var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
p,
figure,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

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

.wrap {
    width: min(100% - 2 * var(--gutter), 1120px);
    margin-inline: auto;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Logo: the brand ring, traced from the logo artwork ---------- */

@property --sweep {
    syntax: "<angle>";
    inherits: false;
    initial-value: 360deg;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ring {
    display: block;
    overflow: visible;
    color: var(--accent);
}

.logo .ring {
    width: 132px;
    height: 132px;
}

.logo-word {
    font: 600 1.1rem/1 var(--font-sans);
    letter-spacing: 0.12em;
    margin-right: -0.12em;
    text-transform: uppercase;
}

.logo--small {
    flex-direction: row;
    gap: 12px;
}

.logo--small .ring {
    width: 32px;
    height: 32px;
    transition: rotate 0.8s var(--ease);
}

.logo--small:hover .ring {
    rotate: 120deg;
}

.logo--small .logo-word {
    font-size: 0.9rem;
}

/* ---------- Headers ---------- */

.home-header {
    padding: clamp(56px, 10vw, 104px) var(--gutter) clamp(48px, 7vw, 80px);
    text-align: center;
}

.home-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-weight: inherit;
}

.home-sub {
    color: var(--muted);
    font-size: 0.95rem;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 24px;
}

.site-nav {
    display: flex;
    gap: 24px;
    font-size: 0.95rem;
    text-transform: capitalize;
}

.site-nav a {
    color: var(--muted);
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
}

.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* ---------- Home: restaurant cards ---------- */

.venues {
    display: grid;
    gap: 96px 72px;
    padding-bottom: clamp(72px, 10vw, 120px);
}

@media (min-width: 860px) {
    .venues {
        grid-template-columns: 1fr 1fr;
    }
}

.venue-photo {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: var(--tint);
}

@media (min-width: 860px) {
    .venue-photo {
        aspect-ratio: 1;
    }
}

.venue-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.8s var(--ease);
}

.venue:hover .venue-photo img {
    scale: 1.03;
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(250, 246, 239, 0.9);
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.venue-kind {
    margin-top: 36px;
    color: var(--accent-text);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.venue-name {
    margin-top: 10px;
    font: 400 clamp(1.9rem, 3vw, 2.4rem)/1.1 var(--font-display);
    letter-spacing: -0.015em;
}

.venue-summary {
    max-width: 44ch;
    margin-top: 16px;
    color: var(--muted);
}

.venue .rows {
    margin-top: 40px;
}

.venue-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
}

.venue-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-weight: 500;
}

.venue-more .icon {
    transition: translate 0.3s var(--ease);
}

.venue-more:hover .icon {
    translate: 4px 0;
}

/* ---------- Link rows ---------- */

.rows {
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.row-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent-text);
    transition: background-color 0.25s, color 0.25s;
}

.row-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.row-label {
    font-weight: 500;
}

.row-detail {
    color: var(--muted);
    font-size: 0.92rem;
}

.row-arrow {
    color: var(--muted);
    transition: translate 0.3s var(--ease), color 0.25s;
}

.row:hover .row-icon {
    background: var(--accent);
    color: var(--ink);
}

.row:hover .row-arrow {
    translate: 3px -3px;
    color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 500;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn-accent {
    background: var(--accent);
    color: var(--ink);
}

.btn-accent:hover {
    background: var(--accent-hover);
}

.btn-outline {
    border-color: rgba(31, 26, 20, 0.25);
}

.btn-outline:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.icon-btn:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}

/* ---------- Restaurant page ---------- */

.place {
    display: grid;
    gap: 32px;
    padding-block: 8px clamp(56px, 8vw, 96px);
}

@media (min-width: 900px) {
    .place {
        grid-template-columns: 1fr 1fr;
        gap: clamp(48px, 6vw, 88px);
        align-items: start;
    }

    .place-photo {
        position: sticky;
        top: 24px;
    }

    .place-body {
        padding-top: 32px;
    }
}

.place-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--tint);
}

.place-area {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.place-area .icon {
    width: 18px;
    height: 18px;
    color: var(--accent-text);
}

.place-title {
    margin-top: 16px;
    font: 400 clamp(2.6rem, 6vw, 4.4rem)/1 var(--font-display);
    letter-spacing: -0.025em;
}

.place-kind {
    margin-top: 12px;
    color: var(--accent-text);
    font-weight: 500;
}

.place-lede {
    max-width: 46ch;
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.06rem;
}

.place-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.place-actions .btn {
    flex: 1 1 auto;
}

.place .rows {
    margin-top: 40px;
}

.place-other {
    margin-top: 32px;
    color: var(--muted);
    font-size: 0.95rem;
}

.place-other a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-weight: 500;
}

.place-other .icon {
    width: 18px;
    height: 18px;
}

.gallery {
    padding-bottom: clamp(56px, 8vw, 96px);
}

.gallery-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.gallery-rail li {
    flex: none;
    scroll-snap-align: start;
}

.gallery-rail img {
    width: auto;
    height: clamp(260px, 36vw, 400px);
    border-radius: 18px;
    object-fit: cover;
    background: var(--tint);
}

/* ---------- Footer ---------- */

.site-footer {
    padding-block: 32px 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
    /* The ring sweeps in clockwise, as if drawn. */
    .home-header .ring {
        mask-image: conic-gradient(#000 var(--sweep), transparent 0);
        animation: ring-draw 1.6s var(--ease) 0.2s both;
    }

    .home-header,
    .venue,
    .place-photo,
    .place-body {
        animation: fade-up 0.9s var(--ease) both;
    }

    .venue:nth-child(2),
    .place-body {
        animation-delay: 0.12s;
    }
}

@keyframes ring-draw {
    from {
        --sweep: 0deg;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        translate: 0 24px;
    }
}
