:root {
  --ink: #181a1b;
  --paper: #f7f6f2;
  --lime: #d3ef72;
  --muted: #737570;
  --line: #dcded5;
  --white: #fff;
  --radius: 5px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial,Helvetica,sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a: hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

button,.button {
  font: inherit;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  padding: 11px 19px;
  cursor: pointer;
  border-radius: var(--radius);
  display: inline-block;
  line-height: 1.4;
}

button: hover,.button:hover {
  background: #354332;
  text-decoration: none;
}

button: focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[contenteditable]:focus-visible {
  outline: 3px solid #719224;
  outline-offset: 3px;
}

header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: auto;
  min-height: 103px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 20px 32px;
}

.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.3px;
  white-space: nowrap;
  line-height: 1.2;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 9px;
  margin-left: 34px;
}

.cube {
  display: inline-block;
  font-size: 32px;
  margin-right: 12px;
  transform: rotate(15deg);
}

nav,.account {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

nav a {
  font-weight: 600;
}

.account {
  gap: 13px;
}

.text-button {
  background: none;
  color: var(--ink);
  border: 0;
  padding: 0;
  font-size: 13px;
}

.text-button:hover {
  background: none;
  text-decoration: underline;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1180px) minmax(0,1fr);
  gap: 24px;
  padding: 0 20px;
}

.main-wrap {
  min-width: 0;
}

.ad {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8a8c82;
  background: repeating-linear-gradient(135deg,transparent,transparent 9px,#eceee6 9px,#eceee6 10px);
  border: 1px dashed #d8dbd1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-ad {
  height: 520px;
  margin-top: 100px;
  writing-mode: vertical-rl;
}

.masthead {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
}

.section-label,.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.section-label:before {
  content: ' ';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #87a637;
  margin-right: 10px;
}

.masthead h1 {
  font-size: clamp(56px,7.5vw,103px);
  line-height: 1;
  letter-spacing: -6px;
  margin: 25px 0 35px;
  font-weight: 700;
}

.masthead h1 em {
  font-family: Georgia,serif;
  font-weight: 400;
  letter-spacing: -5px;
}

.masthead-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.masthead-bottom p {
  max-width: 410px;
  color: var(--muted);
  font-size: 16px;
}

.search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 480px;
}

.search input {
  min-width: 0;
  flex: 1;
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: transparent;
}

.search button {
  white-space: nowrap;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 34px 0 23px;
  gap: 20px;
}

.section-heading h2 {
  font-size: 25px;
  letter-spacing: -.7px;
  margin: 0;
}

.section-heading span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.section-heading a {
  font-size: 13px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 27px;
}

.featured-grid .lead-card {
  grid-row: span 2;
  display: block;
  border: 0;
}

.featured-grid .card:not(.lead-card) {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
}

.card .visual {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orb {
  height: 235px;
  position: relative;
  overflow: hidden;
  background: #222c32;
}

.orb:before {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  top: 20%;
  left: 30%;
  background: radial-gradient(circle at 25% 24%,#f4edc2,#b5c081 25%,#3d675d 52%,#101b26 70%);
  box-shadow: 0 0 80px #77ad9170;
  transform: rotate(-20deg);
}

.orb:after {
  content: '';
  position: absolute;
  width: 260px;
  height: 80px;
  border: 1px solid #d4e7c565;
  border-radius: 50%;
  top: 47%;
  left: 17%;
  transform: rotate(-25deg);
}

.orb-1 {
  background: #171e30;
}

.orb-1:before {
  background: radial-gradient(circle at 25% 24%,#c6deff,#60879e 25%,#272940 60%,#0d1019 80%);
}

.orb-2 {
  background: #352d28;
}

.orb-2:before {
  background: radial-gradient(circle at 25% 24%,#ffe9b7,#c78565 30%,#54302c 58%,#171319 76%);
}

.orb span {
  position: absolute;
  bottom: 18px;
  left: 20px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #fff9;
}

.lead-card .orb,.lead-card .visual {
  height: 355px;
}

.lead-card .orb:before {
  width: 260px;
  height: 260px;
  left: 27%;
  top: 15%;
}

.lead-card .orb:after {
  width: 410px;
  height: 115px;
  left: 13%;
  top: 40%;
}

.featured-grid .card:not(.lead-card) .orb,.featured-grid .card:not(.lead-card) .visual {
  height: 155px;
}

.featured-grid .card:not(.lead-card) .orb:before {
  width: 105px;
  height: 105px;
  left: 20%;
  top: 20%;
}

.featured-grid .card:not(.lead-card) .orb:after {
  width: 140px;
  height: 50px;
  left: 8%;
}

.featured-grid .card:not(.lead-card) .orb span {
  display: none;
}

.card-copy {
  padding: 20px 0 10px;
}

.eyebrow {
  color: #65723b;
  font-size: 10px;
  letter-spacing: 1.4px;
}

.card h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.5px;
  margin: 12px 0;
}

.lead-card h2 {
  font-size: 35px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 18px;
}

.byline {
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.byline span {
  font-weight: bold;
}

.featured-grid .card:not(.lead-card) .card-copy {
  padding: 0;
}

.featured-grid .card:not(.lead-card) h2 {
  font-size: 20px;
}

.featured-grid .card:not(.lead-card) .byline {
  border: 0;
}

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

.inline-ad {
  grid-column: 1/-1;
  min-height: 90px;
  margin: 10px 0;
}

.footer-ad {
  height: 110px;
  margin: 50px 0 40px;
}

.partners {
  border-top: 1px solid var(--line);
  padding: 35px 0 45px;
}

.partners h2 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 12px 0 25px;
}

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

.partner-grid a {
  border: 1px solid var(--line);
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f0f1e9;
}

.partner-grid small {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}

.partner-grid strong {
  font-size: 20px;
}

.partner-grid span {
  font-size: 13px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

footer .brand {
  font-size: 23px;
}

footer span,footer div {
  font-size: 11px;
  color: var(--muted);
}

footer div {
  display: flex;
  gap: 20px;
}

.page-heading {
  padding: 45px 0 30px;
}

.page-heading h1 {
  font-size: 54px;
  letter-spacing: -2px;
  margin: 15px 0 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
}

.chips a {
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 7px 18px;
  font-size: 13px;
}

.chips .selected {
  background: var(--ink);
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 35px 0;
  font-size: 14px;
}

.reading {
  max-width: 780px;
  margin: 40px auto;
}

.reading h1 {
  font-size: 48px;
  line-height: 1.13;
  letter-spacing: -1.6px;
}

.perex {
  font-size: 22px;
  color: #60655d;
}

.article-meta {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.prose {
  font-family: Georgia,serif;
  font-size: 19px;
  line-height: 1.85;
  margin-top: 30px;
  overflow-wrap: anywhere;
}

.prose h2,.prose h3 {
  font-family: Arial,sans-serif;
  line-height: 1.3;
}

.prose a {
  text-decoration: underline;
}

.prose img,#wysiwyg img {
  max-width: 100%;
  height: auto;
}

.prose blockquote {
  border-left: 4px solid #a6be5e;
  margin: 25px 0;
  padding: 10px 30px;
  background: #eff2e5;
}

.comment {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.comment small {
  display: block;
  color: var(--muted);
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
  margin: 20px 0;
}

.panel h1 {
  margin-top: 0;
  font-size: 32px;
  letter-spacing: -1px;
}

.auth {
  max-width: 470px;
  margin: 60px auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack>button {
  align-self: flex-start;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

input,textarea,select {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  background: #fff;
  border: 1px solid #cfd3c7;
  border-radius: var(--radius);
  padding: 11px 13px;
  color: var(--ink);
  margin-top: 6px;
}

textarea {
  resize: vertical;
}

input[type=checkbox] {
  width: 17px;
  display: inline;
  margin: 0 8px 0 0;
  accent-color: #657c2d;
}

.check {
  font-weight: 400;
  display: flex;
  align-items: center;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.notice {
  padding: 15px 20px;
  background: #e4efc6;
  border-left: 4px solid #8aa444;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: #202923;
  color: #e5ebdf;
  padding: 22px;
  margin-top: 30px;
  border-radius: var(--radius);
  font-size: 13px;
}

.admin-nav strong {
  color: var(--lime);
  margin-right: auto;
}

.admin-body h1 {
  font-size: 32px;
  letter-spacing: -1px;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.form-columns .panel {
  margin: 0;
}

.manage-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.manage-row span {
  margin-right: auto;
}

.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #edefe7;
  padding: 14px;
}

td {
  padding: 15px;
  border-top: 1px solid var(--line);
  max-width: 330px;
  overflow-wrap: anywhere;
}

td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.badge {
  font-size: 11px;
  background: #edf1e3;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.editor {
  border: 1px solid #cfd3c7;
  background: white;
  border-radius: var(--radius);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #edefe7;
}

.toolbar button {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  padding: 6px 12px;
  font-size: 13px;
}

#wysiwyg {
  min-height: 350px;
  padding: 25px;
  font-size: 18px;
  line-height: 1.8;
}

.child-category {
  margin: 8px 0 8px 25px;
}

.secondary {
  background: white;
  color: var(--ink);
  margin-top: 15px;
}

.avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
}

.skip {
  position: absolute;
  left: 20px;
  top: -70px;
  background: var(--ink);
  color: white;
  padding: 10px;
  z-index: 10;
}

.skip:focus {
  top: 10px;
}

[hidden] {
  display: none!important;
}

@media(max-width:1450px) {
  .shell {
    grid-template-columns: minmax(0,1180px);
    justify-content: center;
    padding: 0 35px;
  }

  .side-ad {
    display: none;
  }
}

@media(max-width:1000px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 22px 30px;
  }

  .header-inner nav {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--line);
    padding-top: 15px;
  }

  .featured-grid {
    grid-template-columns: 1.25fr 1fr;
  }

  .featured-grid .card:not(.lead-card) {
    display: block;
  }

  .featured-grid .card:not(.lead-card) .visual {
    height: 140px;
    margin-bottom: 15px;
  }

  .featured-grid .card:not(.lead-card) .orb {
    height: 140px;
  }

  .article-grid {
    gap: 20px;
  }

  .masthead h1 {
    letter-spacing: -3px;
  }

  .featured-grid .card:not(.lead-card) p {
    display: none;
  }

  .featured-grid .card:not(.lead-card) h2 {
    font-size: 21px;
  }

  footer {
    flex-wrap: wrap;
  }

  .admin-nav strong {
    width: 100%;
  }
}

@media(max-width:650px) {
  .shell {
    padding: 0 20px;
  }

  .header-inner {
    padding: 20px;
    gap: 17px;
  }

  .brand {
    font-size: 24px;
  }

  .account {
    font-size: 12px;
    flex-wrap: wrap;
  }

  .header-inner nav {
    gap: 20px;
    justify-content: flex-start;
    overflow: auto;
  }

  .masthead {
    padding: 35px 0;
  }

  .masthead h1 {
    font-size: 66px;
    letter-spacing: -3px;
  }

  .masthead h1 em {
    letter-spacing: -3px;
  }

  .masthead-bottom {
    display: block;
  }

  .search {
    width: 100%;
  }

  .featured-grid {
    display: block;
  }

  .featured-grid .card {
    margin-bottom: 25px;
  }

  .lead-card .visual,.lead-card .orb {
    height: 280px;
  }

  .lead-card h2 {
    font-size: 30px;
  }

  .featured-grid .card:not(.lead-card) {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 15px;
  }

  .featured-grid .card:not(.lead-card) .visual {
    height: 125px;
  }

  .featured-grid .card:not(.lead-card) .orb {
    height: 125px;
  }

  .featured-grid .card:not(.lead-card) h2 {
    font-size: 19px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-grid .visual,.article-grid .orb {
    height: 230px;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading span {
    display: none;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .form-columns {
    grid-template-columns: 1fr;
  }

  .reading h1 {
    font-size: 34px;
  }

  .perex {
    font-size: 19px;
  }

  .page-heading h1 {
    font-size: 40px;
  }

  .panel {
    padding: 20px;
  }

  .admin-nav {
    gap: 15px;
  }

  .reading {
    margin: 30px 0;
  }

  .prose {
    font-size: 18px;
  }

  footer span {
    width: 100%;
    order: 3;
  }

  .orb:before {
    left: 28%;
  }
}

.partner-logo {
  width: 160px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

/* Align search inputs and buttons, including forms with field labels. */
.search {
  align-items: flex-end;
}

.search>label {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.search input:not([type=hidden]) {
  height: 48px;
  margin-top: 0;
  line-height: 1.4;
}

.search>label input:not([type=hidden]) {
  margin-top: 6px;
}

.search button {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin: 0;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Signed-in account: two text rows with a circular portrait on the right. */
.account.account-signed-in {
  flex-wrap: nowrap;
  gap: 12px;
}

.account-user-info {
  min-width: 0;
  text-align: right;
}

.account-user-name {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.account-user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
}

.account-user-actions form {
  margin: 0;
}

.account-user-actions .account-editor-link {
  font-weight: 700;
  color: #526727;
}

.account-link-separator {
  color: #a7ae9c;
}

.account-user-actions .text-button {
  display: block;
  font-size: inherit;
  line-height: inherit;
}

.account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #d6ddcb;
  border-radius: 50%;
  background: #e4eccd;
  color: #354332;
  font-size: 17px;
  font-weight: 700;
}

.account-avatar:hover {
  text-decoration: none;
}

.account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shared image logo for the header and footer. */
.brand.brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-copy {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.brand-with-logo small {
  margin-left: 0;
}

.site-footer .brand-logo {
  width: 34px;
  height: 34px;
}

.site-footer .brand-copy {
  width: auto;
  order: 0;
  color: inherit;
  font-size: inherit;
}

@media (max-width: 650px) {
  .account-user-name {
    max-width: 140px;
    font-size: 13px;
  }
}
