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

:root {
    /* Portuguese Azulejo & Maritime Color Palette */
    --port-cream: #faf9f6;
    --port-ivory: #f5f3ef;
    --port-sand: #eeebe5;
    --port-azure: #4a7fb8;
    --port-deep-azure: #2d5a8a;
    --port-cobalt: #3a6490;
    --port-ocean: #5a8fb8;
    --port-terracotta: #c97a5a;
    --port-deep-terra: #a56548;
    --port-gold: #d4a257;
    --port-bronze: #b88845;
    --port-sail: #e8dcc8;
    --text-primary: #2a2d32;
    --text-muted: #5a5f68;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(2rem, 1.6rem + 2vw, 2.5rem);
    --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);

    /* Shadows - Portuguese themed */
    --shadow-sm: 0 2px 8px rgba(74, 127, 184, 0.08);
    --shadow-md: 0 4px 16px rgba(45, 90, 138, 0.12), 0 2px 6px rgba(74, 127, 184, 0.08);
    --shadow-lg: 0 12px 32px rgba(74, 127, 184, 0.16), 0 4px 12px rgba(45, 90, 138, 0.1);
    --shadow-xl: 0 24px 48px rgba(74, 127, 184, 0.2), 0 8px 20px rgba(45, 90, 138, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--port-cream) 0%, var(--port-ivory) 50%, var(--port-sand) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
}

/* Portuguese Azulejo Tile Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 22% 30%, rgba(74, 127, 184, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 78% 70%, rgba(201, 122, 90, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(212, 162, 87, 0.03) 1px, transparent 1px);
    background-size: 85px 85px, 110px 110px, 135px 135px;
    pointer-events: none;
    z-index: 0;
    animation: azulejoDrift 95s linear infinite;
}

@keyframes azulejoDrift {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 85px 85px, 110px 110px, 135px 135px;
    }
}

/* Maritime light effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 20% 25%, rgba(74, 127, 184, 0.13) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 75%, rgba(201, 122, 90, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 162, 87, 0.08) 0%, transparent 70%);
    animation: maritimeGlow 28s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes maritimeGlow {
    0% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1.14) rotate(6deg);
    }
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Elegant Header with Glassmorphism */
header {
    background: rgba(250, 249, 246, 0.93);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(74, 127, 184, 0.2);
    padding: var(--space-xl) var(--space-2xl);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    flex: 1;
    min-width: 200px;
}

.site-title a {
    text-decoration: none;
    font-size: var(--text-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--port-deep-azure) 0%, var(--port-azure) 50%, var(--port-terracotta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    filter: drop-shadow(0 0 20px rgba(74, 127, 184, 0.3));
}

.site-title a:hover {
    filter: drop-shadow(0 0 30px rgba(74, 127, 184, 0.5));
    letter-spacing: 0.16em;
}

.site-tagline {
    font-size: var(--text-sm);
    color: var(--port-azure);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: var(--space-sm);
    font-weight: 400;
}

/* Navigation Menu */
.home {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.home ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.home li {
    margin: 0 var(--space-lg);
    font-size: var(--text-base);
    line-height: 2.5;
    position: relative;
}

.home li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--port-azure), var(--port-terracotta));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(74, 127, 184, 0.4);
}

.home li:hover::before {
    width: 100%;
}

.home a {
    text-decoration: none;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.home li:hover a {
    color: var(--port-deep-azure);
    text-shadow: 0 0 15px rgba(74, 127, 184, 0.3);
}

/* Hero Section - Portuguese Maritime */
.hero-section {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(250, 249, 246, 0.98) 0%, rgba(245, 243, 239, 0.92) 100%);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 900;
    background: linear-gradient(135deg, var(--port-deep-azure) 0%, var(--port-gold) 50%, var(--port-terracotta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    filter: drop-shadow(0 0 25px rgba(74, 127, 184, 0.25));
    animation: portugalPulse 7s ease-in-out infinite;
}

@keyframes portugalPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 25px rgba(74, 127, 184, 0.25));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(74, 127, 184, 0.4));
        transform: scale(1.015);
    }
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--port-azure);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: var(--space-lg);
    text-shadow: 0 0 20px rgba(74, 127, 184, 0.2);
}

/* Portuguese Maritime & Azulejo SVG */
.portugal-maritime-svg {
    width: 100%;
    height: 460px;
    margin-top: var(--space-3xl);
}

/* Sailing ship animation */
.sailing-ship {
    opacity: 0;
    animation: sailIn 3.5s ease-out forwards;
}

.sailing-ship:nth-child(1) {
    animation-delay: 1.5s;
}

@keyframes sailIn {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 0.85;
        transform: translateX(0);
    }
}

/* Ship sails */
.ship-sail {
    opacity: 0;
    animation: unfurlSail 2.5s ease-out forwards;
    transform-origin: left;
}

.ship-sail:nth-child(1) {
    animation-delay: 2.5s;
}

.ship-sail:nth-child(2) {
    animation-delay: 2.8s;
}

@keyframes unfurlSail {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 0.88;
        transform: scaleX(1);
    }
}

/* Douro River */
.douro-river {
    fill: var(--port-azure);
    opacity: 0;
    animation: flowDouro 3.8s ease-out forwards;
}

@keyframes flowDouro {
    from {
        opacity: 0;
        transform: scaleY(0.6);
    }

    to {
        opacity: 0.38;
        transform: scaleY(1);
    }
}

/* River waves */
.river-wave {
    fill: none;
    stroke: var(--port-deep-azure);
    stroke-width: 2;
    opacity: 0;
    animation: waveFlow 4.2s ease-out forwards;
}

.river-wave:nth-child(1) {
    animation-delay: 3.5s;
}

.river-wave:nth-child(2) {
    animation-delay: 3.8s;
}

@keyframes waveFlow {
    from {
        opacity: 0;
        stroke-dasharray: 950;
        stroke-dashoffset: 950;
    }

    to {
        opacity: 0.3;
        stroke-dasharray: 950;
        stroke-dashoffset: 0;
    }
}

/* Azulejo tiles */
.azulejo-tile {
    opacity: 0;
    animation: revealTile 2s ease-out forwards;
}

.azulejo-tile:nth-child(1) {
    animation-delay: 0.8s;
}

.azulejo-tile:nth-child(2) {
    animation-delay: 1.1s;
}

.azulejo-tile:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes revealTile {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Church towers */
.church-tower {
    opacity: 0;
    animation: riseChurch 2.8s ease-out forwards;
    transform-origin: bottom;
}

.church-tower:nth-child(1) {
    animation-delay: 1.8s;
}

.church-tower:nth-child(2) {
    animation-delay: 2.2s;
}

@keyframes riseChurch {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 0.82;
        transform: translateY(0);
    }
}

/* Main Content Section */
.content {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl) var(--space-4xl);
}

.region-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--port-deep-azure) 0%, var(--port-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-3xl);
    position: relative;
    padding-left: 2.5rem;
}

.region-title::before {
    content: '⚓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-2xl);
    animation: anchorFloat 5s ease-in-out infinite;
}

@keyframes anchorFloat {

    0%,
    100% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.12);
    }
}

.city-section {
    margin-bottom: var(--space-4xl);
}

.city-name {
    font-size: var(--text-3xl);
    font-weight: 600;
    background: linear-gradient(135deg, var(--port-azure) 0%, var(--port-terracotta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xl);
    padding-left: 1.5rem;
    position: relative;
}

.city-name::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-lg);
    color: var(--port-azure);
    animation: diamondPulse 4s ease-in-out infinite;
}

@keyframes diamondPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.15);
    }
}

.links {
    margin-top: var(--space-xl);
}

.links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-2xl);
    padding: 0;
    justify-items: center;
}

/* City Card - Portuguese Azulejo Design */
.links li {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 420px;
    max-width: 480px;
    width: 100%;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    z-index: 1;
}

.links li.portrait {
    height: 520px;
    max-width: 380px;
}

.links li:hover {
    transform: translateY(-22px) scale(1.03);
    z-index: 10;
}

/* Card Container with Glassmorphism */
.links li a {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(250, 249, 246, 0.96);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 16px;
    border: 1.5px solid rgba(74, 127, 184, 0.25);
    box-shadow: var(--shadow-lg);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.links li:hover a {
    border-color: rgba(74, 127, 184, 0.5);
    box-shadow: var(--shadow-xl);
}

/* Portuguese azulejo lines */
.portuguese-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.links li:hover .portuguese-lines {
    opacity: 1;
}

.portuguese-line-element {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(74, 127, 184, 0.3), transparent);
    width: 1px;
    height: 100%;
    animation: portugalFlow 5.5s ease-in-out infinite;
}

.portuguese-line-element:nth-child(1) {
    left: 28%;
    animation-delay: 0s;
}

.portuguese-line-element:nth-child(2) {
    left: 50%;
    background: linear-gradient(90deg, transparent, rgba(201, 122, 90, 0.27), transparent);
    width: 2px;
    animation-delay: 0.5s;
}

.portuguese-line-element:nth-child(3) {
    left: 72%;
    animation-delay: 0s;
}

@keyframes portugalFlow {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.11);
    }
}

/* Azure light scanning effect */
.azure-scan {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(74, 127, 184, 0.17),
            rgba(201, 122, 90, 0.14),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.links li:hover .azure-scan {
    animation: azureScan 2.8s ease-in-out;
}

@keyframes azureScan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* Image Container */
.links li img {
    width: 100%;
    height: 78%;
    object-fit: cover;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.95) contrast(1.05) brightness(0.99);
    border-radius: 16px;
}

.links li:hover img {
    transform: scale(1.15);
    filter: saturate(1.1) contrast(1.09) brightness(1.02);
}

/* Location name overlay */
.links li a::after {
    content: attr(data-location);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(to top,
            rgba(250, 249, 246, 0.98) 0%,
            rgba(245, 243, 239, 0.97) 60%,
            transparent 100%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-top: 1px solid rgba(74, 127, 184, 0.2);
    border-radius: 0 0 16px 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 15px rgba(250, 249, 246, 0.8);
}

.links li:hover a::after {
    padding: var(--space-2xl);
    text-shadow: 0 0 20px rgba(74, 127, 184, 0.4);
}

/* Portuguese frame corners */
.portuguese-frame {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    transition: all 0.6s ease;
}

.frame-tl,
.frame-br,
.frame-tr,
.frame-bl {
    width: 42px;
    height: 42px;
    border: 2.5px solid rgba(74, 127, 184, 0.4);
    border-radius: 4px;
}

.frame-tl {
    top: 16px;
    left: 16px;
    border-right: none;
    border-bottom: none;
}

.frame-tr {
    top: 16px;
    right: 16px;
    border-left: none;
    border-bottom: none;
}

.frame-bl {
    bottom: 16px;
    left: 16px;
    border-right: none;
    border-top: none;
}

.frame-br {
    bottom: 16px;
    right: 16px;
    border-left: none;
    border-top: none;
}

.links li:hover .portuguese-frame {
    border-color: rgba(74, 127, 184, 0.7);
    box-shadow: 0 0 18px rgba(74, 127, 184, 0.35);
}

.links li:hover .frame-tl,
.links li:hover .frame-br {
    width: 52px;
    height: 52px;
}

.links li:hover .frame-tr,
.links li:hover .frame-bl {
    width: 52px;
    height: 52px;
}

/* Footer with Glassmorphism */
footer {
    background: rgba(250, 249, 246, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(74, 127, 184, 0.2);
    padding: var(--space-3xl) var(--space-xl);
    margin-top: var(--space-4xl);
    text-align: center;
    box-shadow: 0 -4px 24px rgba(74, 127, 184, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-size: var(--text-xl);
    background: linear-gradient(135deg, var(--port-deep-azure) 0%, var(--port-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
    font-weight: 700;
}

.footer-credits {
    color: var(--port-azure);
    font-size: var(--text-base);
    letter-spacing: 0.05em;
    margin-top: var(--space-lg);
    font-weight: 400;
}

.footer-credits strong {
    background: linear-gradient(135deg, var(--port-deep-azure) 0%, var(--port-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Language Section in Footer */
.lang-section {
    margin: var(--space-2xl) 0;
}

.lang-section h4 {
    font-size: var(--text-lg);
    color: var(--port-azure);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    font-weight: 600;
}


#langlist {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg, 1rem);
    padding: 0;
    margin: 0;
}

#langlist li {
    position: relative;
}

#langlist a {
    text-decoration: none;
    color: var(--text-muted, inherit);
    font-size: var(--text-sm, 0.95rem);
    letter-spacing: 0.08em;
    padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    background: rgba(212, 165, 116, 0.06);
    border: 1px solid rgba(212, 165, 116, 0.15);
    white-space: nowrap;
}

#langlist a:hover {
    background: rgba(212, 165, 116, 0.12);
    border-color: rgba(212, 165, 116, 0.3);
    color: var(--baltic-deep-amber, currentColor);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.12));
}

#langlist .highlight a {
    background: linear-gradient(135deg, var(--baltic-deep-teal, #0f766e), var(--baltic-amber, #d4a574));
    color: var(--baltic-cream, #fffaf0);
    border-color: var(--baltic-deep-amber, #b7791f);
}

.lang-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding: 0;
}

.lang-list li {
    position: relative;
}

.lang-list a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    background: rgba(74, 127, 184, 0.06);
    border: 1px solid rgba(74, 127, 184, 0.15);
}

.lang-list a:hover {
    background: rgba(74, 127, 184, 0.12);
    border-color: rgba(74, 127, 184, 0.3);
    color: var(--port-deep-azure);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lang-list .highlight a {
    background: linear-gradient(135deg, var(--port-deep-azure), var(--port-azure));
    color: var(--port-cream);
    border-color: var(--port-cobalt);
}

.licence {
    margin-top: var(--space-2xl);
}

.licence img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.licence img:hover {
    opacity: 1;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg) var(--space-md);
    }

    .site-branding {
        margin-bottom: var(--space-lg);
    }

    .home {
        justify-content: center;
    }

    .home ul {
        justify-content: center;
    }

    .links ul {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-xl);
    }

    .portugal-maritime-svg {
        height: 380px;
    }

    .region-title {
        font-size: var(--text-3xl);
    }

    .city-name {
        font-size: var(--text-2xl);
    }

    .links li {
        height: 390px;
    }

    .links li.portrait {
        height: 490px;
    }
}

@media screen and (max-width: 600px) {
    .site-title a {
        font-size: var(--text-2xl);
        letter-spacing: 0.08em;
    }

    .site-tagline {
        font-size: var(--text-xs);
    }

    .home li {
        margin: 0 var(--space-sm);
        font-size: var(--text-sm);
    }

    .hero-title {
        font-size: var(--text-3xl);
        letter-spacing: 0.1em;
    }

    .hero-subtitle {
        font-size: var(--text-base);
        letter-spacing: 0.1em;
    }

    .links ul {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .links li {
        height: 360px;
        max-width: 100%;
    }

    .links li.portrait {
        height: 460px;
        max-width: 100%;
    }

    .links li a::after {
        font-size: var(--text-xl);
        padding: var(--space-lg);
    }

    .region-title {
        font-size: var(--text-2xl);
        padding-left: 2rem;
    }

    .city-name {
        font-size: var(--text-xl);
    }

    .lang-list {
        gap: var(--space-sm);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
