@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root {
  --cream:#f7f5ed;
  --green:#244f3e;
  --ink:#233d31;
  --muted:#6f776b;
  --line:#dcded2;
  --coral:#dc785e;
  --white:#fffef9;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'DM Sans',Arial,sans-serif;
  font-size:15px;
  line-height:1.6;
}

a {
  color:inherit;
  text-underline-offset:4px;
}

button,input,select,textarea {
  font:inherit;
}

button,a,input,summary {
  -webkit-tap-highlight-color:transparent;
}

button,input[type=submit],summary {
  cursor:pointer;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid var(--coral);
  outline-offset:4px;
}

h1,h2,h3,p {
  margin-top:0;
}

h1,h2,.postcard-caption>span:first-child {
  font-family:'Libre Caslon Display',Georgia,serif;
  font-weight:400;
  line-height:1.08;
}

h1 {
  font-size:clamp(42px,5.6vw,78px);
  letter-spacing:-2px;
  margin-bottom:24px;
}

h2 {
  font-size:34px;
  margin-bottom:16px;
}

h3 {
  font-size:19px;
}

em {
  font-weight:400;
  color:var(--coral);
}

.site-header {
  max-width:1320px;
  margin:auto;
  padding:27px 52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:20px;
}

.brand {
  text-decoration:none;
  font-weight:700;
  font-size:25px;
  letter-spacing:-1px;
}

.brand-icon {
  font-size:32px;
  margin-right:5px;
}

.brand-dot {
  color:var(--coral);
}

.header-note {
  font-size:12px;
  color:var(--muted);
}

.header-link {
  font-size:13px;
  font-weight:600;
}

.hero {
  max-width:1320px;
  margin:auto;
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:65px;
  padding:78px 65px 100px;
  align-items:center;
}

.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:700;
  text-transform:uppercase;
  margin-bottom:20px;
}

.sun {
  font-size:23px;
  vertical-align:middle;
  color:var(--coral);
  margin-right:8px;
}

.lede {
  font-size:17px;
  line-height:1.8;
  color:var(--muted);
  max-width:490px;
  margin-bottom:28px;
}

.button {
  -webkit-appearance:none;
  appearance:none;
  border:1px solid transparent;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:24px;
  text-decoration:none;
  padding:12px 21px;
  border-radius:7px;
  font-size:14px;
  font-weight:600;
  line-height:1.5;
}

.primary {
  background:var(--green);
  color:white;
}

.primary:hover {
  background:#183e2f;
}

.secondary {
  color:var(--ink);
  border-color:var(--line);
  background:var(--white);
}

.secondary:hover {
  border-color:var(--green);
}

.large {
  padding:17px 26px;
}

.large span {
  font-size:20px;
  margin-left:22px;
}

.quiet {
  font-size:12px;
  color:var(--muted);
  margin:17px 0 0;
}

.hero-visual {
  position:relative;
  padding:0 10px 80px;
}

.postcard {
  background:#e8ebdd;
  border:9px solid var(--white);
  border-radius:6px;
  transform:rotate(3deg);
  box-shadow:0 13px 35px #233d3112;
}

.postcard-top {
  display:flex;
  justify-content:space-between;
  padding:16px 18px;
  font-size:8px;
  letter-spacing:2px;
}

.hero-house {
  display:block;
  width:100%;
  height:280px;
  object-fit:cover;
}

.postcard-caption {
  display:flex;
  justify-content:space-between;
  padding:20px 25px;
  align-items:center;
}

.postcard-caption>span:first-child {
  font-size:33px;
}

.postcard-caption em {
  color:var(--green);
}

.stamp {
  width:78px;
  height:78px;
  border:1px dashed #84937c;
  border-radius:50%;
  display:grid;
  place-content:center;
  text-align:center;
  font-size:9px;
  letter-spacing:2px;
  transform:rotate(-15deg);
}

.example-result {
  position:absolute;
  bottom:23px;
  left:-26px;
  right:58px;
  padding:21px 25px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 16px 28px #233d3112;
  transform:rotate(-3deg);
}

.match-label {
  font-size:9px;
  font-weight:700;
  letter-spacing:1.3px;
  color:#58784f;
}

.result-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:12px;
}

.result-title h3 {
  font-family:Georgia,serif;
  font-size:25px;
  margin:0;
}

.result-title>span {
  font-size:18px;
  font-weight:700;
}

.result-title small {
  font-size:10px;
  font-weight:400;
}

.example-result p {
  font-size:12px;
  color:var(--muted);
  margin:5px 0 13px;
}

.vote-summary {
  display:flex;
  gap:22px;
  font-size:12px;
}

.vote-summary span:nth-child(2) {
  color:#96712f;
}

.vote-summary span:nth-child(3) {
  color:#af614e;
}

.handnote {
  position:absolute;
  bottom:-18px;
  right:15px;
  font-family:Georgia,serif;
  font-style:italic;
  font-size:16px;
  transform:rotate(-6deg);
}

.steps {
  border-top:1px solid var(--line);
  max-width:1190px;
  margin:0 auto 70px;
  padding:48px 0;
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1fr;
  gap:38px;
}

.section-intro h2 {
  font-size:29px;
}

.section-intro .eyebrow {
  font-size:8px;
}

.step>span {
  font-size:12px;
  color:var(--coral);
}

.step h3 {
  margin:15px 0 8px;
}

.step p {
  font-size:13px;
  color:var(--muted);
}

footer {
  max-width:1215px;
  border-top:1px solid var(--line);
  margin:60px auto 0;
  padding:25px 0 35px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  color:var(--muted);
  font-size:11px;
}

footer .brand {
  font-size:18px;
  color:var(--green);
}

.page {
  max-width:1180px;
  margin:55px auto;
  padding:0 20px;
}

.form-page {
  max-width:690px;
  margin:65px auto;
  padding:0 20px;
}

.form-page h1 {
  font-size:53px;
}

.form-page>.eyebrow {
  margin-top:30px;
}

.panel {
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--white);
  padding:30px;
}

.field {
  margin-bottom:21px;
  min-width:0;
}

label {
  display:block;
  font-size:13px;
  font-weight:600;
  margin-bottom:7px;
}

input:not([type=submit]),select,textarea {
  width:100%;
  min-width:0;
  background:#fffefb;
  border:1px solid #cfd4c8;
  border-radius:6px;
  padding:11px 12px;
  color:var(--ink);
}

textarea {
  resize:vertical;
}

.field small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:6px;
}

.form-grid {
  align-items: end;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 20px;
}

.errors {
  padding:18px;
  background:#fbeae3;
  color:#853e2d;
  border-radius:8px;
  margin-bottom:24px;
  font-size:13px;
}

.errors ul {
  margin-bottom:0;
}

.field_with_errors {
  display:contents;
}

.field_with_errors input {
  border-color:#bc5d45;
}

.flash {
  max-width:1140px;
  margin:20px auto;
  padding:15px 22px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#e7ecdf;
}

.flash.alert {
  background:#fbeae3;
}

.names {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
  margin-bottom:25px;
}

.names form {
  min-width:0;
}

.names .button {
  width:100%;
  min-height:48px;
  padding:12px;
  font-size:16px;
  overflow-wrap:anywhere;
}

.names:empty {
  display:none;
}

.identity h2 {
  font-size:28px;
}

.trip-heading {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:32px;
}

.trip-heading h1 {
  font-size:57px;
  overflow-wrap:anywhere;
  margin-bottom:15px;
}

.trip-symbol {
  font-size:85px;
  color:var(--coral);
}

.muted {
  color:var(--muted);
}

.organizer {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
  background:#e9eddf;
  margin-bottom:30px;
}

.organizer h2 {
  font-size:28px;
}

.organizer p:not(.eyebrow) {
  font-size:13px;
  color:var(--muted);
  margin:0;
}

.organizer .eyebrow {
  margin-bottom:10px;
}

.share-links input {
  font-size:12px;
}

.share-links summary {
  font-size:12px;
  margin:12px 0;
}

.share-links small {
  font-size:11px;
  display:block;
  margin-top:8px;
}

.toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin:25px 0;
}

.toolbar>div:first-child {
  display:flex;
  align-items:center;
  gap:15px;
}

.text-button {
  border:0;
  background:none;
  text-decoration:underline;
  text-underline-offset:4px;
  color:var(--muted);
  padding:0;
  font-size:12px;
}

.actions {
  display:flex;
  gap:10px;
}

.voting-progress {
  background:#eeede3;
  border-radius:9px;
  padding:19px 22px;
  margin:30px 0;
}

.voting-progress>div {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
}

.voting-progress span {
  color:var(--muted);
}

progress {
  width:100%;
  height:7px;
  border:0;
  display:block;
  margin-top:12px;
  accent-color:var(--green);
}

progress::-webkit-progress-bar {
  background:#d8ddce;
  border-radius:6px;
}

progress::-webkit-progress-value {
  background:var(--green);
  border-radius:6px;
}

.section-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:35px 0 20px;
  gap:15px;
}

.section-title h2 {
  margin:0;
}

.section-title>span {
  font-size:12px;
  color:var(--muted);
}

.house-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:23px;
}

.house-card {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--white);
  overflow:hidden;
  scroll-margin-top:25px;
}

.house-image {
  height:205px;
  position:relative;
  background:#e2e8da;
}

.house-image img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.house-number,.provider {
  position:absolute;
  top:14px;
  background:var(--white);
  padding:4px 10px;
  border-radius:5px;
  font-size:10px;
}

.house-number {
  left:14px;
}

.provider {
  right:14px;
}

.house-body {
  padding:23px;
}

.house-body .eyebrow {
  font-size:8px;
  margin-bottom:10px;
}

.house-body h2 {
  font-size:30px;
  overflow-wrap:anywhere;
}

.amenities {
  font-size:11px;
  color:var(--muted);
  min-height:36px;
}

.house-price strong {
  font-size:24px;
}

.house-price>span {
  font-size:12px;
  color:var(--muted);
}

.house-price small {
  display:block;
  font-size:10px;
  color:var(--muted);
}

.notes {
  font-size:12px;
  margin:15px 0;
  white-space:pre-line;
  overflow-wrap:anywhere;
}

.listing-link {
  display:inline-block;
  font-size:12px;
  margin:12px 0;
}

.vote-options {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:5px;
  margin-top:15px;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.vote {
  width:100%;
  height:80px;
  padding:8px 3px;
  border:1px solid var(--line);
  border-radius:7px;
  background:transparent;
  color:var(--ink);
}

.vote strong {
  display:block;
  font-size:13px;
}

.vote small {
  font-size:9px;
  line-height:1.3;
  display:block;
  margin-top:4px;
}

.vote.selected {
  border:2px solid var(--green);
  background:#e3eddf;
}

.vote.maybe.selected {
  border-color:#9d7f3b;
  background:#f5efd9;
}

.vote.no.selected {
  border-color:#b45b43;
  background:#fae8df;
}

.house-admin {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:15px;
}

.empty {
  text-align:center;
  padding:65px 30px;
}

.empty>span {
  font-size:50px;
  color:var(--coral);
}

.empty p {
  max-width:540px;
  margin:15px auto 25px;
  color:var(--muted);
}

.results>.trip-heading {
  margin-top:32px;
}

.display {
  font-size:49px;
}

.results>.lede {
  max-width:none;
  font-size:14px;
}

.best-match {
  display:grid;
  grid-template-columns:1fr 1fr;
  background:var(--green);
  color:var(--cream);
  border-radius:15px;
  overflow:hidden;
  margin:30px 0 45px;
}

.best-match>img {
  width:100%;
  height:100%;
  min-height:330px;
  object-fit:cover;
}

.best-match>div {
  padding:40px;
}

.best-match h2 {
  font-size:46px;
}

.best-match .vote-summary {
  padding:12px 0;
}

.best-match .vote-summary span {
  color:#eee6ce;
}

.winner-price {
  font-size:28px;
  margin:15px 0;
}

.winner-price small {
  font-size:13px;
}

.table-wrap {
  overflow:auto;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--white);
}

table {
  width:100%;
  border-collapse:collapse;
  white-space:nowrap;
  text-align:left;
}

th,td {
  padding:20px;
  border-bottom:1px solid var(--line);
  font-size:14px;
}

thead th {
  font-size:11px;
  background:#ecefe3;
}

tbody th {
  font-weight:500;
}

tr:last-child>* {
  border-bottom:0;
}

.rank {
  margin-right:17px;
  color:var(--muted);
}

.ranking-note {
  max-width:710px;
  margin-top:28px;
}

.ranking-note h3 {
  font-size:15px;
  margin-bottom:5px;
}

.ranking-note p {
  font-size:13px;
  color:var(--muted);
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

@media(max-width:1100px) {
  .hero {
    gap:35px;
    padding:60px 35px 90px;
  }

  .hero-house {
    height:240px;
  }

  .steps {
    margin:0 35px;
    grid-template-columns:repeat(3,1fr);
  }

  .section-intro {
    grid-column:1/-1;
  }

  .section-intro h2 br {
    display:none;
  }

  footer {
    margin:50px 30px 0;
  }

  .house-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}

@media(max-width:700px) {
  .site-header {
    padding:18px 22px;
  }

  .header-note {
    display:none;
  }

  .header-link {
    font-size:11px;
  }

  .brand {
    font-size:22px;
  }

  .hero {
    grid-template-columns:1fr;
    padding:42px 25px 65px;
    gap:45px;
  }

  .hero h1 {
    font-size:57px;
  }

  .hero .lede {
    font-size:15px;
  }

  .hero-visual {
    max-width:440px;
    width:100%;
    margin:auto;
    padding:0 8px 70px 18px;
  }

  .example-result {
    left:0;
    right:35px;
    padding:18px;
  }

  .hero-house {
    height:220px;
  }

  .postcard-caption {
    padding:16px;
  }

  .postcard-caption>span:first-child {
    font-size:28px;
  }

  .steps {
    grid-template-columns:1fr;
    gap:20px;
    margin:0 25px;
    padding:35px 0;
  }

  .section-intro {
    grid-column:auto;
  }

  .step {
    position:relative;
    padding-left:45px;
  }

  .step>span {
    position:absolute;
    left:0;
    top:18px;
  }

  .step p {
    max-width:330px;
  }

  .section-intro h2 {
    font-size:32px;
  }

  .section-intro h2 br {
    display:initial;
  }

  footer {
    flex-wrap:wrap;
    margin:25px;
    padding:22px 0;
    gap:12px;
  }

  footer>span:last-child {
    width:100%;
    font-size:10px;
  }

  .form-page {
    margin:35px auto;
  }

  .form-page h1 {
    font-size:44px;
  }

  .panel {
    padding:22px;
  }

  .page {
    margin:30px auto;
  }

  .trip-heading h1 {
    font-size:44px;
  }

  .trip-symbol {
    display:none;
  }

  .trip-heading .muted {
    font-size:12px;
  }

  .organizer {
    grid-template-columns:1fr;
    gap:20px;
  }

  .toolbar {
    align-items:flex-start;
    flex-direction:column;
    gap:20px;
  }

  .actions {
    flex-wrap:wrap;
  }

  .voting-progress>div {
    flex-direction:column;
  }

  .house-grid {
    grid-template-columns:1fr;
  }

  .house-image {
    height:230px;
  }

  .vote {
    height:70px;
  }

  .vote small {
    font-size:10px;
  }

  .section-title>span {
    font-size:10px;
  }

  .section-title h2 {
    font-size:30px;
  }

  .best-match {
    grid-template-columns:1fr;
  }

  .best-match>img {
    height:220px;
    min-height:0;
  }

  .best-match>div {
    padding:25px;
  }

  .best-match h2 {
    font-size:38px;
  }

  .display {
    font-size:40px;
  }

  th,td {
    padding:14px;
    font-size:12px;
  }

  .form-grid {
  align-items: end;
    gap:0 12px;
  }

  .flash {
    margin:15px 20px;
  }

  .empty {
    padding:40px 20px;
  }

}
