:root {
  --paper: #f5eddd;
  --paper-deep: #eadcc2;
  --paper-pale: #fffaf0;
  --ink: #173f2b;
  --ink-soft: #365e48;
  --mustard: #d7aa2f;
  --mustard-light: #f0d883;
  --rust: #b95736;
  --sage: #8aa077;
  --line: rgba(23, 63, 43, 0.22);
  --shadow: 0 20px 55px rgba(39, 48, 28, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 14%, rgba(215, 170, 47, 0.09) 0 1px, transparent 1.5px) 0 0 / 13px 13px,
    radial-gradient(circle at 77% 44%, rgba(23, 63, 43, 0.05) 0 1px, transparent 1.3px) 3px 5px / 17px 17px,
    var(--paper);
  font: 1rem/1.55 var(--sans);
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background: repeating-linear-gradient(93deg, transparent 0 5px, rgba(49, 40, 24, 0.018) 6px);
  mix-blend-mode: multiply;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--paper-pale);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, calc(100% - 3rem));
  min-height: 96px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  gap: 0.8rem;
  text-decoration: none;
}

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

.brand span {
  display: grid;
}

.brand strong {
  font: 700 1.22rem/1.1 var(--serif);
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.main-nav > a:not(.button),
.nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.main-nav > a:hover,
.nav-button:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-count {
  display: grid;
  min-width: 21px;
  height: 21px;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  place-items: center;
  border-radius: 20px;
  color: var(--paper-pale);
  background: var(--rust);
  font-size: 0.68rem;
}

.account-name {
  max-width: 11rem;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.82rem 1.25rem;
  gap: 0.45rem;
  border: 2px solid var(--ink);
  border-radius: 999px 999px 999px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover:not(:disabled) {
  box-shadow: 4px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.button:active:not(:disabled) {
  box-shadow: 1px 2px 0 var(--ink);
  transform: translate(0, 0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-small {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

.button-ink {
  color: var(--paper-pale);
  background: var(--ink);
}

.button-mustard {
  background: var(--mustard);
}

.button-paper {
  background: var(--paper-pale);
}

.button-danger {
  color: var(--paper-pale);
  border-color: #7d2c1f;
  background: #7d2c1f;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 0.5rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  width: min(1400px, calc(100% - 3rem));
  min-height: 690px;
  margin: 0 auto;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 5rem 0 4.5rem;
}

.eyebrow,
.kicker {
  margin: 0 0 1.3rem;
  color: var(--rust);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font: 500 clamp(4.2rem, 7vw, 7.6rem)/0.88 var(--serif);
  letter-spacing: -0.072em;
}

.hero h1 em {
  color: var(--rust);
  font-weight: 400;
}

.hero-intro {
  max-width: 590px;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
  gap: 1.25rem;
}

.member-note {
  display: flex;
  align-items: center;
  margin: 2.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 650;
}

.avatar-stack {
  display: flex;
  margin-right: 0.8rem;
}

.avatar-stack span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: -7px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: var(--paper-pale);
  background: var(--ink);
  font-size: 0.58rem;
  font-weight: 800;
}

.avatar-stack span:first-child {
  margin-left: 0;
  background: var(--rust);
}

.avatar-stack span:last-child {
  color: var(--ink);
  background: var(--mustard);
}

.hero-art {
  position: relative;
  align-self: end;
  padding: 3.5rem 0 1.3rem;
}

.hero-art::before {
  position: absolute;
  z-index: -1;
  inset: 9% 2% 5% 8%;
  border-radius: 47% 53% 59% 41% / 46% 45% 55% 54%;
  background: #ccd5bb;
  content: "";
  transform: rotate(-2deg);
}

.hero-art svg {
  width: 100%;
  filter: drop-shadow(0 22px 20px rgba(23, 63, 43, 0.12));
}

.sun-stamp {
  position: absolute;
  z-index: 2;
  top: 10%;
  right: 4%;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--mustard);
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-align: center;
  transform: rotate(7deg);
}

.hero-caption {
  position: absolute;
  right: 8%;
  bottom: 7%;
  margin: 0;
  padding: 0.45rem 0.7rem;
  color: var(--paper-pale);
  background: var(--ink);
  font: italic 0.84rem/1.2 var(--serif);
  transform: rotate(-2deg);
}

.shelf-section {
  width: min(1400px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 7rem 0 8rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
  align-items: end;
}

.section-heading h2,
.how-note h2,
.modal-heading h2,
.drawer-heading h2 {
  margin: 0;
  font: 500 clamp(2.8rem, 5.3vw, 5.4rem)/0.96 var(--serif);
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 400px;
  margin: 0 0 0.4rem auto;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.shelf-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 1rem 0;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-field {
  display: flex;
  align-items: center;
  width: min(340px, 100%);
  min-height: 48px;
  gap: 0.7rem;
}

.search-field svg {
  flex: 0 0 auto;
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: 500 1.05rem var(--serif);
}

.search-field input::placeholder {
  color: rgba(23, 63, 43, 0.62);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.filter-chip {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
}

.filter-chip:hover {
  border-color: var(--ink);
}

.filter-chip.is-active {
  color: var(--paper-pale);
  background: var(--ink);
}

.catalogue-status {
  min-height: 34px;
  padding: 1.2rem 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.tool-card {
  grid-column: span 4;
  min-width: 0;
}

.tool-card:nth-child(1),
.tool-card:nth-child(6) {
  grid-column: span 8;
}

.tool-card:nth-child(2),
.tool-card:nth-child(5) {
  grid-column: span 4;
}

.tool-card:nth-child(3),
.tool-card:nth-child(4) {
  grid-column: span 6;
}

.tool-card-button {
  display: grid;
  width: 100%;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px 8px 30px 8px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.48);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tool-card:nth-child(even) .tool-card-button {
  border-radius: 8px 34px 8px 34px;
}

.tool-card-button:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px) rotate(-0.25deg);
}

.tool-card:nth-child(even) .tool-card-button:hover {
  transform: translateY(-5px) rotate(0.25deg);
}

.tool-art {
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  place-items: center;
  background: #d7dfc7;
}

.tool-card:nth-child(2n) .tool-art {
  background: #ebc66a;
}

.tool-card:nth-child(3n) .tool-art {
  background: #d99067;
}

.tool-card:nth-child(4n) .tool-art {
  background: #b9c7b2;
}

.tool-card:nth-child(1) .tool-art,
.tool-card:nth-child(6) .tool-art {
  min-height: 420px;
}

.tool-art::after {
  position: absolute;
  right: -12%;
  bottom: -34%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 63, 43, 0.22);
  border-radius: 50%;
  content: "";
}

.tool-art svg {
  width: min(78%, 420px);
  max-height: 320px;
  filter: drop-shadow(7px 13px 0 rgba(23, 63, 43, 0.12));
  transition: transform 240ms ease;
}

.tool-card-button:hover .tool-art svg {
  transform: rotate(-2deg) scale(1.025);
}

.tool-card-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 1.25rem 1.35rem 1.35rem;
  gap: 0.7rem 1rem;
}

.tool-card-copy h3 {
  margin: 0;
  font: 600 clamp(1.35rem, 2.4vw, 2rem)/1.05 var(--serif);
  letter-spacing: -0.03em;
}

.tool-card-copy > span {
  grid-row: span 2;
  font-size: 1.45rem;
  transition: transform 160ms ease;
}

.tool-card-button:hover .tool-card-copy > span {
  transform: translate(3px, -3px);
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 0.35rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 720;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--mustard-light);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-tag.is-due {
  color: var(--paper-pale);
  background: var(--rust);
}

.empty-state {
  padding: 4rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state > span {
  font: 400 4rem var(--serif);
}

.empty-state h3 {
  margin: 0.4rem 0;
  font: 600 2rem var(--serif);
}

.empty-state p {
  margin: 0;
  color: var(--ink-soft);
}

.how-section {
  color: var(--paper-pale);
  background: var(--ink);
  padding: 7rem max(1.5rem, calc((100% - 1400px) / 2));
}

.how-note {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 2rem;
}

.how-note .kicker {
  color: var(--mustard);
}

.how-note h2 {
  max-width: 850px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 5rem 0 0;
  padding: 0;
  gap: 2rem;
  list-style: none;
}

.steps li {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 250, 240, 0.28);
}

.steps span {
  color: var(--mustard);
  font: italic 1rem var(--serif);
}

.steps h3 {
  margin: 1.5rem 0 0.6rem;
  font: 500 1.55rem var(--serif);
}

.steps p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.9rem;
}

.fine-print {
  margin: 5rem 0 0;
  color: rgba(255, 250, 240, 0.52);
  font-size: 0.72rem;
}

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

dialog::backdrop {
  background: rgba(12, 28, 20, 0.66);
  backdrop-filter: blur(4px);
}

.drawer {
  width: min(660px, calc(100% - 1rem));
  height: 100%;
  margin: 0 0 0 auto;
  background: var(--paper);
}

.dialog-shell {
  min-height: 100%;
  overflow-y: auto;
}

.tool-drawer .dialog-shell {
  display: grid;
  grid-template-rows: auto 1fr;
}

.drawer-art {
  position: relative;
  display: grid;
  min-height: 300px;
  padding: 2rem;
  overflow: hidden;
  place-items: center;
  background: #d7dfc7;
}

.drawer-art svg {
  width: min(78%, 330px);
  max-height: 250px;
  filter: drop-shadow(7px 13px 0 rgba(23, 63, 43, 0.12));
}

.drawer-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
}

.drawer-body {
  padding: clamp(1.5rem, 5vw, 3.2rem);
}

.drawer-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.drawer-title-row h2 {
  margin: 0;
  font: 600 clamp(2.4rem, 6vw, 4.2rem)/0.95 var(--serif);
  letter-spacing: -0.05em;
}

.tool-description {
  margin: 1.3rem 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-facts div {
  padding: 1rem 0;
}

.detail-facts div:nth-child(odd) {
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}

.detail-facts div:nth-child(even) {
  padding-left: 1rem;
}

.detail-facts dt {
  color: var(--rust);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0.25rem 0 0;
  font: 600 1rem var(--serif);
}

.calendar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.calendar-heading h3 {
  margin: 0;
  font: 600 1.35rem var(--serif);
}

.calendar-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 0.9rem;
  gap: 0.45rem;
}

.date-button {
  display: grid;
  min-width: 0;
  min-height: 64px;
  padding: 0.5rem 0.2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px 4px 14px 4px;
  background: var(--paper-pale);
  font-size: 0.67rem;
  font-weight: 800;
}

.date-button strong {
  font: 600 1.2rem var(--serif);
}

.date-button:hover:not(:disabled),
.date-button.is-selected {
  color: var(--paper-pale);
  border-color: var(--ink);
  background: var(--ink);
}

.date-button:disabled {
  cursor: not-allowed;
  color: #82402f;
  background:
    linear-gradient(135deg, transparent 46%, rgba(130, 64, 47, 0.2) 47% 53%, transparent 54%),
    rgba(185, 87, 54, 0.1);
  opacity: 1;
}

.selection-note {
  min-height: 24px;
  margin: 0.8rem 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 650;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.request-actions .button {
  flex: 1 1 180px;
}

.detail-message,
.form-message {
  min-height: 25px;
  margin: 0.8rem 0 0;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 750;
}

.owner-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.modal {
  width: min(720px, calc(100% - 1.5rem));
  margin: auto;
}

.modal-card {
  max-height: calc(100vh - 2rem);
  padding: clamp(1.3rem, 4vw, 2.5rem);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 28px 8px 28px 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-heading,
.drawer-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-heading h2,
.drawer-heading h2 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-pale);
  font-size: 1.7rem;
  line-height: 1;
}

.icon-button:hover {
  color: var(--paper-pale);
  background: var(--ink);
}

.icon-button-light {
  color: var(--paper-pale);
  border-color: var(--paper-pale);
  background: transparent;
}

.icon-button-light:hover {
  color: var(--ink);
  background: var(--paper-pale);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.field small {
  color: var(--ink-soft);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: rgba(255, 250, 240, 0.75);
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--mustard);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
  gap: 0.7rem;
}

.sharing-drawer {
  color: var(--paper-pale);
  background: var(--ink);
}

.sharing-drawer .dialog-shell {
  padding: clamp(1.4rem, 4vw, 2.8rem);
}

.sharing-drawer .kicker {
  color: var(--mustard);
}

.sharing-tabs {
  display: flex;
  margin-top: 2.3rem;
  border-bottom: 1px solid rgba(255, 250, 240, 0.26);
}

.sharing-tabs button {
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: 0;
  border-bottom: 3px solid transparent;
  color: rgba(255, 250, 240, 0.6);
  background: transparent;
  font-weight: 800;
}

.sharing-tabs button[aria-selected="true"] {
  color: var(--paper-pale);
  border-color: var(--mustard);
}

.sharing-list {
  display: grid;
  padding: 1.2rem 0 3rem;
  gap: 0.75rem;
}

.sharing-card {
  padding: 1rem;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 18px 4px 18px 4px;
  background: rgba(255, 250, 240, 0.05);
}

.sharing-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.sharing-card h3 {
  margin: 0;
  font: 600 1.25rem var(--serif);
}

.sharing-card p {
  margin: 0.35rem 0 0;
  color: rgba(255, 250, 240, 0.64);
  font-size: 0.75rem;
}

.sharing-card .status-tag {
  flex: 0 0 auto;
}

.sharing-card-actions {
  display: flex;
  margin-top: 0.8rem;
  gap: 0.5rem;
}

.sharing-card-actions button {
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 250, 240, 0.44);
  border-radius: 999px;
  color: var(--paper-pale);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
}

.sharing-card-actions button:hover {
  color: var(--ink);
  background: var(--paper-pale);
}

.sharing-empty {
  padding: 3rem 0;
  color: rgba(255, 250, 240, 0.65);
  text-align: center;
}

.sharing-empty strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--paper-pale);
  font: 600 1.5rem var(--serif);
}

.toast {
  position: fixed;
  z-index: 90;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: min(360px, calc(100% - 2.4rem));
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 16px 4px 16px 4px;
  color: var(--ink);
  background: var(--mustard);
  box-shadow: 5px 6px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1050px) {
  .site-header {
    align-items: flex-start;
    padding: 1rem 0;
  }

  .main-nav {
    justify-content: flex-end;
    gap: 0.8rem;
  }

  .main-nav > a:first-child,
  .account-name {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.9fr;
    min-height: 620px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 8vw, 6rem);
  }

  .tool-card {
    grid-column: span 6 !important;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .shelf-section {
    width: min(100% - 1.5rem, 1400px);
  }

  .site-header {
    min-height: 82px;
  }

  .brand small {
    display: none;
  }

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

  .main-nav {
    gap: 0.35rem;
  }

  .main-nav > a:not(.button),
  .nav-button {
    padding: 0 0.45rem;
    font-size: 0.76rem;
  }

  .main-nav .button {
    width: 46px;
    min-width: 46px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .main-nav .button span {
    font-size: 1.25rem;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-copy {
    padding: 4rem 0 1rem;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 17vw, 5.7rem);
  }

  .hero-art {
    width: min(620px, 100%);
    margin: 0 auto;
    padding-top: 1.5rem;
  }

  .sun-stamp {
    top: 7%;
    width: 82px;
    height: 82px;
    font-size: 0.54rem;
  }

  .shelf-section {
    padding: 5rem 0;
  }

  .section-heading,
  .how-note {
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    margin-left: 0;
  }

  .shelf-tools {
    display: block;
  }

  .filter-list {
    justify-content: flex-start;
    margin-top: 0.65rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .tool-grid {
    display: block;
  }

  .tool-card {
    margin-bottom: 1.2rem;
  }

  .tool-art,
  .tool-card:nth-child(1) .tool-art,
  .tool-card:nth-child(6) .tool-art {
    min-height: 290px;
  }

  .how-section {
    padding: 5rem 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
    margin-top: 3.5rem;
  }

  .date-strip {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

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

  .field-wide {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .brand strong {
    font-size: 1.02rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .member-note {
    align-items: flex-start;
  }

  .tool-card-copy {
    padding: 1rem;
  }

  .drawer {
    width: 100%;
  }

  .drawer-body {
    padding: 1.2rem;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-facts div:nth-child(odd) {
    padding-right: 0;
    border-right: 0;
  }

  .detail-facts div:nth-child(even) {
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
