:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --paper: #fffaf0;
  --ink: #181817;
  --muted: #68645c;
  --line: #d8d0c0;
  --soft: #ebe4d6;
  --red: #d83a2f;
  --blue: #315f87;
  --green: #2f7a50;
  --shadow: 0 24px 70px rgba(35, 31, 24, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-size: 48px 48px;
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(243, 240, 232, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  border-color: var(--red);
  color: var(--ink);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.hero-main {
  min-height: 520px;
  padding: clamp(28px, 6vw, 70px);
  background:
    linear-gradient(135deg, rgba(216, 58, 47, 0.12), transparent 42%),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(48px, 11vw, 128px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 20px;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 34px;
  color: #39362f;
  font-size: 17px;
}

.search {
  display: grid;
  max-width: 560px;
  gap: 8px;
}

.search label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  outline: none;
}

.search input:focus {
  border-color: var(--red);
  box-shadow: 6px 6px 0 var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}

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

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.46)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 44%);
  pointer-events: none;
}

.hero-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: rgba(255, 250, 240, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.notice-bar {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  margin: 22px 0 0;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--paper);
}

.notice-bar span {
  color: #dfae3a;
  font-weight: 900;
}

.notice-bar p {
  margin: 0;
}

.profile-strip {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.profile-strip img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.profile-strip p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.section {
  padding: 92px 0 0;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shelf-item {
  min-height: 240px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.shelf-item span {
  color: var(--red);
  font-weight: 950;
}

.shelf-item h3 {
  margin-top: 36px;
}

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

.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 28px;
  align-items: start;
}

.feature-copy {
  padding: 30px;
  background: var(--ink);
  color: var(--paper);
}

.feature-copy h2 {
  margin-bottom: 24px;
}

.feature-copy p {
  color: rgba(255, 250, 240, 0.76);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list article {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.feature-list span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
}

.project-board {
  display: grid;
  gap: 18px;
}

.project-post {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-post {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 0;
}

.post-copy {
  padding: 26px;
}

.post-copy span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.post-copy p,
.post-copy li {
  color: var(--muted);
}

.post-copy ul {
  margin: 20px 0 0;
  padding-left: 18px;
}

.post-copy li {
  margin-bottom: 8px;
}

.post-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.post-links a {
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

.post-links a:hover {
  background: var(--red);
}

.project-post video,
.project-post img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  background: var(--ink);
}

.database-table {
  display: grid;
  border: 1px solid var(--line);
  background: var(--paper);
}

.db-row {
  display: grid;
  grid-template-columns: 150px minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.db-row:last-child {
  border-bottom: 0;
}

.db-head {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
}

.db-row span {
  color: var(--red);
  font-weight: 900;
}

.db-head span {
  color: var(--paper);
}

.db-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.link-tile {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.link-tile:hover {
  transform: translate(-3px, -3px);
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.link-tile.primary {
  background: var(--ink);
  color: var(--paper);
}

.link-tile.muted {
  background: var(--soft);
}

.tile-label {
  width: fit-content;
  padding: 4px 8px;
  background: var(--red);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.link-tile strong {
  margin-top: auto;
  font-size: 25px;
  line-height: 1.05;
}

.link-tile small {
  display: block;
  margin-top: 12px;
  color: currentColor;
  opacity: 0.68;
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 34px;
}

.split .section-head {
  display: block;
  margin: 0;
}

.note-list {
  display: grid;
  gap: 12px;
}

.note {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.note:first-child {
  border-top: 1px solid var(--line);
}

.note time {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

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

.board-preview {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 34px;
}

.board-preview > div > p {
  color: var(--muted);
}

.board-panel {
  display: grid;
  gap: 16px;
}

.entry-form {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.entry-form label {
  display: grid;
  gap: 7px;
}

.entry-form label.full,
.entry-form button,
.form-status {
  grid-column: 1 / -1;
}

.entry-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.entry-form input,
.entry-form select,
.entry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.entry-form input,
.entry-form select {
  min-height: 42px;
  padding: 0 12px;
}

.entry-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.entry-form input:focus,
.entry-form select:focus,
.entry-form textarea:focus {
  border-color: var(--red);
  outline: 2px solid rgba(216, 58, 47, 0.18);
}

.entry-form button {
  min-height: 44px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.entry-form button:hover {
  background: var(--red);
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.entry-list {
  display: grid;
  gap: 10px;
}

.entry {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.entry span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.entry h3 {
  margin-bottom: 8px;
}

.entry p {
  margin-bottom: 14px;
  color: var(--muted);
}

.entry time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.elsewhere {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 34px;
  align-items: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row a {
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.pill-row a:hover {
  border-color: var(--red);
  color: var(--ink);
}

[data-search-item].is-hidden {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 24px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--red);
}

@media (max-width: 920px) {
  .hero,
  .feature-post,
  .feature-block,
  .profile-strip,
  .split,
  .board-preview,
  .elsewhere {
    grid-template-columns: 1fr;
  }

  .link-grid,
  .shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .db-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  main,
  .site-header,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  main {
    padding-top: 28px;
  }

  .hero-main {
    min-height: 430px;
    padding: 28px;
  }

  .lead {
    font-size: 17px;
  }

  .notice-bar,
  .shelf,
  .profile-strip,
  .entry-form,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .profile-strip img {
    width: 120px;
    height: 120px;
  }

  .project-post video,
  .project-post img {
    min-height: 240px;
  }

  .link-tile {
    min-height: 170px;
  }

  .section {
    padding-top: 64px;
  }
}
