@font-face {
  font-family: Newsreader;
  src: url("/fonts/newsreader.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f4f2eb;
  --ink: #233c38;
  --muted: #596660;
  --line: #d5d9cc;
  --accent: #315e47;
  --accent-hover: #173d32;
  --surface: #e7ebdf;
  --focus: #63804b;
  --selection: #d4e3a6;
  --search-surface: #fff;
  --button-ink: #fff;
  --serif: Newsreader, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #141817;
    --ink: #e5ece9;
    --muted: #b1bdb8;
    --line: #3b4640;
    --accent: #aecbb9;
    --accent-hover: #c8dfd0;
    --surface: #202723;
    --focus: #aecbb9;
    --selection: #3b5144;
    --search-surface: #202723;
    --button-ink: #19251e;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--muted) var(--paper);
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
}
::selection {
  background: var(--selection);
  color: var(--ink);
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 4;
  background: var(--paper);
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.scene {
  min-height: 680px;
  height: 79svh;
  max-height: 1000px;
  position: relative;
  background: #243e40;
  color: #fff;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.scene:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 23, 28, 0.4),
    rgba(6, 23, 28, 0.29) 35%,
    rgba(6, 23, 28, 0.27) 62%,
    rgba(6, 23, 28, 0.76)
  );
  z-index: -1;
}
#landscape {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
#landscape:not([src]) {
  display: none;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 4.5%;
  font-size: 13px;
  gap: 20px;
}
.wordmark {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.wordmark svg {
  width: 27px;
  height: 27px;
}
.wordmark span {
  font-weight: 400;
  opacity: 0.8;
  font-size: 15px;
  margin-left: 5px;
}
#date {
  font-size: 13px;
}
.welcome {
  width: min(780px, 90%);
  margin: auto;
  text-align: center;
  padding: 50px 0 80px;
}
.welcome > p:first-child {
  font-size: 15px;
  letter-spacing: 0.01em;
  margin: 0 0 23px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.3vw, 74px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 38px;
  text-wrap: balance;
  text-shadow: 0 2px 20px #112b2b55;
}
#search {
  display: flex;
  align-items: center;
  background: var(--search-surface);
  color: var(--ink);
  padding: 8px 9px 8px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 32px #09211f38;
  gap: 14px;
}
#search > svg {
  width: 22px;
  flex-shrink: 0;
}
#query {
  border: 0;
  outline-offset: 0;
  background: none;
  min-width: 0;
  flex: 1;
  height: 48px;
  color: var(--ink);
  caret-color: var(--accent);
  font-size: 16px;
}
#query::placeholder {
  color: var(--muted);
}
#engine {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 10px;
  max-width: 105px;
}
.search-button {
  border: 0;
  background: var(--accent);
  color: var(--button-ink);
  border-radius: 8px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.search-button:hover {
  background: var(--accent-hover);
}
.search-button svg {
  width: 22px;
}
.search-note {
  font-size: 12px;
  margin: 18px 0 0;
  color: #fff;
}
.scene-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 4.5% 30px;
  font-size: 12px;
}
.discover-link {
  text-decoration: none;
}
.discover-link span {
  margin-left: 18px;
}
.photo-credit {
  text-align: right;
  max-width: 400px;
  position: relative;
}
.photo-credit summary {
  cursor: pointer;
  line-height: 1.5;
}
.photo-credit p {
  line-height: 1.5;
  margin: 8px 0;
}
.photo-credit[open] {
  background: #162c2bf2;
  padding: 15px;
  border-radius: 8px;
}
.reading {
  max-width: 1360px;
  padding: 60px 5% 24px;
  margin: auto;
}
.reading-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.reading-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.reading-head button,
#retry {
  background: transparent;
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: 11px 15px;
  color: var(--ink);
  font-size: 12px;
}
.reading-head button:hover,
#retry:hover {
  background: var(--surface);
}
.reading-head button span {
  margin-left: 18px;
}
.feed-toolbar {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.tabs {
  display: flex;
  gap: 26px;
}
.tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  padding: 14px 0 16px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 600;
}
.tabs button:hover {
  color: var(--ink);
}
#feed-status {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  text-align: right;
}
.stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 38px;
}
.story {
  border-bottom: 1px solid var(--line);
  padding: 26px 0 25px;
  min-width: 0;
}
.story-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 15px;
  color: var(--muted);
  margin-bottom: 13px;
}
.story-category {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: bold;
}
.story h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-wrap: pretty;
}
.story h3 a {
  text-decoration: none;
}
.story h3 a:hover {
  text-decoration: underline;
}
.story p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.story-source {
  font-size: 12px;
  color: var(--accent);
}
.story-source span {
  margin-left: 6px;
}
.empty {
  grid-column: 1/-1;
  padding: 30px 0;
  font-size: 14px;
  color: var(--muted);
}
#source-panel {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border-radius: 8px;
}
#source-panel h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
#source-panel p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
#source-options {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}
#source-options label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
footer a {
  margin-left: 15px;
}
#retry {
  margin-top: 15px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1700px) {
  .welcome {
    width: 850px;
  }
}
@media (max-width: 760px) {
  .scene {
    min-height: 570px;
    height: 76svh;
  }
  header {
    padding: 24px 6%;
  }
  .wordmark span {
    display: none;
  }
  #date {
    font-size: 12px;
  }
  .welcome {
    padding: 30px 0 50px;
  }
  h1 {
    font-size: 45px;
    margin-bottom: 28px;
  }
  #search {
    gap: 8px;
    padding-left: 13px;
  }
  #query {
    font-size: 14px;
  }
  #query::placeholder {
    font-size: 12px;
  }
  #engine {
    font-size: 12px;
    padding-left: 8px;
    padding-right: 0;
    max-width: 78px;
  }
  .search-button {
    width: 38px;
    height: 42px;
  }
  .scene-footer {
    margin: 0 6% 22px;
    gap: 20px;
  }
  .discover-link {
    max-width: 120px;
    line-height: 1.6;
  }
  .photo-credit {
    max-width: 55%;
    font-size: 12px;
  }
  .reading {
    padding: 38px 6% 22px;
  }
  .reading-head {
    align-items: flex-start;
  }
  h2 {
    font-size: 30px;
  }
  .reading-head p {
    font-size: 12px;
  }
  .reading-head button {
    font-size: 12px;
    flex-shrink: 0;
    padding: 10px;
  }
  .reading-head button span {
    display: none;
  }
  .feed-toolbar {
    margin-top: 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .tabs {
    gap: 22px;
    width: 100%;
    overflow: auto;
  }
  .tabs button {
    font-size: 12px;
  }
  #feed-status {
    padding: 10px 0;
    text-align: left;
  }
  .stories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 25px;
  }
  .story h3 {
    font-size: 22px;
  }
  footer {
    flex-direction: column;
    gap: 4px;
  }
  footer a {
    margin-left: 0;
    display: block;
  }
}
@media (max-width: 460px) {
  .stories {
    grid-template-columns: 1fr;
  }
  .story {
    padding: 24px 0;
  }
  .story h3 {
    font-size: 26px;
  }
  .story p {
    font-size: 13px;
  }
  h1 {
    font-size: 41px;
  }
  .welcome > p:first-child {
    font-size: 13px;
  }
  .reading-head {
    flex-wrap: wrap;
    gap: 16px;
  }
  .reading-head button {
    padding: 8px 12px;
  }
  #search > svg {
    display: none;
  }
  .tabs {
    gap: 20px;
  }
  .scene-footer {
    align-items: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
