:root {
  color-scheme: light dark;
  --bg: light-dark(#f7f5ef, #121b19);
  --paper: light-dark(#fffdf8, #1b2925);
  --ink: light-dark(#172e27, #f4f3eb);
  --muted: light-dark(#52645c, #aec4b8);
  --line: light-dark(#dedfd4, #3c4f47);
  --accent: light-dark(#255c46, #b0dfbc);
  --weather: light-dark(#dcece4, #314e41);
  --gold: light-dark(#f1e4c5, #524523);
  --fx: light-dark(#e0e9eb, #31464e);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
.shell { width: min(77rem, calc(100% - 3rem)); margin-inline: auto; }
.top, footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top { min-height: 5.4rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: baseline; gap: .65rem; color: inherit; text-decoration: none; white-space: nowrap; }
.brand b { font-size: 2.05rem; line-height: 1; letter-spacing: -.085em; }
.brand b span { color: var(--accent); }
.brand > span { color: var(--muted); font-size: .92rem; }
nav, .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
nav { gap: clamp(.8rem, 3vw, 2rem); color: var(--muted); font-size: .92rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
button, .jump { border: 1px solid var(--line); border-radius: .65rem; padding: .52rem .85rem; font: inherit; font-size: .86rem; cursor: pointer; }
button { background: var(--paper); color: inherit; min-height: 44px; }
button:hover { border-color: var(--accent); }
a { color: inherit; text-underline-offset: .24em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  min-height: 25rem;
  padding: clamp(1.5rem, 4.6vw, 4rem);
  color: #fffaf0;
  border-radius: 1.35rem;
  background: #103b38 url("kuwait-hero.jpg") center 54% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #072622f5, #082c2c9e 49%, #0a272738 76%), linear-gradient(0deg, #092522bb, transparent 66%);
}
[dir="rtl"] .hero { grid-template-columns: auto minmax(0, 1fr); }
[dir="rtl"] .hero-copy { grid-column: 2; grid-row: 1; justify-self: end; }
[dir="rtl"] .clock { grid-column: 1; grid-row: 1; }
.location { color: #d7eac9; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; margin: 0; }
.location::before { content: ""; display: inline-block; vertical-align: .12em; width: .5rem; height: .5rem; margin-inline-end: .55rem; border-radius: 100%; background: #d7eac9; }
h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(3rem, 7.3vw, 6.6rem); line-height: .99; margin: .75rem 0 1rem; letter-spacing: -.067em; }
[lang="ar"] h1 { font-family: system-ui, sans-serif; font-weight: 700; font-size: clamp(2.75rem, 6vw, 5rem); }
[lang="ar"] :is(h1, .location) { letter-spacing: normal; }
.intro { margin: 0; color: #f0f2e8; max-width: 24rem; }
[dir="rtl"] .intro { margin-inline-start: auto; }
.clock { display: grid; gap: .14rem; min-width: min(100%, 15rem); padding: 1rem 1.15rem; border: 1px solid #e5fff653; border-radius: .85rem; background: #082a26db; }
.clock span { color: #e1efe7; font-size: .8rem; }
.clock time { font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.15; font-variant-numeric: tabular-nums; font-weight: 550; text-align: match-parent; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin-block: 1.85rem .75rem; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; letter-spacing: -.035em; }
[lang="ar"] .section-heading h2 { font-family: inherit; letter-spacing: normal; }
#overview-date { color: var(--muted); font-size: .85rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: .85rem; }
.card { min-width: 0; min-height: 16rem; padding: clamp(1rem, 2.2vw, 1.6rem); border-radius: 1rem; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; align-items: start; }
.icon { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: .7rem; background: var(--weather); font-size: 1.4rem; line-height: 1; }
.gold .icon { background: var(--gold); }
.fx .icon { background: var(--fx); }
.card h2 { font-size: 1.18rem; margin: .85rem 0 .35rem; }
.card p { margin-block: .2rem .65rem; }
.card .value { font-size: 2.5rem; line-height: 1.14; font-weight: 650; letter-spacing: -.045em; }
#weather-detail, #fx-status, .gold p { color: var(--muted); font-size: .9rem; }
.card .source { color: var(--muted); font-size: .79rem; padding-top: .65rem; margin-top: auto; margin-bottom: 0; }
.jump { display: inline-flex; align-items: center; gap: .55rem; font-weight: 650; margin-top: auto; color: var(--ink); background: var(--gold); text-decoration: none; }
.jump:hover { text-decoration: underline; }
#rates { list-style: none; width: 100%; padding: 0; margin: 0; font-size: .88rem; }
#rates li { display: grid; grid-template-columns: auto minmax(2.6rem, 1fr) auto; align-items: baseline; gap: .4rem; padding-block: .31rem; border-top: 1px solid var(--line); }
#rates strong { text-align: end; font-variant-numeric: tabular-nums; }
#rates time { color: var(--muted); font-size: .75rem; }
footer { margin-block: 1.5rem .5rem; padding-block: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
@media (max-width: 55rem) {
  .grid { grid-template-columns: 1fr 1fr; }
  .fx { grid-column: 1 / -1; }
}
@media (max-width: 39rem) {
  .shell { width: calc(100% - 1.5rem); }
  .top { flex-wrap: wrap; gap: .65rem; padding-block: .85rem; }
  .top nav { order: 3; width: 100%; }
  .hero, [dir="rtl"] .hero { grid-template-columns: minmax(0, 1fr); align-content: end; min-height: 26rem; background-position: 91% center; }
  .hero::before { background: linear-gradient(0deg, #092522fc, #092522c2 48%, #09252244 80%); }
  [dir="rtl"] .hero-copy, [dir="rtl"] .clock { grid-column: auto; grid-row: auto; justify-self: start; text-align: start; }
  [dir="rtl"] .intro { margin-inline-start: 0; }
  .clock { justify-self: start; }
  #overview-date { display: none; }
  .grid { grid-template-columns: 1fr; }
  .fx { grid-column: auto; }
  .card { min-height: 12rem; }
}

/* The clock sits below the photograph in both reading directions. */
.hero, [dir="rtl"] .hero { display: flex; align-items: end; }
[dir="rtl"] .hero { justify-content: end; }
.clock, [dir="rtl"] .clock {
  background: transparent;
  border: 0;
  margin-block: 1.25rem;
  padding: 0;
  text-align: center;
}
.clock span { color: var(--muted); }
.clock time { text-align: center; }
.section-heading { margin-block-start: 1rem; }
#overview-date { display: none; }

.clock, [dir="rtl"] .clock { width: 100%; justify-self: stretch; }

.clock, [dir="rtl"] .clock {
  position: absolute;
  inset-inline: 0;
  inset-block-start: clamp(2rem, 5vw, 4.25rem);
  margin: 0;
  color: #fffaf0;
  text-shadow: 0 1px 8px #072622;
  pointer-events: none;
}
.clock span, .clock span:last-child { color: #f0f2e8; }

.weather-credit { display: grid; justify-items: start; gap: .16rem; color: var(--muted); font-size: .68rem; line-height: 1.25; }
.weather-credit img { display: block; width: 74px; height: auto; padding: .15rem .25rem; background: #fff; border-radius: .2rem; }

footer { flex-wrap: wrap; }
footer .weather-credit { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .72rem; }
footer .weather-credit img { width: 62px; }
.weather .icon { font-size: 1.75rem; }

:root {
  --bg: light-dark(#f3e9d6, #1b1b19);
  --paper: light-dark(#fffaf0, #292925);
  --ink: light-dark(#231f19, #f4eee1);
  --muted: light-dark(#5d5345, #bfb7a6);
  --line: light-dark(#dcd0b9, #4e493f);
  --accent: light-dark(#00633b, #96d9ad);
  --weather: light-dark(#e0ecd9, #314332);
  --gold: light-dark(#eedbb2, #524027);
  --fx: light-dark(#ece3d0, #403b31);
}
.hero::before {
  background: linear-gradient(90deg, #221d16eb, #2b271d75 48%, transparent 78%),
              linear-gradient(0deg, #241b13bf, transparent 70%);
}
.location { color: #f2dfb6; }
.location::before { background: #f2dfb6; }
.brand b span { color: light-dark(#c52836, #f1757a); }
nav a:hover { color: var(--accent); }
.jump { color: #fffaf0; background: #006740; border-color: #006740; }
main { padding-bottom: 1.5rem; }
.weather-credit { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-block-start: auto; padding-block-start: .6rem; }
.weather-credit img { width: 60px; }

main { padding-bottom: 0; }
.site-signoff { justify-content: right; text-align: right; }
.weather-credit img { width: 55px; }
