:root {
  --ink: #172628;
  --muted: #667575;
  --paper: #f5f7f6;
  --paper-deep: #e5eeec;
  --line: #c9cec7;
  --teal: #186b68;
  --orange: #e36e43;
  --white: #fffdf8;
  --display: "Noto Serif SC", Georgia, serif;
  --body: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-shell { overflow: hidden; }
.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1320px;
  padding: 25px 42px;
}
.brand {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: .04em;
}
.brand-mark {
  align-items: center;
  background: var(--orange);
  color: var(--white);
  display: inline-flex;
  font-size: 17px;
  height: 29px;
  justify-content: center;
  transform: rotate(-12deg);
  width: 29px;
}
.site-nav { align-items: center; display: flex; gap: 33px; }
.site-nav a { color: var(--muted); font-size: 13px; transition: color .2s ease; }
.site-nav a:hover { color: var(--orange); }
.site-nav .nav-contact { color: var(--ink); font-weight: 700; }
.nav-contact span { color: var(--orange); font-size: 17px; margin-left: 6px; }
.menu-toggle { background: none; border: 0; display: none; padding: 5px; }
.menu-toggle span { background: var(--ink); display: block; height: 2px; margin: 5px 0; width: 24px; }

.hero {
  display: grid;
  gap: 7%;
  grid-template-columns: .82fr 1.18fr;
  margin: 35px auto 78px;
  max-width: 1320px;
  padding: 0 42px;
}
.hero-copy { align-self: center; padding-bottom: 18px; }
.eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.eyebrow-dot { background: var(--orange); border-radius: 50%; display: inline-block; height: 7px; margin: 0 8px 1px 0; width: 7px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); }
h1 { font-size: clamp(54px, 7vw, 96px); letter-spacing: -.07em; line-height: 1.02; margin-bottom: 28px; }
h1 em, h2 em { color: var(--orange); font-style: normal; }
.hero-intro { color: var(--muted); font-size: 16px; line-height: 1.85; max-width: 405px; }
.hero-actions { align-items: center; display: flex; gap: 28px; margin-top: 36px; }
.button {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 21px;
  letter-spacing: .04em;
  padding: 14px 17px;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-3px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark span, .button-outline span { color: var(--orange); font-size: 18px; line-height: 0; }
.button-outline { border: 1px solid var(--ink); margin-top: 28px; }
.text-link { border-bottom: 1px solid var(--line); color: var(--ink); font-size: 12px; padding-bottom: 5px; }
.text-link span { color: var(--orange); font-size: 17px; margin-left: 8px; }
.hero-visual { min-height: 600px; position: relative; }
.hero-photo {
  background-image: linear-gradient(180deg, rgba(24, 46, 44, .04), rgba(24, 46, 44, .25)), url("https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1400&q=88");
  background-position: center;
  background-size: cover;
  height: 100%;
  min-height: 600px;
}
.hero-visual::after {
  border: 1px solid rgba(255, 253, 248, .65);
  content: "";
  inset: 16px;
  pointer-events: none;
  position: absolute;
}
.photo-caption { bottom: 22px; color: var(--white); display: flex; font-family: monospace; font-size: 10px; gap: 20px; left: 27px; letter-spacing: .08em; position: absolute; z-index: 1; }
.flight-stamp { background: var(--orange); color: var(--white); display: flex; flex-direction: column; height: 120px; justify-content: center; padding: 14px 17px; position: absolute; right: -19px; text-align: center; top: 52px; transform: rotate(5deg); width: 122px; z-index: 2; }
.stamp-top, .stamp-bottom { font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.flight-stamp strong { font-family: var(--display); font-size: 41px; line-height: 1; margin: 8px 0; }

.ticker { align-items: center; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; margin-bottom: 2px; min-height: 53px; overflow: hidden; }
.ticker-label { border-right: 1px solid var(--line); color: var(--orange); flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .13em; padding: 17px 35px 16px 42px; text-transform: uppercase; }
.ticker-track { align-items: center; animation: drift 30s linear infinite; color: var(--muted); display: flex; font-size: 11px; gap: 23px; min-width: max-content; padding-left: 31px; }
.ticker-track i { color: var(--orange); font-style: normal; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-15%); } }

.section-pad { margin: 0 auto; max-width: 1320px; padding: 110px 42px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 45px; }
h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.06em; line-height: 1.12; margin-bottom: 0; }
.section-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; max-width: 275px; }
.journal-tools { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 35px; padding-bottom: 14px; }
.filters { display: flex; gap: 6px; }
.filter { background: transparent; border: 0; color: var(--muted); font-size: 11px; padding: 8px 10px; transition: color .2s ease; }
.filter span { color: #a1aaa6; font-size: 9px; margin-left: 4px; }
.filter:hover, .filter.active { color: var(--orange); }
.search-box { align-items: center; border-bottom: 1px solid var(--ink); display: flex; gap: 8px; max-width: 160px; }
.search-box span { color: var(--orange); font-size: 22px; transform: rotate(-20deg); }
.search-box input { background: none; border: 0; color: var(--ink); font-size: 11px; outline: 0; padding: 8px 0; width: 125px; }
.search-box input::placeholder { color: #9ba5a0; }
.post-grid { display: grid; gap: 55px 24px; grid-template-columns: repeat(3, 1fr); }
.post-card { min-width: 0; }
.post-image { display: block; height: 245px; overflow: hidden; position: relative; }
.post-image::after { background: rgba(15, 36, 35, .12); content: ""; inset: 0; position: absolute; transition: background .3s ease; }
.post-card:hover .post-image::after { background: rgba(15, 36, 35, .02); }
.post-image::before { background-position: center; background-size: cover; content: ""; inset: 0; position: absolute; transition: transform .5s ease; }
.post-card:hover .post-image::before { transform: scale(1.05); }
.post-image-one::before { background-image: url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=900&q=85"); }
.post-image-two::before { background-image: url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=900&q=85"); }
.post-image-three::before { background-image: url("https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?auto=format&fit=crop&w=900&q=85"); }
.post-image-four::before { background-image: url("https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=900&q=85"); }
.post-image-five::before { background-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=85"); }
.post-image-six::before { background-image: url("https://images.unsplash.com/photo-1473445361085-b9a07f55608b?auto=format&fit=crop&w=900&q=85"); }
.post-number { color: var(--white); font-family: monospace; font-size: 12px; left: 18px; position: absolute; top: 15px; z-index: 1; }
.post-arrow { color: var(--white); font-size: 22px; position: absolute; right: 17px; top: 9px; z-index: 1; }
.post-meta { color: var(--teal); display: flex; font-size: 10px; font-weight: 700; justify-content: space-between; letter-spacing: .06em; margin-top: 18px; text-transform: uppercase; }
.post-meta span:last-child { color: #9aa5a0; font-weight: 500; }
.post-card h3 { font-family: var(--display); font-size: 22px; letter-spacing: -.04em; line-height: 1.35; margin: 11px 0 7px; }
.post-card h3 a:hover { color: var(--orange); }
.post-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 15px; max-width: 330px; }
.read-time { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.read-time span { color: var(--orange); font-size: 18px; margin-left: 9px; vertical-align: -2px; }
.empty-state { color: var(--muted); display: none; font-size: 14px; padding: 40px 0; text-align: center; }

.projects-section { background: var(--ink); color: var(--white); }
.projects-section .eyebrow { color: #8bc5bc; }
.projects-heading { margin-bottom: 55px; }
.projects-section .section-note { color: #a8b7b0; }
.project-list { border-top: 1px solid rgba(255, 253, 248, .27); }
.project-row { align-items: center; border-bottom: 1px solid rgba(255, 253, 248, .27); display: grid; gap: 20px; grid-template-columns: 55px 1fr 220px 35px; padding: 24px 0; transition: color .2s ease, padding .25s ease; }
.project-row:hover { color: #8bc5bc; padding-left: 10px; }
.project-index { color: var(--orange); font-family: monospace; font-size: 11px; }
.project-title { font-family: var(--display); font-size: 25px; letter-spacing: -.05em; }
.project-tag { color: #a8b7b0; font-size: 11px; }
.project-arrow { color: var(--orange); font-size: 24px; text-align: right; }

.about-section { align-items: center; display: grid; gap: 10%; grid-template-columns: .9fr 1fr; }
.about-photo { background-image: linear-gradient(180deg, rgba(24, 46, 44, .02), rgba(24, 46, 44, .2)), url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1200&q=88"); background-position: center; background-size: cover; height: 570px; }
.about-copy h2 { font-size: clamp(31px, 4vw, 52px); margin-bottom: 28px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 470px; }
.about-facts { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; gap: 48px; margin-top: 42px; padding: 21px 0; }
.about-facts div { display: flex; flex-direction: column; }
.about-facts strong { color: var(--orange); font-family: var(--display); font-size: 27px; line-height: 1.1; }
.about-facts span { color: var(--muted); font-size: 10px; margin-top: 3px; }

.subscribe-section { align-items: center; background: var(--paper-deep); display: flex; gap: 12%; justify-content: center; padding: 87px 42px; }
.subscribe-section h2 { font-size: clamp(32px, 4vw, 51px); }
.subscribe-form { max-width: 360px; width: 100%; }
.subscribe-form label { color: var(--teal); display: block; font-size: 10px; font-weight: 700; letter-spacing: .13em; margin-bottom: 11px; text-transform: uppercase; }
.input-line { border-bottom: 1px solid var(--ink); display: flex; }
.input-line input { background: transparent; border: 0; color: var(--ink); flex: 1; outline: 0; padding: 12px 0; }
.input-line input::placeholder { color: #9ba5a0; }
.input-line button { background: none; border: 0; color: var(--orange); font-size: 25px; padding: 0 0 0 15px; }
.subscribe-form p { color: var(--muted); font-size: 11px; margin: 12px 0 0; }

.footer { align-items: center; display: flex; justify-content: space-between; margin: 0 auto; max-width: 1320px; padding: 30px 42px; }
.footer > p { color: var(--muted); font-size: 11px; margin: 0; }
.footer-links { display: flex; gap: 23px; }
.footer-links a { color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: var(--orange); }
.demo-note { text-align: center; color: var(--muted); padding: 12px 22px; font-size: 12px; }
.reader-modal { background: var(--paper); border: 1px solid var(--line); color: var(--ink); max-width: 650px; max-height: 85dvh; padding: 48px 28px; width: calc(100% - 32px); }
.reader-modal::backdrop { background: rgba(23, 38, 40, .7); }
.reader-modal h2 { font-size: 28px; margin-bottom: 24px; }
#modal-body { line-height: 1.9; white-space: pre-line; }
.modal-close { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 28px; width: 44px; height: 44px; }
.modal-foot { color: var(--muted); font-size: 12px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
html body * { letter-spacing: 0; }
h1 { font-size: 76px; }
h2, .about-copy h2, .subscribe-section h2 { font-size: 42px; }
@media (max-width: 1000px) and (min-width: 781px) { h1 { font-size: 54px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 780px) {
  .topbar { padding: 20px 22px; position: relative; }
  .menu-toggle { display: block; }
  .site-nav { background: var(--paper); border-bottom: 1px solid var(--line); display: none; flex-direction: column; gap: 19px; left: 0; padding: 22px; position: absolute; right: 0; top: 70px; z-index: 5; }
  .site-nav.open { display: flex; }
  .hero { display: block; margin: 22px auto 54px; padding: 0 22px; }
  .hero-copy { padding: 25px 0 46px; }
  h1 { font-size: 54px; }
  h2, .about-copy h2, .subscribe-section h2 { font-size: 32px; }
  .hero-visual, .hero-photo { min-height: 430px; }
  .flight-stamp { right: -8px; top: 27px; transform: scale(.82) rotate(5deg); transform-origin: top right; }
  .ticker-label { padding-left: 22px; padding-right: 20px; }
  .section-pad { padding: 72px 22px; }
  .section-heading { align-items: start; display: block; margin-bottom: 31px; }
  .section-note { margin-top: 16px; max-width: 400px; }
  .journal-tools { align-items: flex-start; display: block; }
  .filters { flex-wrap: wrap; margin-bottom: 14px; }
  .search-box { max-width: 100%; }
  .search-box input { width: 100%; }
  .post-grid { gap: 42px 17px; grid-template-columns: repeat(2, 1fr); }
  .post-image { height: 180px; }
  .post-card h3 { font-size: 19px; }
  .post-card p { font-size: 12px; }
  .post-meta { font-size: 9px; }
  .project-row { gap: 10px; grid-template-columns: 32px 1fr 28px; }
  .project-title { font-size: 19px; }
  .project-tag { display: none; }
  .about-section { display: block; }
  .about-photo { height: 370px; margin-bottom: 48px; }
  .subscribe-section { align-items: start; display: block; padding: 70px 22px; }
  .subscribe-form { margin-top: 38px; max-width: 440px; }
  .footer { align-items: start; display: grid; gap: 18px; padding: 28px 22px; }
}

@media (max-width: 460px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .post-grid { display: block; }
  .post-card { margin-bottom: 47px; }
  .post-image { height: 245px; }
  .about-facts { gap: 22px; justify-content: space-between; }
  .footer > p { max-width: 200px; }
}
