/*
Theme Name: ToDesk Remote Atlas 2026
Theme URI: https://todusk.cn/
Author: ToDesk Atlas
Description: A dark editorial single-page theme focused on ToDesk downloads and personal use.
Version: 1.0.2
Text Domain: td-atlas
*/

:root {
  --ink: #101a24;
  --ink-2: #172635;
  --paper: #f5f0e8;
  --paper-2: #ebe3d6;
  --white: #fffdf8;
  --coral: #f26649;
  --orange: #ff9b42;
  --sky: #74c8d4;
  --muted: #62717c;
  --line: #d6cec2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
  border-radius: 50% 50% 50% 8px;
  font-family: Georgia, serif;
  font-size: 20px;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy small {
  color: #b5c0c8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 28px;
  color: #d7dfe4;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--orange);
}

.header-cta {
  padding: 10px 17px;
  color: var(--ink);
  background: var(--orange);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 150px 0 76px;
  color: white;
  background: var(--ink);
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 15, 23, .96) 0%, rgba(8, 15, 23, .78) 47%, rgba(8, 15, 23, .2) 82%),
    linear-gradient(0deg, rgba(8, 15, 23, .92), transparent 54%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 70px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 31px;
  height: 1px;
  background: var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 25px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 32px;
  color: #c6d0d6;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 2px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--orange);
}

.button-secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .06);
}

.hero-meta {
  padding: 29px;
  background: rgba(16, 26, 36, .76);
  border-left: 3px solid var(--coral);
  backdrop-filter: blur(12px);
}

.hero-meta-title {
  margin-bottom: 17px;
  color: #9fadb7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .16);
}

.hero-meta-cell {
  min-height: 84px;
  padding: 14px;
  background: rgba(16, 26, 36, .92);
}

.hero-meta-cell strong {
  display: block;
  color: var(--orange);
  font-size: 19px;
}

.hero-meta-cell span {
  color: #b3bec6;
  font-size: 12px;
}

.edition-strip {
  color: white;
  background: var(--ink-2);
}

.edition-strip-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.edition-strip strong {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 18px;
}

.edition-strip span {
  color: #aeb9c1;
  font-size: 13px;
}

.section {
  padding: 96px 0;
}

.paper-white {
  background: var(--white);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.17;
  letter-spacing: 0;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.article-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 68px;
}

.article-index {
  position: sticky;
  top: 36px;
  align-self: start;
  padding-top: 12px;
  border-top: 3px solid var(--ink);
  font-size: 12px;
}

.article-index strong {
  display: block;
  margin-bottom: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-index a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
}

.article-index a:hover {
  color: var(--coral);
}

.article-body {
  max-width: 860px;
}

.article-body .opening {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  line-height: 1.65;
}

.article-body h3 {
  margin: 40px 0 12px;
  font-size: 23px;
}

.article-body p {
  color: #465661;
}

.article-body .dropcap::first-letter {
  float: left;
  margin: 9px 12px 0 0;
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 74px;
  line-height: .72;
}

.article-quote {
  margin: 36px 0;
  padding: 28px 0 28px 32px;
  color: var(--ink);
  border-left: 5px solid var(--orange);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  line-height: 1.6;
}

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

.platform {
  min-height: 260px;
  padding: 26px;
  background: var(--paper);
  border-top: 4px solid var(--ink);
}

.platform:nth-child(2) {
  border-top-color: var(--coral);
}

.platform:nth-child(3) {
  border-top-color: var(--sky);
}

.platform:nth-child(4) {
  border-top-color: var(--orange);
}

.platform-label {
  display: block;
  margin-bottom: 35px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.platform h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.platform p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ink);
  color: white;
}

.download-image img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.download-copy {
  padding: 58px;
}

.download-copy .kicker {
  color: var(--orange);
}

.download-copy h2 {
  font-size: clamp(34px, 3.8vw, 52px);
}

.download-list {
  margin-top: 30px;
  display: grid;
}

.download-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.download-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.download-row b {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 18px;
}

.download-row strong {
  display: block;
  margin-bottom: 3px;
}

.download-row span {
  color: #aebbc4;
  font-size: 13px;
}

.edition-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}

.edition-image {
  position: relative;
}

.edition-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.edition-image::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  z-index: -1;
  width: 62%;
  height: 55%;
  background: var(--orange);
}

.edition-copy .lead {
  color: var(--ink);
  font-size: 19px;
}

.edition-table {
  margin-top: 29px;
  border-top: 2px solid var(--ink);
}

.edition-table-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.edition-table-row strong {
  color: var(--coral);
}

.edition-table-row span {
  color: var(--muted);
  font-size: 14px;
}

.full-bleed {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  color: white;
  background: var(--ink);
}

.full-bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}

.full-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 26, 36, .94), rgba(16, 26, 36, .38));
}

.full-bleed-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.full-bleed h2 {
  font-size: clamp(38px, 4.6vw, 64px);
}

.full-bleed p {
  color: #c5d0d7;
  font-size: 18px;
}

.myth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.myth {
  padding: 28px;
  background: var(--paper);
}

.myth-label {
  display: inline-block;
  margin-bottom: 23px;
  padding: 5px 9px;
  color: white;
  background: var(--coral);
  font-size: 11px;
  font-weight: 850;
}

.myth h3 {
  margin-bottom: 9px;
  font-size: 19px;
}

.myth p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  border-top: 3px solid var(--ink);
}

.faq-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin-bottom: 0;
  color: var(--coral);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 20px;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.friend-links {
  padding: 19px 0;
  color: #64717b;
  background: #e5ddd1;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.friend-links-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.friend-links strong {
  color: #3c4b55;
}

.friend-links a:hover,
.friend-links a:focus {
  color: var(--coral);
  text-decoration: underline;
}

.site-footer {
  padding: 58px 0 28px;
  color: #b8c2c9;
  background: #0b141d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 50px;
  padding-bottom: 32px;
}

.footer-brand {
  margin-bottom: 13px;
  color: white;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 800;
}

.site-footer p {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 14px;
}

.footer-side {
  text-align: right;
  color: #8e9ba5;
  font-size: 13px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #74838d;
  font-size: 12px;
}

@media (max-width: 1040px) {
  .site-nav {
    display: none;
  }

  .hero-inner,
  .edition-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    gap: 42px;
  }

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

  .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .article-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
  }

  .article-index strong {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 1200px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .header-cta {
    padding: 8px 12px;
    font-size: 11px;
  }

  .hero {
    padding: 122px 0 52px;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(8, 15, 23, .97), rgba(8, 15, 23, .72));
  }

  h1 {
    font-size: 44px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions .button {
    flex: 1 1 142px;
  }

  .edition-strip-inner {
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .section {
    padding: 66px 0;
  }

  .platform-grid,
  .myth-grid {
    grid-template-columns: 1fr;
  }

  .platform {
    min-height: auto;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-image img {
    min-height: 260px;
  }

  .download-copy {
    padding: 38px 25px;
  }

  .edition-table-row,
  .faq-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .full-bleed {
    min-height: 480px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-side {
    text-align: left;
  }
}
