/* The Design Preview app. Same house as lvcabinetry.com:
   Playfair Display 600 headings, Inter body, the site's colors.
   Luxury through restraint: no motion for effect. */

@font-face {
  font-family: 'Playfair Display Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/fonts/playfair-display-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bone: #faf8f3;
  --cream: #f1ede4;
  --ink: #17140f;
  --muted: #6e6353;
  --tan: #7e663f;
  --rule: 1px solid rgb(23 20 15 / 0.14);
  --serif: 'Playfair Display Variable', 'Playfair Display', Georgia, serif;
  --sans: 'Inter Variable', 'Inter', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --measure: 34rem;
}

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

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

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

main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}

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

h1 {
  font-size: clamp(2.5rem, 9vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.site-header {
  padding: 1.25rem var(--gutter);
  border-bottom: var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.wordmark .lv {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5625rem;
  line-height: 1;
}

.wordmark .vr {
  width: 1px;
  height: 1.1875rem;
  background: rgb(23 20 15 / 0.35);
}

.wordmark .cab {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1rem;
}

.hero {
  padding: clamp(2.5rem, 9vw, 5rem) 0 2rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

.steps {
  border-top: var(--rule);
  padding-top: 2rem;
}

.steps ol {
  margin: 1.25rem 0 2rem;
  padding-left: 1.25rem;
  max-width: var(--measure);
}

.steps li {
  padding: 0.35rem 0 0.35rem 0.35rem;
}

.quiet {
  color: var(--muted);
  font-size: 0.9375rem;
}

.notice {
  padding: clamp(2.5rem, 9vw, 5rem) 0 2rem;
}

.notice h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.site-footer {
  border-top: var(--rule);
  padding: 1.5rem var(--gutter) 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.35rem;
  max-width: none;
}

/* The contact form */

.start {
  border-top: var(--rule);
  padding-top: 2rem;
  margin-top: 2rem;
}

.start h2 {
  margin-bottom: 1.5rem;
}

form {
  max-width: 28rem;
}

.field {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

input[type='text'],
input[type='tel'],
input[type='email'] {
  width: 100%;
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-size: 1rem; /* 16px keeps phones from zooming in on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid rgb(23 20 15 / 0.3);
  border-radius: 0;
  appearance: none;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 1.5rem 0;
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--ink);
}

.consent label {
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 0;
}

.consent .error {
  grid-column: 2;
}

.error {
  color: #8a1f11;
  font-size: 0.9375rem;
  margin: 0.4rem 0 0;
}

.has-error input[type='text'],
.has-error input[type='tel'],
.has-error input[type='email'] {
  border-color: #8a1f11;
}

/* A trap for bots: people never see or reach this field. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The guided photo step */

.hero-small {
  padding-bottom: 1rem;
}

.slots {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: var(--rule);
}

.slot {
  display: grid;
  grid-template-columns: 1fr 5.5rem;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: var(--rule);
}

.slot h2 {
  font-size: 1.375rem;
  margin-bottom: 0.35rem;
}

.slot-kind {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.slot[data-required='true'] .slot-kind {
  color: var(--ink);
}

.slot-hint {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

.slot-status {
  font-size: 0.9375rem;
  margin: 0.5rem 0 0;
  min-height: 1.5rem;
}

.slot[data-done='true'] .slot-status {
  font-weight: 500;
}

.slot[data-state='failed'] .slot-status {
  color: #8a1f11;
}

.slot-photo {
  width: 5.5rem;
  height: 5.5rem;
  background: var(--cream);
  border: var(--rule);
}

.slot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  padding: 0.7rem 1.25rem;
  margin: 0;
}

.btn[aria-disabled='true'] {
  opacity: 0.35;
  cursor: not-allowed;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.next {
  padding-top: 2rem;
}

.next .quiet {
  margin-top: 0.75rem;
}

/* The measuring step */

form.sizes {
  max-width: 30rem;
}

fieldset.wall {
  border: 0;
  border-top: var(--rule);
  margin: 0;
  padding: 1.5rem 0;
}

fieldset.wall legend {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  padding: 0;
  float: left;
  width: 100%;
  margin-bottom: 0.75rem;
}

fieldset.wall legend + * {
  clear: both;
}

.measure {
  margin-bottom: 1.25rem;
}

.measure-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.measure-hint {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.units {
  display: flex;
  gap: 0.75rem;
}

.unit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--muted);
}

.unit input[type='text'] {
  width: 5.5rem;
  text-align: right;
}

.window {
  margin-top: 0.5rem;
  padding: 1rem;
  background: var(--cream);
}

.window .measure:last-child {
  margin-bottom: 0;
}

form.sizes .btn {
  margin-top: 1.5rem;
}

.notice .quiet {
  margin-top: 0.75rem;
}

/* The owner's pages */

.back {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
}

.lead-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: var(--rule);
}

.lead-row a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 1.1rem 0;
  border-bottom: var(--rule);
  text-decoration: none;
}

.lead-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
}

.lead-status {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: center;
  color: var(--muted);
}

.lead-status.status-complete {
  color: var(--ink);
}

.lead-meta {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  color: var(--muted);
}

.owner-block {
  border-top: var(--rule);
  padding: 1.75rem 0 0.5rem;
  margin-top: 1.75rem;
}

.owner-block h2 {
  margin-bottom: 1rem;
}

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
}

.facts dt {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.facts dd {
  margin: 0;
}

.owner-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
}

.owner-photo {
  margin: 0;
}

.owner-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: var(--rule);
  background: var(--cream);
}

.owner-photo figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgb(23 20 15 / 0.3);
  border-radius: 0;
  margin-bottom: 1rem;
}

.print-only {
  display: none;
}

@media print {
  .site-header,
  .site-footer,
  .no-print,
  .back {
    display: none;
  }

  .print-only {
    display: block;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .owner-photos {
    grid-template-columns: repeat(3, 1fr);
  }

  .owner-photo,
  .owner-block {
    break-inside: avoid;
  }
}
