/* view.house auction page — tokens and type from the production site. */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --graphite: #333333;
  --ash: #555555;
  --hairline: #dddddd;
  --bone: #f5f3ef;
  --rule: 1px solid var(--ink);
  --rule-light: 1px solid var(--hairline);
  --display: "Bodoni Moda", "Playfair Display", Didot, Georgia, serif;
  --serif: "Playfair Display", "Bodoni Moda", Georgia, serif;
  --sans: Inter, Helvetica, Arial, sans-serif;
  --measure: 37.5rem;
  --page: 72.5rem;
  --gutter: max(clamp(1.5rem, 6vw, 6rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --header: 4.6rem;
  --section: clamp(2.85rem, 1.7rem + 5.4vw, 6.85rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --text-body: clamp(0.9375rem, 0.91rem + 0.14vw, 0.9875rem);
  --text-small: clamp(0.6875rem, 0.67rem + 0.1vw, 0.75rem);
  --text-kicker: 0.6875rem;
  --track-kicker: 0.19em;
  --text-h1: clamp(2.05rem, 1.08rem + 4.35vw, 4.85rem);
  --text-h2: clamp(1.55rem, 1.12rem + 1.65vw, 2.85rem);
  --text-lede: clamp(1.0625rem, 0.97rem + 0.48vw, 1.375rem);
  --text-price: clamp(2rem, 1.45rem + 1.5vw, 2.85rem);
  --btn-pad: 0.85rem 1.2rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
  overflow-x: clip;
  max-width: 100%;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html:focus-within { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.58;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 100;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-size: 0.625rem;
  text-decoration: none;
}
.skip:focus { top: var(--safe-t); }

.wrap {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin-inline: auto;
}

.kicker {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--text-kicker);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--ash);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: var(--text-h1); line-height: 1.02; }
h2 { font-size: var(--text-h2); margin: 0.35rem 0 1rem; }
h1 i, h2 i { font-style: italic; font-weight: 400; }

.lede {
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--text-lede);
  line-height: 1.45;
  color: var(--ink);
  margin: 1.25rem 0 0;
  max-width: 32rem;
  text-wrap: pretty;
}

.prose {
  color: var(--graphite);
  max-width: var(--measure);
  text-wrap: pretty;
  margin: 0 0 1.5rem;
}

.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: var(--rule);
}

.header-inner {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin-inline: auto;
  min-height: var(--header);
  padding-top: var(--safe-t);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo {
  height: 1.55rem;
  width: auto;
  display: block;
}

@media (min-width: 700px) {
  .logo { height: 1.85rem; }
}

.header-cta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--text-kicker);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  text-decoration: none;
  border: var(--rule);
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.header-cta:hover { background: var(--ink); color: var(--paper); }
.header-cta:active { transform: translateY(1px); }

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 6rem) 0 var(--section);
  display: grid;
  align-content: start;
  gap: 0;
}

.hero h1 { max-width: 16ch; margin-top: 0.85rem; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: var(--rule-light);
  max-width: 28rem;
}

.price {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-price);
  letter-spacing: -0.03em;
  line-height: 1;
}

.reserve {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: var(--rule);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--text-kicker);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  padding: var(--btn-pad);
  min-width: 11.25rem;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), opacity 180ms var(--ease), transform 180ms var(--ease);
}

.btn:hover { opacity: 0.86; }
.btn:active { opacity: 1; transform: translateY(1px); }
.btn:disabled { opacity: 0.45; transform: none; cursor: wait; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  opacity: 1;
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.btn-ghost:active { transform: translateY(1px); }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.header-cta:focus-visible,
.skip:focus-visible,
.brand-link:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

/* Lists */
.section {
  padding: 0 0 var(--section);
  border-top: var(--rule-light);
  padding-top: var(--section);
}

.section .kicker { margin-bottom: 0.35rem; }

.domain-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-width: 36rem;
}

.domain-list li {
  border-top: var(--rule);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.domain-list li:last-child { border-bottom: var(--rule); }

.domain-list a,
.domain-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lede);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.domain-list a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: opacity 180ms var(--ease);
}
.domain-list a:hover { text-decoration: underline; }
.domain-list a:active { opacity: 0.55; }

.domain-list .bid {
  font-family: var(--sans);
  font-size: var(--text-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Honeypot: off-screen, no layout, not display:none */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  left: -9999px;
}

/* Form */
.form {
  position: relative;
  max-width: 32rem;
  margin-top: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  min-width: 0;
  margin: 0 0 1.25rem;
}

.form-row:last-of-type { margin-bottom: 0; }

.field {
  margin: 0;
  min-width: 0;
}

.field label {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--text-kicker);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ash);
  border-radius: 0;
  background-color: transparent;
  font-family: var(--sans);
  font-size: 16px; /* >= 16px prevents iOS zoom on focus */
  line-height: 1.4;
  padding: 0.6rem 0 0.5rem;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

@media (min-width: 800px) {
  .field input,
  .field select,
  .field textarea { font-size: 15px; }
}

.field input::placeholder {
  color: var(--ash);
  opacity: 0.75;
}

.field select {
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.4rem;
  cursor: pointer;
}

.field input:hover,
.field select:hover {
  border-bottom-color: var(--ink);
}

.field input:focus,
.field input:focus-visible,
.field select:focus,
.field select:focus-visible,
.field textarea:focus,
.field textarea:focus-visible {
  outline: none;
  background-color: transparent;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  border-bottom-color: var(--ash);
  box-shadow: 0 0 0 1000px var(--paper) inset;
  transition: background-color 99999s ease-out;
}

.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:focus-visible {
  border-bottom-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--paper) inset, 0 1px 0 0 var(--ink);
}

.form-actions { margin-top: 2rem; }

.form-note {
  margin: 1.15rem 0 0;
  font-size: var(--text-small);
  color: var(--ash);
  text-wrap: pretty;
  max-width: 32rem;
}

.form-status {
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: var(--text-small);
  color: var(--graphite);
  text-wrap: pretty;
  max-width: 32rem;
}
.form-status.is-error { color: var(--ink); }

.form-done h2 { margin-top: 0; }
.form-done .prose { margin-bottom: 0; }

@media (max-width: 799px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-bottom: 1.15rem;
  }
  .form-actions { margin-top: 1.75rem; }
  .btn, .btn-ghost { min-width: 0; }
}

/* Footer */
.site-footer {
  border-top: var(--rule);
  padding: 2.25rem 0 calc(2.25rem + var(--safe-b));
}

.footer-inner {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

.site-footer .logo { height: 1.1rem; }

.colophon {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ash);
  max-width: 36rem;
}

@media (min-width: 700px) {
  :root { --header: 5.15rem; }
}
