/* Desert Fortress updates: the list (/updates/) and one update (/updates/<slug>/). Pages come from _tools/build-updates.mjs. */
html[lang="tr"] [data-l="en"], html:not([lang="tr"]) [data-l="tr"] { display: none !important; }

.up { padding: calc(var(--head) + 28px) 0 88px; }
.up .title { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 8px; }
.up-lead { color: var(--mute); max-width: 44rem; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.up-empty { margin-top: 36px; color: var(--mute); }

/* the list: the newest across the top, the rest three a row */
.up-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.up-list > li:first-child { grid-column: 1 / -1; }
.up-card { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: var(--bg2); border-left: 3px solid var(--acc);
  transition: transform .25s ease, background-color .25s ease; }
.up-card:hover { transform: translateY(-2px); background: var(--bg3); }
.up-card:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.up-pic, .up-hero { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg3); }
.up-pic img, .up-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.up-pic img { transition: transform .5s ease; }
.up-card:hover .up-pic img { transform: scale(1.03); }
.up-txt { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.up-date { margin: 0; font: 600 .78rem/1 var(--cond); letter-spacing: .24em; text-transform: uppercase; color: var(--acc); }
.up-name { margin: 10px 0 8px; font: 700 1.9rem/.95 var(--cond); text-transform: uppercase; text-wrap: balance; }
.up-sum { margin: 0; color: var(--mute); font-size: .95rem; line-height: 1.5; }
.up-more { margin-top: auto; padding-top: 16px; font: 700 .85rem/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--acc); }
.up-more::after { content: ""; display: inline-block; width: 18px; height: 2px; margin-left: 10px; vertical-align: middle; background: currentColor; transition: width .25s ease; }
.up-card:hover .up-more::after { width: 30px; }
.up-list > li:first-child .up-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.up-list > li:first-child .up-txt { justify-content: center; padding: 32px 36px; }
.up-list > li:first-child .up-name { font-size: clamp(2.2rem, 3.6vw, 3.3rem); }
.up-list > li:first-child .up-sum { font-size: 1.05rem; }
.up-list > li:first-child .up-more { margin-top: 0; padding-top: 22px; }

/* one update */
.up-art { max-width: 900px; }
.up-back { font: 600 .85rem/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.up-back::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: middle; background: currentColor; }
.up-back:hover { color: var(--acc); }
.up-when { margin-top: 28px; }
.up-hero { margin: 30px 0 34px; }
.up-body { max-width: 44rem; font-size: 1.06rem; line-height: 1.7; color: color-mix(in srgb, var(--ink) 88%, var(--mute)); }
.up-body p { margin: 0 0 1.1em; }
.up-body h2, .up-body h3, .up-body h4 { margin: 1.8em 0 .5em; font: 700 1.7rem/1 var(--cond); text-transform: uppercase; color: var(--ink); }
.up-body h3, .up-body h4 { font-size: 1.35rem; }
.up-body ul, .up-body ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.up-body li { margin: .3em 0; }
.up-body a { color: var(--acc); text-underline-offset: 3px; }
.up-body code { font-size: .92em; padding: 1px 5px; background: var(--bg3); }
.up-body img { height: auto; margin: 1.4em auto; border-radius: 4px; }
.up-body blockquote { margin: 0 0 1.1em; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--acc); color: var(--ink); }
.up-body pre { margin: 0 0 1.1em; padding: 14px 16px; overflow-x: auto; background: var(--bg3); font-size: .9rem; line-height: 1.5; }
.up-body pre code { padding: 0; background: none; }
.up-body hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.up-body del { color: var(--mute); }
/* a body written in HTML: a sandboxed frame the page sizes to its content (inside it, body.up-frame) */
.up-body.html { max-width: none; }
.up-html { display: block; width: 100%; border: 0; color-scheme: dark; }
.up-frame { background: transparent; overflow-x: hidden; transition: none; }
.up-frame .up-body { max-width: none; }
.up-frame .up-body > :first-child { margin-top: 0; }
.up-frame .up-body > :last-child { margin-bottom: 0; }
html:has(> .up-frame) { display: flow-root; scroll-behavior: auto; }
.up-items { max-width: 44rem; margin-top: 36px; padding: 22px 26px; background: var(--bg2); border-left: 3px solid var(--acc); }
.up-items h2 { margin: 0 0 12px; font: 700 1.2rem/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.up-items ul { margin: 0; padding-left: 1.2em; line-height: 1.55; }
.up-items li { margin: .35em 0; }
.up-end { margin-top: 44px; }

@media (max-width: 900px) {
  .up-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-list > li:first-child .up-card { grid-template-columns: 1fr; }
  .up-list > li:first-child .up-txt { padding: 22px 22px 26px; }
}
@media (max-width: 600px) {
  .up { padding-top: calc(var(--head) + 16px); }
  .up-list { grid-template-columns: 1fr; }
  .up-name { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .up-card, .up-pic img, .up-more::after { transition: none; } }
