@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #f5efe3;
  --card: #fffcf5;
  --ink: #1c2b27;
  --ink-soft: #5e6b64;
  --line: #e2d9c6;
  --sage: #dce5d3;
  --sage-deep: #3f5b4b;
  --clay: #c4553a;
  --clay-deep: #9e3f29;
  --sand: #eadfc8;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Figtree', system-ui, sans-serif;
  --gutter: 20px;
  --radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

/* paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
blockquote,
fieldset {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- shared pieces ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px var(--gutter) 6px;
}

.brand {
  font: 600 22px/1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.brand::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--clay);
}

.top-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.top-link {
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--ink);
  color: var(--card);
}
.btn--primary:hover {
  background: var(--sage-deep);
}
.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  background: rgb(28 43 39 / 0.06);
}

.proof {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.proof svg {
  flex: none;
}

.tick {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--sage-deep);
}

.seal {
  width: 104px;
  height: 104px;
  color: var(--clay);
  transform: rotate(-12deg);
  font-family: var(--body);
  font-weight: 700;
}

.lead {
  font-size: 18px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-30deg) scale(1.6);
  }
}

/* ---------- profile ---------- */

.sheet {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px var(--gutter) 0;
}

.id {
  animation: rise 0.6s ease both;
}

.id-photo {
  position: relative;
  aspect-ratio: 6 / 5;
  border-radius: var(--radius);
  background: var(--sage);
}
.id-photo img,
.id-mono {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 25%;
}
.id-mono {
  display: grid;
  place-items: center;
  font: 500 italic 120px/1 var(--display);
  color: var(--sage-deep);
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(196 85 58 / 0.18), transparent 60%),
    var(--sage);
}
.id-photo .seal {
  position: absolute;
  right: -6px;
  bottom: -30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--paper);
  animation: stamp 0.5s 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.id-text {
  padding: 22px 96px 0 2px;
}
.id h1 {
  font-size: clamp(44px, 13vw, 60px);
}
.id-headline {
  margin-top: 8px;
  font: 500 22px/1.25 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.id-sub {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
}

.id-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--sage-deep);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.keys {
  display: grid;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.keys div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
}
.keys div + div {
  border-top: 1px solid var(--line);
}
.keys dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.keys dd {
  font-weight: 600;
  text-align: right;
}

.actions--side {
  display: none;
}
.actions--bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin-top: 20px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgb(245 239 227 / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.actions .btn {
  width: 100%;
}

.content {
  animation: rise 0.6s 0.12s ease both;
}
.content section {
  margin-top: 36px;
}
.content h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.checks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  scroll-margin-top: 16px;
}
.checks-head h2 {
  margin: 0;
}
.checks-head span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.content .checks-head + h3 {
  margin-top: 0;
}
.fact--confirmed {
  background: rgb(220 229 211 / 0.4);
}
.fact--confirmed:first-child {
  border-radius: 21px 21px 0 0;
}
.fact--confirmed:last-child {
  border-radius: 0 0 21px 21px;
}
.fact--confirmed:only-child {
  border-radius: 21px;
}
.fact--pending .fact-value {
  font-weight: 500;
  color: var(--ink-soft);
}
.fact-state {
  flex: none;
  padding: 4px 10px;
  border: 1px dashed #cfc4ab;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.fact-state--shown {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.content h3 {
  margin: 20px 0 8px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.content h2 + h3 {
  margin-top: 0;
}
.facts {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}
.fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
}
.fact + .fact {
  border-top: 1px solid var(--line);
}
.fact-value,
.fact-source {
  display: block;
}
.fact-value {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.fact-source {
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-soft);
}
.mask {
  display: inline-block;
  width: 4.2em;
  height: 1.2em;
  margin: 0 5px 0 2px;
  border-radius: 6px;
  vertical-align: -0.22em;
  /* Static dots, shown until the canvas shimmer starts. */
  background: radial-gradient(rgb(28 43 39 / 0.45) 0.7px, transparent 0.9px) 0 0 / 4px 4px;
  color: var(--ink);
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.mask:hover {
  opacity: 0.6;
}
.mask--live {
  background: none;
}
.mask canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.mask--code {
  width: 6.5em;
  margin: 0;
}
.fact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.fact-meta b {
  margin-right: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.fact-ask {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--clay-deep);
}

.note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}
.tick--small {
  width: 22px;
  height: 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 500;
  font-size: 15px;
}

.about {
  margin-top: 18px;
  font: 400 italic 20px/1.45 var(--display);
  text-wrap: pretty;
}

.contact {
  display: none;
}

.updated {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-soft);
}

.bridge {
  max-width: 1120px;
  margin: 36px auto 0;
  padding: 22px var(--gutter) 8px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}
.bridge a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clay-deep);
  font-weight: 600;
  text-underline-offset: 4px;
}
.bridge a {
  margin-top: 4px;
}

@media (min-width: 900px) {
  .bridge {
    padding-bottom: 40px;
  }
  .sheet {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
    padding-top: 28px;
  }
  .id {
    position: sticky;
    top: 28px;
  }
  .id-text {
    padding-right: 0;
    padding-top: 40px;
  }
  .id h1 {
    font-size: 56px;
  }
  .content {
    max-width: 560px;
  }
  .content section:first-child {
    margin-top: 0;
  }
  .actions--side {
    display: block;
    margin-top: 18px;
  }
  .actions--bar {
    display: none;
  }
}

/* ---------- home ---------- */

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.home main > section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home .hero {
  padding-top: 34px;
  animation: rise 0.6s ease both;
}
.hero h1 {
  font-size: clamp(44px, 12vw, 88px);
}
.hero h1 em {
  font-weight: 400;
  color: var(--clay);
}
.hero .lead {
  max-width: 32em;
  margin-top: 18px;
}

.search-title {
  margin-top: 28px;
  color: var(--ink-soft);
}
.search-title strong {
  color: var(--ink);
  font-weight: 600;
}
.search {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 24px 50px -36px rgb(28 43 39 / 0.5);
}
.search .btn {
  grid-column: 1 / -1;
}
.search label {
  display: block;
  padding: 9px 14px 8px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.search label:focus-within {
  border-color: var(--ink);
}
.search span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.search input,
.search select {
  width: 100%;
  padding: 2px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 600 17px/1.4 var(--body);
  appearance: none;
  -webkit-appearance: none;
}
.search input::placeholder,
.form input::placeholder {
  color: #a39b89;
  font-weight: 500;
}

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-top: 14px;
}
.cities button {
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 500 15px var(--body);
  cursor: pointer;
}
.cities button:hover {
  background: var(--sand);
  color: var(--ink);
}

.home main > .proofs {
  margin-top: 56px;
  animation: rise 0.6s 0.15s ease both;
}
.proofs h2,
.proofs ul {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.proofs li {
  position: relative;
  padding: 20px 20px 18px 62px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}
.proofs .tick {
  position: absolute;
  left: 20px;
  top: 20px;
}
.proofs h3 {
  font: 600 21px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.proofs li p {
  margin-top: 4px;
  color: var(--ink-soft);
}
.proofs small {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-deep);
}
.proofs-note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 16px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sage);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.strip:hover {
  transform: translateY(-3px);
}
.strip-photo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage-deep);
  color: var(--sage);
  font: 500 italic 30px/1 var(--display);
}
.strip small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.strip strong {
  display: block;
  margin-top: 2px;
  font: 600 21px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.strip-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.strip .proof {
  background: var(--card);
}
.strip-link {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clay-deep);
  font-weight: 600;
}

.promise {
  margin-top: 56px;
  padding: 18px var(--gutter);
  background: var(--ink);
  color: rgb(245 239 227 / 0.78);
  font-size: 16px;
  text-align: center;
  text-wrap: balance;
}
.promise strong {
  color: var(--paper);
  font-weight: 600;
}

.home main > .join {
  max-width: 680px;
  padding-top: 56px;
  padding-bottom: 64px;
}
.roles {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.roles input {
  position: absolute;
  opacity: 0;
}
.roles label span {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.roles input:checked + span {
  background: var(--ink);
  color: var(--card);
}
.roles input:focus-visible + span {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.join h2 {
  font-size: clamp(32px, 8vw, 46px);
}
.join .lead {
  margin-top: 12px;
}

.form {
  margin-top: 24px;
}
.form-row {
  display: grid;
  gap: 10px;
}
.form input {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 500 17px var(--body);
}
.form input:focus {
  outline: none;
  border-color: var(--ink);
}
.form-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.form-msg:empty {
  display: none;
}
.form-msg {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--clay-deep);
}
.form-msg[data-state='ok'] {
  color: var(--sage-deep);
}

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
  border-top: 1px solid var(--line);
}
.made {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 24px;
  font: 400 italic 17px/1.3 var(--display);
  color: var(--ink-soft);
}
.sitges {
  flex: none;
  width: 72px;
  height: 46px;
}
.sitges-sea {
  stroke: var(--clay);
}
.privacy {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}
.privacy summary {
  width: fit-content;
  font-weight: 600;
  cursor: pointer;
}
.privacy p {
  max-width: 44em;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .home .hero {
    padding-top: 64px;
  }
  .search-title {
    margin-top: 36px;
    padding-left: 30px;
  }
  .search {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr auto;
    max-width: 980px;
    padding: 10px;
    border-radius: 999px;
  }
  .search .btn {
    grid-column: auto;
  }
  .search label {
    padding: 7px 20px 6px;
    border-color: transparent;
    border-radius: 999px;
    background: transparent;
  }
  .search label + label {
    border-left-color: var(--line);
    border-radius: 0;
  }
  .search label:focus-within {
    border-color: transparent;
  }
  .search label + label:focus-within {
    border-left-color: var(--line);
  }
  .cities {
    padding-left: 18px;
  }
  .home main > .proofs {
    margin-top: 72px;
  }
  .proofs ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .strip {
    grid-template-columns: auto 1fr auto;
    margin-top: 36px;
    padding: 22px 28px;
  }
  .strip-link {
    grid-column: auto;
  }
  .promise {
    margin-top: 88px;
  }
  .home main > .join {
    padding-top: 80px;
    padding-bottom: 88px;
  }
  .form-row {
    grid-template-columns: 1fr auto;
  }
  .foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }
}

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

/* ---------- print: the profile as a one-page PDF ---------- */

@media print {
  @page {
    margin: 12mm;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  body::before,
  .actions,
  .bridge a,
  .top-tag {
    display: none;
  }
  .sheet {
    display: grid;
    grid-template-columns: 62mm 1fr;
    gap: 10mm;
    padding: 0;
  }
  .id-photo .seal {
    background: #fff;
  }
  .id-text {
    padding: 26px 0 0;
  }
  .id h1 {
    font-size: 30pt;
  }
  .id-headline {
    font-size: 13pt;
  }
  .content section {
    margin-top: 7mm;
    break-inside: avoid;
  }
  .content section:first-child {
    margin-top: 0;
  }
  .content h2 {
    font-size: 15pt;
    margin-bottom: 2mm;
  }
  .content h3 {
    margin: 3mm 0 1mm;
  }
  .fact {
    padding: 1.6mm 4mm;
  }
  .fact-value {
    font-size: 10.5pt;
  }
  .fact-source {
    font-size: 8.5pt;
  }
  .contact {
    display: block;
    font-weight: 600;
  }
  .bridge {
    margin-top: 8mm;
    padding: 3mm 0 0;
  }
  * {
    animation: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
