@import url("fonts.css");

:root {
  color-scheme: light;
  --paper: #f2f0ea;
  --ink: #101819;
  --petrol: #173d40;
  --line: #bfc9c7;
  --light: #b7d7d0;
  --muted: #4d6363;
  --text-leading: 1.55;
  --text-gap: .65rem;
  font: 400 100%/var(--text-leading) var(--font-text);
  letter-spacing: .015em;
  font-variant-numeric: lining-nums;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1280px, 92%); margin-inline: auto; }
main { min-height: 65vh; }
a { color: var(--petrol); text-decoration: none; }
:where(a, button, summary):focus-visible { outline: 1px solid var(--muted); outline-offset: 2px; }
:is(input, select, textarea):focus, :is(input, select, textarea):focus-visible { outline: 0; box-shadow: none; font-weight: 400; }
.skip { position: absolute; top: -5rem; background: white; padding: .5rem; z-index: 5; }
.skip:focus { top: 0; }
.header, .header nav, .footer, .actions, .card-meta, .card-foot, .chips, .tabs { display: flex; align-items: center; }
.header { min-height: 5.5rem; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 1rem; font: 1.4rem/1 var(--font-brand); letter-spacing: normal; color: var(--ink); text-decoration: none; }
.wordmark span { border-left: 1px solid #9baaa7; padding-left: 1rem; font: .7rem/1.6 var(--font-text); letter-spacing: .18em; text-transform: uppercase; }
.header nav { gap: clamp(.75rem, 3vw, 2rem); }
.header nav a, .link { font: inherit; font-size: .95rem; color: var(--ink); border: 0; background: none; text-decoration: none; padding: .55rem 0; cursor: pointer; }
.header nav [aria-current], .header nav a:hover, .link:hover { color: #396e66; }
.header nav .nav-login, .secondary { padding: .55rem 1.15rem; border: 1px solid var(--petrol); border-radius: 3px; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.13; font-weight: 400; letter-spacing: .035em; }
h1, h2, h3, .terms strong { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.5rem, 5vw, 5rem); margin-bottom: 1.3rem; }
h2 { margin: 2.5rem 0 1.3rem; font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.65rem; }
.eyebrow, .terms h2 { font: 500 .78rem/1.45 var(--font-text); letter-spacing: .13em; text-transform: uppercase; color: var(--petrol); }
.hero, .login-layout { margin-block: 2rem; display: grid; grid-template-columns: 1fr 1.05fr; border: 1px solid var(--line); background: #faf9f5; }
.hero-copy { padding: clamp(2rem, 4.5vw, 5rem); align-self: center; }
.hero h1 { margin: 1.9rem 0 1.25rem; font-family: var(--font-heading); font-weight: 400; font-size: clamp(3.8rem, 6.8vw, 7rem); line-height: .98; }
.intro { color: #3b504f; font-size: 1.15rem; max-width: 46ch; }
.glass { position: relative; container-type: size; background: #dcdad1; min-height: 23rem; }
.glass::before { content: ""; position: absolute; inset: 0; background: url("brand.png") no-repeat right top; background-size: max(222cqw, 236cqh) auto; }
.button, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; font: 500 1rem/1.3 var(--font-text); cursor: pointer; }
.button { border: 1px solid var(--petrol); border-radius: 3px; padding: .85rem 1.4rem; background: var(--petrol); color: white; text-decoration: none; }
.button:hover { background: #245557; }
.secondary { background: transparent; color: var(--petrol); }
.hero-copy .button { margin-top: 1rem; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 2.4rem 4rem; border-block: 1px solid var(--line); }
.terms > div { padding: 1.5rem clamp(1rem, 3vw, 3rem); border-left: 1px solid var(--line); }
.terms > div:first-child { border: 0; padding-left: 0; }
.terms h2 { margin: 0 0 .7rem; }
.terms strong { font: 400 clamp(1.65rem, 3vw, 2.7rem)/1.2 var(--font-heading); }
.terms p, .demo p, small { color: var(--muted); }
.terms p { margin: .55rem 0 0; }
small { font: 400 .9rem/1.5 var(--font-text); }
.footer { border-top: 1px solid var(--line); padding-block: 1.3rem 2rem; justify-content: space-between; color: var(--muted); font-size: .85rem; gap: 1rem; margin-top: 3rem; }
.footer span:first-child { font-family: var(--font-brand); letter-spacing: normal; }
.login-card { padding: clamp(1.5rem, 4vw, 4rem); }
.stack, .stack label, .review, .actions { display: grid; gap: 1rem; }
.stack label { gap: .35rem; font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #8d9c99; background: #fffefa; padding: .68rem .8rem; font: inherit; color: var(--ink); border-radius: 3px; }
textarea { resize: vertical; }
.demo { margin-top: 1.7rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.demo p { margin: .3rem 0 1rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.dash { background: var(--petrol); color: var(--paper); margin-block: 1.7rem 2.7rem; padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: center; }
.dash .eyebrow, .dash p, .stats span, .stats small { color: #c4ded9; }
.dash h1 { font-family: var(--font-heading); font-size: clamp(2.3rem, 4.2vw, 4.4rem); }
.dash p:last-child { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.stats > div { padding-left: 1rem; border-left: 1px solid #608080; }
.stats span, .stats strong { display: block; }
.stats span { font-size: .9rem; }
.stats strong { font: 400 2.35rem/1.2 var(--font-heading); margin-top: .5rem; }
.stats .no-score { font: 500 1rem/1.35 var(--font-text); }
.tabs { gap: 1.4rem; border-bottom: 1px solid var(--line); margin: 0 0 1.4rem; flex-wrap: wrap; }
.tabs a { padding: .5rem .65rem; border-radius: 3px; }
.tabs a[aria-current] { background-color: #e0e9e5; color: var(--petrol); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.1rem; }
.lot-card, .panel { background: #fbfaf7; border: 1px solid var(--line); padding: 1.55rem; min-width: 0; }
.lot-card { display: flex; flex-direction: column; position: relative; }
.lot-card:has(h3 a:hover) { border-color: var(--petrol); }
.lot-card h3 { margin: 1.4rem 0 .75rem; }
.lot-card h3 a { color: inherit; text-decoration: none; }
.active-lot h3 a::after { content: ""; position: absolute; inset: 0; }
.lot-card p, .prose, .role-list { overflow-wrap: anywhere; }
.lot-card p, .card-meta { color: var(--muted); }
.card-meta, .card-foot { justify-content: space-between; gap: .6rem; font-size: .88rem; flex-wrap: wrap; }
.chips { gap: .4rem; flex-wrap: wrap; margin: auto 0 1.3rem; padding-top: .7rem; }
.chips span { background: #e4ece8; color: var(--petrol); padding: .2rem .55rem; border-radius: 3px; font-size: .85rem; }
.card-foot { border-top: 1px solid var(--line); padding-top: .8rem; }
.card-foot b { font-size: 1.1rem; }
.back { display: inline-block; margin-top: 1.5rem; }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 7vw, 7rem); margin-block: 2rem 4rem; }
.prose { white-space: pre-line; }
.panel { align-self: start; }
.panel dl { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin: 0 0 1.4rem; }
.panel dt { color: var(--muted); }
.panel dd { margin: .15rem 0 1rem; font-size: 1.3rem; }
.role-list { list-style: none; padding: 0; }
.role-list li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: .85rem 0; }
.role-list p { margin: 0; }
.role-list li > div, .role-list details[open] { line-height: var(--text-leading); }
.role-list li > div > * + *, .role-list details[open] > * + * { display: block; margin-block: var(--text-gap) 0; }
.lot-card > p { line-height: var(--text-leading); margin-block: 0 var(--text-gap); }
.lot-card > .card-note { margin-top: var(--text-gap); }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-bottom: 1.4rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.catalog-toolbar .tabs { margin: 0; border: 0; }
.catalog-sort { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; font-size: .9rem; }
.catalog-sort[hidden] { display: none; }
.catalog-sort label { color: var(--muted); }
.catalog-sort select {
  appearance: none;
  width: auto;
  max-width: 100%;
  min-height: 2rem;
  padding: .25rem 2.25rem .25rem .75rem;
  font-weight: 400;
  line-height: 1.35;
  border: 1px solid var(--line);
  background: #fbfaf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%234d6363' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .875rem center / .625rem auto no-repeat;
  cursor: pointer;
}
.catalog-sort select:focus, .catalog-sort select:focus-visible { outline: 0; }
.catalog-sort select:focus-visible { border-color: var(--muted); }
@media (forced-colors: active) {
  .catalog-sort select { appearance: auto; background-image: none; }
  .catalog-sort select:focus-visible { outline: 1px solid Highlight; }
}
.lot-dates { display: grid; gap: .3rem; margin: 0; }
.lot-dates div { display: flex; gap: .5rem; flex-wrap: wrap; }
.lot-dates dt { color: var(--muted); }
.lot-dates dd { margin: 0; }
.role-list span, .empty { color: var(--muted); }
.notice { padding: .9rem 1.2rem; background: #deebe5; border-left: 3px solid var(--petrol); margin: 1rem 0; }
.profile-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 6rem); margin-block: clamp(2rem, 5vw, 5rem); }
.profile-form, .profile-info section { background: #fbfaf7; border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2.5rem); }
.profile-form { display: grid; gap: 1rem; }
.profile-form h2, .profile-info h2 { font-size: 1.65rem; margin: .4rem 0; }
.profile-field { display: grid; gap: .35rem; }
.profile-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.profile-form legend, .profile-field label { font-weight: 400; }
.directions > div { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }
.directions label { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border: 1px solid var(--line); cursor: pointer; }
.directions label:has(:checked) { border-color: var(--petrol); background: #e3ede8; }
.directions input { width: 1rem; height: 1rem; accent-color: var(--petrol); }
.profile-info { display: grid; gap: 1rem; min-width: 0; overflow-wrap: anywhere; }
.billing-grid, .billing-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.billing-grid h2 { font-size: 2rem; margin-block: 0 1rem; }
.billing-grid form, .billing-action { margin-top: auto; }
.billing-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.billing-grid form + p { margin: .6rem 0 0; font-size: .9rem; }
.billing-grid button:disabled { opacity: .55; cursor: default; }
.billing-totals > div { border-left: 1px solid #608080; padding-left: 1rem; }
.billing-totals span, .billing-totals strong { display: block; }
.billing-history :is(p, .payment-id) { overflow-wrap: anywhere; }
#operation-tabs a { font-weight: 400; }
#operation-results { display: flow-root; overflow-anchor: none; }
.billing-totals strong { font: 400 clamp(1.7rem, 3vw, 2.8rem)/1.3 var(--font-heading); }
@media (max-width: 650px) {
  .billing-grid { grid-template-columns: 1fr; }
  .billing-grid .button, .billing-grid .secondary { width: 100%; }
  .billing-totals { gap: .5rem; }
  .billing-totals > div { padding-left: .45rem; }
  .billing-totals strong { font-size: clamp(1.1rem, 4.5vw, 1.65rem); overflow-wrap: anywhere; }
}
.profile-info dt { color: var(--muted); }
.profile-info dd { margin: 0 0 .8rem; }
.profile-layout header { overflow-wrap: anywhere; }
.profile-identity { container-type: inline-size; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.profile-identity h1 { margin: 0; max-width: 100%; font-size: clamp(1.65rem, 8.5cqi, 3.75rem); }
.profile-identity .profile-photo { width: clamp(3rem, 16cqi, 5.5rem); height: auto; aspect-ratio: 1; flex: none; }
.profile-photo { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; }
.photo-editor form { margin-top: 1rem; max-width: 21rem; }
.photo-editor .stack { grid-template-columns: minmax(0, 1fr); }
#photo-selection:empty { display: none; }
.invite-controls { display: grid; gap: 1rem; }
.invite-controls label { display: grid; gap: .35rem; }
.invite-controls button { justify-self: start; }
.profile-form .errorlist { color: #88351f; padding-left: 1.1rem; margin: 0; }
.account-task { max-width: 42rem; margin: clamp(2rem, 6vw, 5rem) auto; }
.return-to-wallet { display: inline-block; margin-top: 1.5rem; }
.account-task .profile-form p { margin: 0; }
@media (max-width: 720px) {
  .profile-layout { grid-template-columns: 1fr; gap: 1rem; }
  .header nav { flex-wrap: wrap; }
}
details { margin-top: 1rem; }
summary { cursor: pointer; color: var(--petrol); font-weight: 500; }
@media (max-width: 850px) {
  .dash { grid-template-columns: 1fr; gap: 1.5rem; }
  .glass { min-height: 18rem; }
}
@media (max-width: 650px) {
  .shell { width: 92%; }
  .header { flex-wrap: wrap; min-height: 4.1rem; padding: .8rem 0; gap: .55rem; }
  .wordmark { font-size: 1.3rem; gap: .5rem; }
  .wordmark span { font-size: .63rem; padding-left: .5rem; }
  .header nav { gap: .8rem; }
  .hero, .login-layout, .detail-grid { grid-template-columns: 1fr; margin-block: 1rem; }
  .hero-copy { padding: 1.6rem; }
  .hero h1 { margin-top: 1rem; }
  .glass { min-height: 0; aspect-ratio: 1.5; background-size: auto 161%; }
  .login-layout .glass { display: none; }
  .terms { grid-template-columns: 1fr; margin: 1.1rem 0 2rem; }
  .terms > div, .terms > div:first-child { padding: 1rem .1rem; border: 0; }
  .terms > div + div { border-top: 1px solid var(--line); }
  .stats { gap: .45rem; }
  .stats > div { padding-left: .5rem; }
  .stats span { font-size: .83rem; }
  .dash { padding: 1.3rem 1rem; }
  .tabs { gap: 1rem; }
  .panel, .lot-card { padding: 1.15rem; }
  .role-list li { flex-wrap: wrap; }
}
