:root {
  font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: #232923;
  background: #f7f8f4;
  font-synthesis: none;
  --muted: #6c746b;
  --line: #dfe4da;
  --accent: #46683e;
  --card: #fff;
  --soft: #ecf0e7
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

a {
  color: inherit
}

button,input {
  font: inherit
}

.app {
  max-width: 1032px;
  margin: auto;
  padding: 0 32px
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100px;
  border-bottom: 1px solid var(--line)
}

.brand {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px 2px;
  font-family: Georgia,serif;
  font-size: 23px
}

.private {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 7px;
  border-radius: 5px;
  margin-left: 5px
}

.signout {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 12px
}

.feed-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 58px 0 30px
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px
}

h1 {
  font-family: Georgia,"Times New Roman",serif;
  letter-spacing: -1.6px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 400;
  margin: 0
}

.feed-heading>p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px
}

.articles {
  display: grid;
  gap: 18px
}

article {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  gap: 28px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px
}

.thumbnail {
  border-radius: 7px;
  background: var(--soft);
  position: relative;
  min-height: 155px;
  overflow: hidden;
  display: grid;
  place-items: center
}

.thumbnail svg {
  width: 66px;
  height: 66px;
  fill: none;
  stroke: #9caa94;
  stroke-width: 1.4
}

.thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1
}

.source {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere
}

.source>span:last-child {
  color: var(--muted)
}

h2 {
  font-family: Georgia,"Times New Roman",serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -.5px;
  line-height: 1.25;
  margin: 11px 0 10px;
  overflow-wrap: anywhere
}

h2 a {
  text-decoration: none
}

h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px
}

.article-copy>p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 15px;
  overflow-wrap: anywhere
}

.read-source {
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 30px
}

.read-source:hover {
  text-decoration: underline
}

.gate {
  padding: 100px 0 120px;
  max-width: 590px
}

.gate h1 {
  font-size: 55px
}

.gate p,.empty p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 420px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600
}

.secondary {
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--line)
}

.empty {
  padding: 64px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px
}

.empty>span {
  font-size: 42px;
  color: var(--accent)
}

.empty p {
  margin: 14px auto 0
}

.pagination {
  text-align: center;
  padding: 12px 0 24px
}

footer {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  padding: 42px 0 28px;
  letter-spacing: .3px
}

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

.skip {
  position: absolute;
  top: -80px;
  left: 12px;
  padding: 12px;
  background: var(--card);
  z-index: 3
}

.skip:focus {
  top: 12px
}

a:focus-visible,button:focus-visible {
  outline: 3px solid #829b55;
  outline-offset: 4px
}

@media(max-width:640px) {
  .app {
    padding: 0 18px
  }

  header {
    height: 78px
  }

  .brand {
    font-size: 21px;
    gap: 8px
  }

  .private {
    margin-left: 2px;
    font-size: 8px;
    padding: 4px
  }

  .signout {
    font-size: 11px;
    padding: 10px 0 10px 8px
  }

  .feed-heading {
    margin: 38px 0 23px
  }

  .feed-heading h1 {
    font-size: 36px
  }

  .feed-heading>p {
    display: none
  }

  .eyebrow {
    font-size: 9px;
    margin-bottom: 12px
  }

  article {
    grid-template-columns: 84px minmax(0,1fr);
    gap: 15px;
    padding: 16px;
    border-radius: 10px;
    align-items: start
  }

  .thumbnail {
    min-height: 90px
  }

  .thumbnail svg {
    width: 43px;
    height: 43px
  }

  h2 {
    font-size: 21px;
    margin: 8px 0
  }

  .source {
    font-size: 9px;
    gap: 5px
  }

  .article-copy>p {
    font-size: 12px;
    line-height: 1.65
  }

  .read-source {
    min-height: 36px
  }

  .gate {
    padding: 72px 0 90px
  }

  .gate h1 {
    font-size: 42px
  }

  .gate p {
    font-size: 14px
  }

  .empty {
    padding: 44px 18px
  }

  .empty h2 {
    font-size: 24px
  }

  .empty p {
    font-size: 13px
  }

  .articles {
    gap: 12px
  }

}

@media(prefers-color-scheme:dark) {
  :root {
    color: #e5e9e0;
    background: #171c18;
    --muted: #a5afa1;
    --line: #354033;
    --accent: #a9c69c;
    --card: #20281f;
    --soft: #2c3629
  }

  .brand-mark,.button {
    background: #48683d;
    color: #fff
  }

  .secondary {
    background: var(--card);
    color: var(--accent)
  }

  .thumbnail svg {
    stroke: #72866a
  }

}
