/* Tokens match orangeshadow.com (src/styles/global.css there). */
:root {
  --blue: #0e4ead;
  --blue-dark: #0a3a82;
  --orange: #ff6600;
  --orange-dark: #e65c00;

  --ink: #0f1b2d;
  --muted: #51607a;
  --line: #dce3ee;
  --line-strong: #b9c4d6;
  --bg-alt: #f5f8fc;

  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, 'Liberation Mono', monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-alt);
}

h1,
p,
ul {
  margin: 0;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3.5rem) 1.25rem 2.5rem;
  text-align: center;
}

.page-wide {
  max-width: 60rem;
}

/* The logo with its name beneath the mark, as in ost_logo_vert_300.gif */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.logo svg {
  display: block;
}

.logo-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero {
  margin-block: clamp(2rem, 6vw, 3rem) 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  background: var(--orange);
  flex: none;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Long names must wrap rather than run off a phone screen */
.domain {
  overflow-wrap: anywhere;
}

.lead {
  margin: 1rem auto 0;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--muted);
}

/* Card with corner brackets echoing the logo: blue top-left, orange bottom-right */
.card {
  position: relative;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
}

.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.card::before {
  top: -1px;
  left: -1px;
  border-top: 4px solid var(--blue);
  border-left: 4px solid var(--blue);
}

.card::after {
  right: -1px;
  bottom: -1px;
  border-right: 4px solid var(--orange);
  border-bottom: 4px solid var(--orange);
}

/* Layout rules such as "display: grid" would otherwise show a hidden element */
[hidden] {
  display: none !important;
}

/* Confirmation that takes the form's place after an inquiry is sent */
.sent {
  padding: clamp(1.5rem, 6vw, 3rem) 0;
  text-align: center;
}

.sent:focus {
  outline: none;
}

.sent svg {
  display: block;
  margin: 0 auto 1rem;
}

.sent h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  color: #0b6b3a;
}

.sent p {
  max-width: 26rem;
  margin-inline: auto;
  font-size: 1.1rem;
}

.sent .sent-more {
  margin-top: 1.25rem;
  font-size: 1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

label {
  display: grid;
  gap: 0.35rem;
}

label span {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

input,
textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

/* "Buying" or "Leasing" on the inquiry form */
.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

/* Undo the text-field rules (padding, border, full width) that "input" gives a radio
   button: with them Chrome draws the button off-centre inside a wide oval focus ring. */
.choice input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  accent-color: var(--blue);
}

.choice input:focus {
  outline: none;
}

.choice input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* The offer belongs to "Buying" and the note to "Leasing". A browser without :has()
   keeps the offer field and never shows the note, which still works. */
.lease-note {
  display: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-form:has(input[value='lease']:checked) .offer {
  display: none;
}

.contact-form:has(input[value='lease']:checked) .lease-note {
  display: block;
}

/* The steps on the leasing page */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.4rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
}

.steps h2 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

/* Orange fails contrast as text on white, so the button uses dark text on orange */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 2px;
  padding: 0.7rem 1.3rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  color: var(--ink);
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.status {
  font-size: 0.92rem;
  color: var(--muted);
}

.status.ok {
  color: #0b6b3a;
}

.status.error {
  color: #b3261e;
}

/* "Potential uses" text on a domain's page: a quiet block set off by an orange rule */
.uses {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 4px solid var(--orange);
  text-align: left;
}

.uses-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.3rem;
}

.domain-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  text-align: left;
}

/* Each entry is a box; the name is the main link, and it covers the whole box so the
   entry is clickable anywhere. "Also for sale" links sit above that cover. */
.domain-list li {
  position: relative;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
}

.domain-list li:hover {
  border-color: var(--blue);
  border-left-color: var(--orange);
}

.domain-list .name {
  display: block;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.domain-list .name::after {
  content: '';
  position: absolute;
  inset: 0;
}

.domain-list li:hover .name {
  color: var(--blue);
}

/* Overrides the page-level .uses block: here it is a plain line under the name */
.domain-list .uses {
  margin: 0.3rem 0 0;
  max-width: none;
  padding: 0;
  border: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.related {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.domain-list .related {
  position: relative;
  z-index: 1;
  margin-top: 0.45rem;
}

/* Appraisals on a domain's page: company, date and value, one row per service */
.appraisals {
  margin: 1.5rem auto;
  max-width: 34rem;
  text-align: left;
}

.appraisals table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.appraisals th,
.appraisals td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.appraisals th {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-alt);
}

.appraisals td:nth-child(2) {
  white-space: nowrap;
}

.appraisals tr:last-child td {
  border-bottom: 0;
}

.appraisals th:last-child,
.appraisals td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.appraisals .tier {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Lowest to highest appraisal, on a list entry with two or more appraisals */
.domain-list .range {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.domain-list .range strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.footnote {
  margin: 0.6rem auto 0;
  max-width: 30rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.escrow {
  margin: 1.5rem auto 0;
  max-width: 30rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.foot {
  padding: 1.25rem;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 600px) {
  .row {
    grid-template-columns: 1fr;
  }
}
