/* --- Fonts --- */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens --- */

:root {
  --house-accent: #2f5d50;
  --house-accent-dark: #244a40;
  --house-ink: #1f2421;
  --house-paper: #faf8f4;
  --house-line: #e3ded4;
  --house-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --house-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --house-sage: #7fa898;
  --house-sage-soft: #dfeae5;
  --house-sage-text: #1f3d35;

  --bs-body-font-family: var(--house-font);
  --bs-body-color: var(--house-ink);
  --bs-body-bg: var(--house-paper);
  --bs-link-color-rgb: 47, 93, 80;
  --bs-link-hover-color-rgb: 36, 74, 64;
  --bs-border-color: var(--house-line);
}

/* --- Layout --- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--house-line);
}

/* --- Brand --- */

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--house-ink);
}

.brand-word {
  font-family: var(--house-serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
}

.brand-list {
  color: var(--house-accent);
}

@media (max-width: 575.98px) {
  .navbar-brand {
    gap: 0.5rem;
    margin-right: 0.5rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-word {
    font-size: 1.25rem;
  }
}

h1,
.h2,
.h3,
.h4,
.hero-title {
  font-family: var(--house-serif);
  font-weight: 600;
}

.narrow {
  max-width: 40rem;
}

.preserve-lines {
  white-space: pre-line;
}

.auth-card {
  max-width: 24rem;
  margin-top: 3rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--house-line);
  border-radius: 0.5rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--house-line);
}

.site-footer a {
  display: inline-block;
  padding: 0.375rem 0;
}

/* --- Public pages --- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}

@media (min-width: 992px) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
  }
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--house-sage-soft);
  color: var(--house-sage-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-title {
  font-size: calc(1.75rem + 1.5vw);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.hero-preview {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 0;
  padding: 1.375rem;
  background: #fff;
  border: 1px solid var(--house-line);
  border-top: 4px solid var(--house-sage);
  border-radius: 0.625rem;
}

.hero-preview-title {
  font-family: var(--house-serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
}

.hero-preview-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--house-line);
  border-radius: 0.5rem;
}

.hero-preview-photo {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 0.375rem;
  background: #ece8df;
}

.hero-preview-text {
  flex: 1 1 10rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.hero-preview-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.375rem;
  background: var(--house-accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero-lead {
  font-size: 1.1875rem;
  color: #4d5651;
  margin-bottom: 1.5rem;
}

.steps {
  max-width: 40rem;
  padding-left: 1.25rem;
}

.steps li + li {
  margin-top: 0.5rem;
}

.legal h2 {
  margin-top: 1.75rem;
}

/* --- Components --- */

.btn-primary {
  --bs-btn-bg: var(--house-accent);
  --bs-btn-border-color: var(--house-accent);
  --bs-btn-hover-bg: var(--house-accent-dark);
  --bs-btn-hover-border-color: var(--house-accent-dark);
  --bs-btn-active-bg: var(--house-accent-dark);
  --bs-btn-active-border-color: var(--house-accent-dark);
  --bs-btn-disabled-bg: var(--house-accent);
  --bs-btn-disabled-border-color: var(--house-accent);
}

.btn {
  --bs-btn-padding-y: 0.5625rem;
}

.card {
  --bs-card-bg: #fff;
}

.shared-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.shared-link {
  flex: 1 1 14rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.shared-link:hover .h5,
.shared-link:focus-visible .h5 {
  color: var(--house-accent);
  text-decoration: underline;
}

.shared-url {
  overflow-wrap: anywhere;
}

.spoiler-gate,
.reveal-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
}

.spoiler-gate {
  background: #fff6e0;
  border: 1px solid #d9b65a;
  color: #4a3600;
}

.spoiler-gate-text {
  flex: 999 1 18rem;
  min-width: 0;
}

.reveal-bar {
  background: #e9f1ee;
  border: 1px solid #b9cfc7;
  color: #1f3d35;
}

.claim-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border-radius: 0.375rem;
  background: #eeeae2;
  color: #3a403c;
  font-weight: 500;
}

.claim-badge-mine {
  background: #e9f1ee;
  border: 1px solid #b9cfc7;
  color: #1f3d35;
}

.claim-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.claim-count {
  color: #4d5651;
  font-size: 0.9375rem;
}

.claim-details > summary {
  list-style: none;
}

.claim-details > summary::-webkit-details-marker {
  display: none;
}

.claim-details[open] {
  flex: 1 1 100%;
}

.claim-form {
  padding-top: 1rem;
  border-top: 1px solid var(--house-line);
}

.claim-name {
  flex: 1 1 14rem;
  width: auto;
  max-width: 22rem;
}

.nav-underline {
  --bs-nav-link-color: var(--house-accent);
  --bs-nav-link-hover-color: var(--house-accent-dark);
}

.date-input {
  max-width: 14rem;
}

.form-check-tall {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
}

.form-check-tall .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0;
}

.item-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: #eeeae2;
  color: #3a403c;
  font-size: 0.8125rem;
  font-weight: 600;
}

.item-tag-wanted {
  background: var(--house-sage-soft);
  color: var(--house-sage-text);
}

.table {
  --bs-table-bg: #fff;
}

.list-card {
  color: inherit;
  text-decoration: none;
}

.list-card:hover,
.list-card:focus-visible {
  border-color: var(--house-accent);
}

.grow-input {
  flex: 1 1 18rem;
  width: auto;
  min-width: 0;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
}

.item-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.item-text {
  flex: 999 1 16rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-link {
  display: inline-block;
  padding: 0.375rem 0;
}

.item-photo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 6.5rem;
  overflow: hidden;
  border-radius: 0.375rem;
  background: #ece8df;
  color: #4d5651;
  font-size: 0.8125rem;
}

.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-control.share-link {
  flex: 1 1 18rem;
  width: auto;
  background-color: var(--house-paper);
}

.form-select {
  padding-top: 0.5625rem;
  padding-bottom: 0.5625rem;
  background-color: #fff;
}

.form-control {
  padding-top: 0.5625rem;
  padding-bottom: 0.5625rem;
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  background-color: #fff;
  border-color: var(--house-accent);
  box-shadow: 0 0 0 0.2rem rgba(47, 93, 80, 0.2);
}
