@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper: #f6f7f3;
  --white: #fff;
  --ink: #132a25;
  --muted: #455b54;
  --green: #174d3e;
  --mint: #d8edde;
  --line: #d2ddd5;
  --night: #112e26;
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #408b65; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; }
h1 { font-weight: 800; letter-spacing: -.055em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); letter-spacing: -.045em; }
.shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; z-index: 2; padding: .6rem; background: var(--white); }
.skip:not(:focus) { clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-row { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; border-radius: .4rem; background: var(--green); position: relative; }
.brand-mark::before { content: ''; position: absolute; width: .8rem; height: .67rem; top: .57rem; left: .48rem; border: 1.5px solid var(--mint); border-top: 0; border-radius: 0 0 .15rem .15rem; }
.brand-mark::after { content: ''; position: absolute; inset: .44rem .41rem auto; border-top: 1.5px solid var(--mint); }
nav { display: flex; gap: clamp(.9rem, 3vw, 2.25rem); align-items: center; }
nav a { color: var(--muted); font-weight: 700; text-decoration: none; font-size: .94rem; }
nav a:hover, nav a[aria-current] { color: var(--green); text-decoration: underline; text-underline-offset: .34em; }

.home { padding-block: 2rem 4.5rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  gap: clamp(2rem, 5.4vw, 5.5rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 5.15rem) clamp(1.6rem, 6vw, 4.7rem);
  border-radius: 1.05rem;
  background: var(--night);
  color: #f0f8f1;
}
.hero h1 { font-size: clamp(2.8rem, 5.9vw, 4.55rem); line-height: .92; }
.lede { max-width: 37rem; margin-top: 1.35rem; color: var(--muted); font-size: clamp(1.1rem, 2.05vw, 1.34rem); }
.hero .lede { color: #d5e7dc; }
.return-label {
  color: var(--night);
  background: #d9ebd8;
  border-radius: .65rem;
  padding: 1rem;
  transform: rotate(4deg);
  box-shadow: .55rem .55rem 0 #285344;
  font-weight: 700;
}
.label-line { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; gap: .3rem; min-height: 2.5rem; border-bottom: 1px solid #8daa99; }
.label-line span:last-child { font-size: 1.65rem; line-height: 1; }
.label-core { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0 .65rem; }
.label-core strong { font: 800 clamp(3.6rem, 7vw, 5.7rem)/1 var(--display); letter-spacing: -.08em; }
.label-core span { text-align: right; line-height: 1.1; }
.label-barcode { height: 1.9rem; background: repeating-linear-gradient(90deg, var(--night) 0 1px, transparent 1px 4px, var(--night) 4px 6px, transparent 6px 8px, var(--night) 8px 12px, transparent 12px 14px, var(--night) 14px 15px, transparent 15px 19px, var(--night) 19px 23px, transparent 23px 27px, var(--night) 27px 29px, transparent 29px 32px, var(--night) 32px 37px, transparent 37px 40px); }

#directory { margin-top: clamp(2.5rem, 6vw, 4.25rem); }
.directory { margin-top: clamp(2.75rem, 6vw, 4.75rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.4rem; margin-bottom: 1.15rem; }
.section-head p { color: var(--muted); font-size: .9rem; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.category-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.25rem; min-height: 13.6rem; text-decoration: none; border: 1px solid var(--line); background: var(--white); border-radius: .7rem; }
.category-card:hover { border-color: var(--green); }
.category-card:hover .category-title { text-decoration: underline; text-underline-offset: .21em; }
.category-title { margin-top: .8rem; font-family: var(--display); font-weight: 800; line-height: 1.15; font-size: clamp(1.15rem, 2.1vw, 1.5rem); letter-spacing: -.035em; }
.category-description { color: var(--muted); margin: .48rem 0 .75rem; }
.category-count { margin-top: auto; color: var(--green); font-weight: 700; font-size: .875rem; }

.icon { position: relative; flex: none; display: block; width: 2.85rem; height: 2.85rem; background: var(--mint); border-radius: .55rem; color: var(--green); }
.icon i { position: absolute; display: block; }
.icon--portal i { inset: .79rem .66rem; border: 1.5px solid currentColor; border-radius: .16rem; }
.icon--portal i::before { content: ''; position: absolute; inset: .29rem 0 auto; border-top: 1.5px solid; }
.icon--portal i::after { content: ''; position: absolute; inset: .63rem 25% auto; border-top: 1.5px solid; }
.icon--exchange i { inset: .86rem .63rem; border-top: 1.5px solid; border-bottom: 1.5px solid; }
.icon--exchange i::before, .icon--exchange i::after { content: ''; position: absolute; width: .4rem; height: .4rem; border-top: 1.5px solid; border-right: 1.5px solid; }
.icon--exchange i::before { right: 0; top: -.25rem; transform: rotate(45deg); }
.icon--exchange i::after { left: 0; bottom: -.25rem; transform: rotate(225deg); }
.icon--parcel i { inset: .74rem; border: 1.5px solid; border-radius: .13rem; }
.icon--parcel i::before { content: ''; position: absolute; left: 35%; right: 35%; height: 48%; border: 1.5px solid; border-top: none; }

.tool-group + .tool-group { margin-top: 1.5rem; }
.tool-group h3 { padding-bottom: .75rem; padding-top: .35rem; font-size: 1.2rem; }
.tool-group h3 a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.tool-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.tool-list li { border-bottom: 1px solid var(--line); }
.tool-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 14rem); gap: .35rem 2rem; align-items: center; text-decoration: none; padding: 1rem .55rem; }
.tool-row:hover { background: #ebf1eb; }
.tool-name { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.12rem; }
.tool-row:hover .tool-name { text-decoration: underline; text-underline-offset: .23em; }
.tool-summary { display: block; margin-top: .19rem; color: var(--muted); }
.tool-price { color: var(--green); font-size: .9rem; font-weight: 700; text-align: right; }

.subscribe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; margin-top: 4rem; padding: clamp(1.4rem, 4vw, 2.8rem); border-radius: .8rem; background: var(--mint); }
.subscribe h2 + p { margin-top: .8rem; color: var(--muted); }
label { display: inline-block; margin-bottom: .35rem; font-weight: 700; }
.form-row { display: flex; gap: .5rem; }
input { flex: 1; min-width: 0; padding: .65rem .75rem; border: 1px solid #709085; border-radius: .42rem; color: var(--ink); background: var(--white); font: inherit; }
.form-note, .form-status { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.form-status { font-weight: 700; }
.form-status:empty { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .66rem 1.05rem; border: 1px solid transparent; border-radius: .42rem; font: inherit; font-weight: 700; background: var(--green); color: var(--white); cursor: pointer; text-decoration: none; }
.button:hover { background: var(--night); }
.button:disabled { opacity: .68; cursor: wait; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.35rem; color: var(--muted); }
.footer-row { flex-wrap: wrap; gap: .4rem 1.15rem; font-size: .9rem; }
.footer-brand { font-family: var(--display); font-weight: 800; color: var(--ink); }
.footer-row a { font-weight: 700; }

.inner { min-height: calc(100vh - 9rem); max-width: 56rem; padding-block: clamp(2rem, 7vw, 5.75rem) 4rem; }
.crumb { display: block; width: fit-content; margin-bottom: 1.35rem; color: var(--green); font-weight: 700; text-underline-offset: .2em; }
.inner h1 { font-size: clamp(2.55rem, 6.9vw, 5.2rem); margin-top: .7rem; overflow-wrap: anywhere; }
.inner .section-head, .details { margin-top: 2.15rem; }
.details { border-top: 1px solid var(--line); padding: 0; }
.details div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .3rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
dt { font-weight: 700; }
dd { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.tags li, .badge { padding: .15rem .58rem; font-size: .875rem; color: var(--green); background: var(--mint); border-radius: .3rem; }
.badge { margin-left: .55rem; font-weight: 700; }
.detail-links { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.detail-links a:not(.button) { color: var(--green); font-weight: 700; text-underline-offset: .2em; }
.source-note { margin-top: .85rem; color: var(--muted); font-size: .9rem; }
.sponsor h1 { max-width: 45rem; }

@media (max-width: 48rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(9.25rem, 12.8rem); gap: 1.4rem; }
  .hero h1 { font-size: clamp(2.25rem, 5.7vw, 4.3rem); }
  .category-card { min-height: auto; padding: .95rem; }
}
@media (max-width: 34rem) {
  .shell { width: calc(100% - 2rem); }
  .header-row { min-height: 3.8rem; }
  .hero { grid-template-columns: 1fr; padding: 2rem 1.3rem; }
  .hero h1 { font-size: clamp(1.95rem, 9vw, 3.6rem); }
  .return-label { width: min(100%, 15rem); transform: none; box-shadow: none; }
  .category-grid, .subscribe { grid-template-columns: 1fr; }
  .category-card { padding: 1rem; }
  .subscribe { gap: 1rem; margin-top: 2.5rem; }
  .tool-row { grid-template-columns: 1fr; padding-inline: .25rem; }
  .tool-price { text-align: left; }
  .details div { grid-template-columns: 1fr; }
}
