/* ============================================================
   physiotr.com.tr — weather.css (v20260728c)
   Hava Atlası: e-kitap almanak. index.html (v18) tasarım
   sistemiyle aynı palet, tipografi ve kontrol dili.
   ============================================================ */

:root {
    --paper: #f4f4f3;
    --paper-deep: #e9e9e7;
    --surface: #fcfcfb;
    --ink: #1c1d1f;
    --ink-soft: #5c5e62;
    --line: rgba(28, 29, 31, 0.15);
    --line-faint: rgba(28, 29, 31, 0.06);
    --line-strong: rgba(28, 29, 31, 0.4);
    --acid: #e8e8e5;
    --acid-ink: #2b2c2e;
    --coral: #ff6846;
    --coral-text: #c8391a; /* küçük metin için AA kontrastlı koral (açık temada #ff6846 ~2.8:1 kalıyor) */
    /* Lacivert "blueprint" katmanı (home.css ile aynı) */
    --navy: #1d3fa0;
    --navy-deep: #152d75;
    --navy-ink: #1a3891;
    --navy-on: #ffffff;
    --navy-bright: #8aa7ff;
    --navy-faint: rgba(29, 63, 160, 0.07);
    --navy-line: rgba(29, 63, 160, 0.16);
    --navy-line-strong: rgba(29, 63, 160, 0.42);
    --sage: #d6d6d3;
    --shadow: 0 24px 70px rgba(28, 29, 31, 0.1);
    --serif: "Newsreader", Georgia, serif;
    --sans: "Onest", "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --shell: min(1240px, calc(100vw - 64px));
    --header-height: 88px;
    --radius: 20px;
    color-scheme: light;
}

[data-theme="dark"] {
    --paper: #17181a;
    --paper-deep: #1e1f22;
    --surface: #232427;
    --ink: #ececed;
    --ink-soft: #a3a5a9;
    --line: rgba(236, 237, 237, 0.13);
    --line-faint: rgba(236, 237, 237, 0.06);
    --line-strong: rgba(236, 237, 237, 0.34);
    --acid: #2c2e31;
    --acid-ink: #e4e5e6;
    --sage: #34363a;
    --coral-text: #ff6846; /* koyu yüzeyde koral ~5.7:1, doğrudan kullanılabilir */
    /* Gece: sinyal mavisi */
    --navy: #8aa7ff;
    --navy-deep: #b3c6ff;
    --navy-ink: #9db4ff;
    --navy-on: #0d1526;
    --navy-bright: #8aa7ff;
    --navy-faint: rgba(138, 167, 255, 0.1);
    --navy-line: rgba(138, 167, 255, 0.18);
    --navy-line-strong: rgba(138, 167, 255, 0.45);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 240ms ease, color 240ms ease;
}

html,
body {
    overflow-x: clip;
}

/* Kâğıt dokusu */
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
    content: "";
    pointer-events: none;
}

::selection {
    background: var(--acid);
    color: var(--acid-ink);
}

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

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

button {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.mono {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.micro-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1300;
    padding: 12px 16px;
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* --------------------------------------------------------------------- Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background-color 240ms ease, border-color 240ms ease;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    height: var(--header-height);
    width: var(--shell);
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
}

.brand-wordmark {
    width: 158px;
    height: auto;
}

.wordmark-dark {
    display: none;
}

[data-theme="dark"] .wordmark-light {
    display: none;
}

[data-theme="dark"] .wordmark-dark {
    display: block;
}

.header-center {
    margin: 0;
    text-align: center;
    line-height: 1.25;
}

.header-center strong {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
}

.control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 200ms ease, background-color 200ms ease;
}

.control-button:hover {
    border-color: var(--line-strong);
    background: var(--surface);
}

.control-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

.back-link {
    padding: 0 16px;
}

.back-link b {
    font-weight: 600;
}

/* --------------------------------------------------------------- Sayfa iskeleti */

.weather-shell {
    width: var(--shell);
    margin-inline: auto;
    padding: 26px 0 84px;
}

/* ------------------------------------------------------------------- Şehir seçimi */

.city-bar {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0 22px;
    border-bottom: 1px solid var(--line-faint);
    margin-bottom: 26px;
}

.city-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
}

.city-trigger .caret {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--ink-soft);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 240ms ease;
}

.city-trigger[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}

.freshness {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.city-panel {
    position: absolute;
    z-index: 900;
    top: calc(100% + 10px);
    left: 0;
    width: min(760px, 100%);
    max-height: 430px;
    overflow: auto;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    scrollbar-width: thin;
}

.city-panel:not([hidden]) {
    display: grid;
}

.city-option {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: border-color 200ms ease, background-color 200ms ease;
}

.city-option img {
    width: 60px;
    height: 42px;
    object-fit: contain;
    background: var(--paper-deep);
    border-radius: 8px;
}

.city-option b {
    font-size: 0.9rem;
    font-weight: 600;
}

.city-option small {
    display: block;
    margin-top: 1px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.city-option:hover {
    border-color: var(--line);
    background: var(--paper-deep);
}

.city-option.active {
    border-color: var(--line);
    background: var(--acid);
}

.city-option.active b,
.city-option.active small {
    color: var(--acid-ink);
}

/* -------------------------------------------------------- Yükleme / hata durumu */

.loading-state,
.error-state {
    min-height: 52vh;
    display: grid;
    place-content: center;
    gap: 16px;
    text-align: center;
    color: var(--ink-soft);
}

.loading-state span {
    width: 52px;
    height: 52px;
    margin: auto;
    border: 1px solid var(--line);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 1.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(1turn); }
}

.error-state h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ink);
}

.error-state .control-button {
    margin-inline: auto;
}

/* ----------------------------------------------------------------- Hero levhası */

.weather-hero {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    min-height: 560px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(38px, 5vw, 76px);
    border-right: 1px solid var(--line);
}

.plate-index {
    position: absolute;
    top: 26px;
    left: clamp(38px, 5vw, 76px);
}

.hero-date {
    margin: 0 0 14px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.hero-copy h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.6rem);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.035em;
}

.temperature-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 18px;
    margin: 30px 0 10px;
}

.temperature-line strong {
    font-family: var(--serif);
    font-size: clamp(4.6rem, 9vw, 8rem);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 0.85;
    letter-spacing: -0.05em;
}

.temperature-line span {
    padding: 3px 10px;
    background: var(--acid);
    color: var(--acid-ink);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 4px;
}

.hero-summary {
    max-width: 460px;
    margin: 14px 0 26px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
}

.hero-visual {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: var(--paper-deep);
}

.visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-faint) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.city-art {
    position: absolute;
    z-index: 2;
    left: -7%;
    bottom: 44px;
    width: 112%;
    height: auto;
    filter: drop-shadow(0 16px 12px rgba(28, 29, 31, 0.14));
}

.condition-art {
    position: absolute;
    z-index: 3;
    top: 6%;
    right: 5%;
    width: min(32%, 230px);
    height: auto;
    filter: drop-shadow(0 14px 12px rgba(28, 29, 31, 0.16));
    animation: drift 9s ease-in-out infinite;
}

@keyframes drift {
    50% { transform: translateY(-8px); }
}

.plate-caption {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.plate-caption b {
    font-weight: 500;
    color: var(--ink);
}

/* --------------------------------------------------------------- Ölçüm cetveli */

.metric-ribbon {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 18px 0 72px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.metric {
    padding: 22px;
    border-right: 1px solid var(--line);
}

.metric:last-child {
    border-right: 0;
}

.metric b {
    display: block;
    margin-top: 9px;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.metric em {
    display: block;
    margin-top: 4px;
    font-family: var(--mono);
    font-style: normal;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------------- Bölümler */

.forecast-section {
    margin: 72px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-kicker {
    margin-bottom: 6px;
}

.section-heading h2,
.sun-card h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-heading p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------- Saatlik şerit */

.hourly-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 1fr);
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    scrollbar-width: thin;
}

.hour-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    min-height: 196px;
    padding: 18px 14px;
    border-right: 1px solid var(--line-faint);
    text-align: center;
}

.hour-card:last-child {
    border-right: 0;
}

.hour-card small {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.hour-card strong {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.4rem;
    font-weight: 500;
}

.hour-card span {
    min-height: 1.2em;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--ink-soft);
}

.hour-card .rain-mark {
    color: var(--navy-ink);
}

.hour-card.now {
    background: var(--acid);
}

.hour-card.now,
.hour-card.now small,
.hour-card.now span {
    color: var(--acid-ink);
}

.hour-card .weather-icon {
    width: 62px;
    height: 62px;
    margin: -2px auto -6px;
}

.weather-icon {
    display: block;
    object-fit: contain;
}

/* ------------------------------------------------------------ Gökyüzü + detay */

.split-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    margin: 72px 0;
}

.sun-card,
.detail-board {
    padding: clamp(26px, 4vw, 44px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sun-orbit {
    position: relative;
    height: 140px;
    margin: 48px 0 -12px;
    border-top: 1px dashed var(--line-strong);
    border-radius: 50% 50% 0 0;
}

.sun-orbit span {
    position: absolute;
    top: -14px;
    left: 50%;
    width: 26px;
    height: 26px;
    background: var(--navy);
    border-radius: 50%;
    box-shadow: 0 0 0 9px color-mix(in srgb, var(--navy) 14%, transparent);
}

.sun-times {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.sun-times p {
    margin: 0;
}

.sun-times b {
    display: block;
    margin-top: 6px;
    font-size: 1.35rem;
    font-weight: 500;
}

.moon-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.moon-row > span {
    font-size: 2rem;
    line-height: 1;
}

.moon-row p {
    margin: 0;
}

.moon-row b {
    display: block;
    margin-top: 4px;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
}

.detail-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.detail-item {
    padding: 26px;
    border-bottom: 1px solid var(--line);
}

.detail-item:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.detail-item:nth-last-child(-n+2) {
    border-bottom: 0;
}

.detail-item small {
    display: block;
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.detail-item b {
    display: block;
    margin-top: 9px;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.7rem;
    font-weight: 500;
}

.detail-item p {
    margin: 5px 0 0;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------- Haftalık liste */

.daily-list {
    border-top: 1px solid var(--line-strong);
}

.day-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.8fr 0.6fr;
    align-items: center;
    gap: 18px;
    padding: 14px 6px;
    border-bottom: 1px solid var(--line);
}

.day-name b {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.day-name small {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.day-weather {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.day-weather .weather-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
}

.day-weather small {
    overflow: hidden;
    font-size: 0.74rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--ink-soft);
}

.day-range {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 10px;
}

.day-range b {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    font-weight: 500;
}

.day-range b:first-child {
    color: var(--ink-soft);
    text-align: right;
}

.range-track {
    position: relative;
    height: 4px;
    background: var(--paper-deep);
    border-radius: 9px;
}

.range-track i {
    position: absolute;
    height: 100%;
    background: var(--ink-soft);
    border-radius: 9px;
}

.day-rain {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.7rem;
    text-align: right;
    color: var(--navy-ink);
}

/* ----------------------------------------------------------------- Kartpostal */

.city-postcards {
    margin: 80px 0 0;
}

.postcard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.postcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color 240ms ease, box-shadow 240ms ease;
}

.postcard:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.postcard-art {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--paper-deep);
    border-bottom: 1px solid var(--line);
}

.postcard-art img {
    position: absolute;
    left: -6%;
    bottom: 0;
    width: 112%;
    height: auto;
    transition: transform 500ms ease;
}

.postcard:hover .postcard-art img {
    transform: translateY(-4px);
}

.postcard-art {
    display: block;
}

.postcard-caption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 15px 15px;
}

.postcard-country {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.postcard-city {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ----------------------------------------------------------------- İkon atlası */

.icon-atlas-section {
    margin: 90px 0 20px;
}

.icon-atlas {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.atlas-icon-card {
    position: relative;
    min-width: 0;
    padding: 18px 14px 15px;
    border-right: 1px solid var(--line-faint);
    border-bottom: 1px solid var(--line-faint);
    text-align: center;
}

.atlas-icon-card:nth-child(6n) {
    border-right: 0;
}

.atlas-icon-card:nth-last-child(-n+6) {
    border-bottom: 0;
}

.atlas-icon-card > span {
    position: absolute;
    top: 11px;
    left: 13px;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}

.atlas-icon-card img {
    width: 100%;
    max-width: 132px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    margin-inline: auto;
}

.atlas-icon-card b {
    display: block;
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 500;
}

.atlas-icon-card small {
    display: block;
    margin-top: 3px;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}

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

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 26px 0;
    width: var(--shell);
    margin-inline: auto;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.site-footer p {
    margin: 0;
}

.site-footer a:hover {
    color: var(--ink);
}

/* ------------------------------------------------------------------ Responsive */

@media (max-width: 940px) {
    :root {
        --shell: min(1240px, calc(100vw - 40px));
    }

    .header-center {
        display: none;
    }

    .header-inner {
        grid-template-columns: auto 1fr;
    }

    .weather-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-copy {
        min-height: 440px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hero-visual {
        min-height: 400px;
    }

    .metric-ribbon {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric {
        border-bottom: 1px solid var(--line);
    }

    .metric:nth-child(2n) {
        border-right: 0;
    }

    .metric:last-child {
        grid-column: span 2;
        border-bottom: 0;
    }

    .metric:nth-last-child(2) {
        border-bottom: 0;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .postcard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .icon-atlas {
        grid-template-columns: repeat(3, 1fr);
    }

    .atlas-icon-card:nth-child(6n) {
        border-right: 1px solid var(--line-faint);
    }

    .atlas-icon-card:nth-child(3n) {
        border-right: 0;
    }

    .atlas-icon-card:nth-last-child(-n+6) {
        border-bottom: 1px solid var(--line-faint);
    }

    .atlas-icon-card:nth-last-child(-n+3) {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    :root {
        --shell: calc(100vw - 28px);
        --header-height: 72px;
    }

    .brand-wordmark {
        width: 128px;
    }

    .back-link b {
        display: none;
    }

    .back-link {
        width: 44px;
        padding: 0;
    }

    .weather-shell {
        padding-top: 16px;
    }

    .city-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 16px;
    }

    .city-panel {
        top: calc(100% + 8px);
        grid-template-columns: 1fr 1fr;
    }

    .hero-copy {
        min-height: 0;
        padding: 64px 22px 30px;
    }

    .plate-index {
        top: 22px;
        left: 22px;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .temperature-line {
        margin-top: 24px;
    }

    .temperature-line strong {
        font-size: 5.2rem;
    }

    .hero-visual {
        min-height: 300px;
    }

    .city-art {
        left: -12%;
        width: 124%;
    }

    .condition-art {
        width: 36%;
    }

    .metric-ribbon {
        margin-bottom: 54px;
    }

    .metric {
        padding: 16px;
    }

    .metric b {
        font-size: 1.2rem;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 7px;
    }

    .forecast-section,
    .split-section {
        margin: 54px 0;
    }

    .hour-card {
        min-height: 176px;
    }

    .hour-card .weather-icon {
        width: 54px;
        height: 54px;
    }

    .detail-item {
        padding: 18px 14px;
    }

    .detail-item b {
        font-size: 1.4rem;
    }

    .day-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px 14px;
    }

    .day-range {
        grid-column: 1 / -1;
        order: 3;
    }

    .day-rain {
        display: none;
    }

    .day-weather .weather-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .postcard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .postcard-city {
        font-size: 1.05rem;
    }

    .city-postcards {
        margin-top: 56px;
    }

    .icon-atlas {
        grid-template-columns: repeat(2, 1fr);
    }

    .atlas-icon-card:nth-child(3n) {
        border-right: 1px solid var(--line-faint);
    }

    .atlas-icon-card:nth-child(2n) {
        border-right: 0;
    }

    .atlas-icon-card:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--line-faint);
    }

    .atlas-icon-card:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ------------------------------------------------------------- Hareket azaltma */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .condition-art,
    .loading-state span {
        animation: none !important;
    }
}
