:root{
  --bg:#f2eee3;
  --ink:#11100e;
  --paper:#fffdf6;
  --muted:#625e55;
  --rule:#1c1a17;
  --red:#df2c22;
  --red-soft:rgba(223,44,34,.07);
  --display:'Bricolage Grotesque',sans-serif;
  --body:'IBM Plex Sans',sans-serif;
  --mono:'IBM Plex Mono',monospace;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--body);
}

button,input{font:inherit}

.page{
  min-height:100vh;
  padding:0 max(20px,calc((100vw - 980px)/2)) 80px;
}

.header{
  height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--rule);
}

.wordmark{
  font-family:var(--display);
  font-weight:800;
  font-size:22px;
  letter-spacing:-.04em;
}

.header-note,
.label,
.result-meta{
  font-family:var(--mono);
  font-size:10px;
  font-weight:600;
  letter-spacing:.1em;
}

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

.hero{
  padding:62px 0 44px;
}

h1{
  font-family:var(--display);
  font-size:clamp(64px,9vw,112px);
  line-height:.88;
  letter-spacing:-.075em;
  margin:0;
}

.intro{
  max-width:700px;
  font-size:18px;
  line-height:1.5;
  margin:24px 0 30px;
}

.search-form{
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  padding:14px 0;
}

.search-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}

.input{
  border:1px solid var(--rule);
  background:var(--paper);
  border-radius:0;
  outline:0;
  color:var(--ink);
}

.input:focus{
  box-shadow:0 0 0 3px rgba(223,44,34,.18);
}

.search-input{
  height:54px;
  font-size:17px;
  padding:0 14px;
}

.search-button{
  height:54px;
  padding:0 24px;
  background:var(--ink);
  color:var(--paper);
  border:1px solid var(--ink);
  font-weight:700;
  cursor:pointer;
}

.search-button:disabled{
  opacity:.55;
  cursor:wait;
}

.location-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:10px;
}

.city-input{
  max-width:260px;
  height:40px;
  padding:0 12px;
  background:transparent;
}

.location-link{
  border:0;
  background:none;
  padding:0;
  font-weight:600;
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
  color:var(--ink);
}

.location-status{
  font-size:11px;
  color:var(--muted);
}

.hidden{
  display:none!important;
}

.status{
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  padding:18px 0;
  color:var(--muted);
  font-size:13px;
}

.status.error{
  color:#b42318;
}

.result{
  margin-top:26px;
  border-top:4px solid var(--ink);
}

.result-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:20px 0;
  border-bottom:1px solid var(--rule);
}

.result-header h2{
  font-family:var(--display);
  font-size:46px;
  line-height:1;
  letter-spacing:-.05em;
  margin:5px 0 0;
}

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

.type-badge{
  font-family:var(--mono);
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  padding:10px 12px;
  white-space:nowrap;
  background:var(--red);
  color:var(--paper);
  border:1px solid var(--red);
}

.primary-answer,
.ownership-block{
  padding:24px 0;
  border-bottom:1px solid var(--rule);
}

.label{
  color:var(--muted);
  margin-bottom:9px;
}

.primary-answer p{
  font-family:var(--display);
  font-size:26px;
  line-height:1.25;
  letter-spacing:-.025em;
  margin:0;
  max-width:820px;
}

.chain{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.chain-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}

.chain-item .owner{
  border-bottom:1px solid var(--rule);
  padding:5px 0;
}

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

/* Ownership research facts */

.ownership-facts{
  border-top:0;
}

.fact-block{
  padding:20px 0;
}

.fact-value{
  font-family:var(--display);
  font-size:22px;
  line-height:1.3;
  letter-spacing:-.02em;
  max-width:820px;
}

.fact-block:first-child .fact-value{
  font-size:25px;
  font-weight:700;
}

.alternatives-section{
  padding:32px 0;
  border-bottom:1px solid var(--rule);
}

.alternatives-section h3{
  font-family:var(--display);
  font-size:38px;
  line-height:.95;
  letter-spacing:-.05em;
  margin:0 0 10px;
}

.alt-context,
.add-city{
  margin:0 0 18px;
  font-size:13px;
  color:var(--muted);
}

.alt-list{
  border-top:1px solid var(--rule);
}

.alt-loading,
.no-alt{
  padding:16px 0;
  color:var(--muted);
  font-size:12px;
}

.alt-item{
  display:flex;
  justify-content:space-between;
  gap:18px;
  color:var(--ink);
  text-decoration:none;
  padding:18px 0;
  border-bottom:1px solid var(--rule);
}

.alt-item:hover .alt-name{
  text-decoration:underline;
}

.alt-name{
  font-family:var(--display);
  font-size:23px;
  font-weight:700;
  letter-spacing:-.025em;
}

.alt-location{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}

.alt-reason{
  margin:7px 0 0;
  font-size:12px;
  line-height:1.4;
  color:var(--muted);
  max-width:760px;
}

.sources-block{
  padding:24px 0;
}

.sources-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:8px;
}

.confidence{
  font-family:var(--mono);
  font-size:10px;
  color:var(--muted);
}

.sources{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
}

.source{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--ink);
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:3px;
}

.ext{
  font-size:14px;
}

@media(max-width:700px){
  .page{
    padding:0 18px 60px;
  }

  .header{
    height:62px;
  }

  .header-note{
    display:none;
  }

  .hero{
    padding:46px 0 34px;
  }

  h1{
    font-size:62px;
  }

  .intro{
    font-size:16px;
  }

  .search-row{
    grid-template-columns:1fr;
  }

  .search-button{
    width:100%;
  }

  .location-row{
    flex-wrap:wrap;
  }

  .city-input{
    max-width:none;
    flex:1 1 200px;
  }

  .result-header{
    flex-direction:column;
  }

  .result-header h2{
    font-size:38px;
  }

  .primary-answer p{
    font-size:22px;
  }

  .fact-value{
    font-size:19px;
  }

  .fact-block:first-child .fact-value{
    font-size:22px;
  }

  .alternatives-section h3{
    font-size:32px;
  }
}
