/* Colours and type carried over from the previous Emeth site. */
:root {
  --bg: #f5f1ea;
  --surface: #ffffff;
  --surface-alt: #eef1ec;
  --text: #172126;
  --text-muted: #5d6870;
  --accent: #415348;
  --accent-warm: #a67c52;
  --border: #d9d4cb;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 300 13px/1.65 var(--sans);
  font-feature-settings: "tnum" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--accent-warm); outline-offset: 3px; }

.wordmark {
  font: 600 24px/1.3 var(--serif);
  text-decoration: none;
}

/* Home, password and not-found screens */
.centered {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  padding: 24px 20px;
}

.card { width: min(100%, 440px); }
.card.wide { width: min(100%, 540px); }
/* The wordmark is the home page heading, so undo the deal-page title size. */
h1.wordmark { margin: 0; font: 600 24px/1.3 var(--serif); letter-spacing: normal; }
.about { margin-bottom: 14px; color: var(--text-muted); font-size: 14px; line-height: 1.75; }
.about p + p { margin-top: 12px; }
.lead { margin: 20px 0 24px; font: 300 1.35rem/1.55 var(--serif); }
.note { margin-top: 24px; color: var(--text-muted); font-size: 12px; }
.error { margin-top: 10px; color: #9b2c2c; font-weight: 400; }

label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: 400 16px var(--sans);
}

button,
.button {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font: 700 13px var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.site-footer {
  align-self: end;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

/* Deal pages */
.deal { max-width: 940px; margin: 0 auto; padding: 32px 20px; }

.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.tag {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag.green { border-color: rgba(65, 83, 72, 0.3); background: rgba(65, 83, 72, 0.1); color: var(--accent); }
.tag.warm { border-color: rgba(166, 124, 82, 0.3); background: rgba(166, 124, 82, 0.1); color: var(--accent-warm); }

.kicker,
.label {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker { margin-bottom: 12px; font-size: 11px; }

h1 {
  margin-bottom: 8px;
  font: 300 clamp(2.4rem, 6vw, 4rem)/1.05 var(--serif);
  letter-spacing: -0.02em;
}

h1 em { display: block; color: var(--accent); }

.facts { display: flex; flex-wrap: wrap; gap: 0 24px; color: var(--text-muted); font-size: 12px; }

section { margin-bottom: 40px; }

h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 40px 0 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--border);
}

.metrics div { padding: 18px; background: var(--surface-alt); }

.figure {
  margin: 8px 0 4px;
  font: 400 clamp(1.6rem, 3vw, 2.1rem)/1 var(--serif);
  letter-spacing: -0.02em;
}

.small { color: var(--text-muted); font-size: 11px; line-height: 1.6; }

.prose { max-width: 72ch; font: 300 clamp(1rem, 2vw, 1.15rem)/1.8 var(--serif); }
.prose p + p { margin-top: 16px; }

.columns { display: grid; gap: 32px; }
.columns section { margin: 0; }
.columns { margin-bottom: 40px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 7px 0 7px 12px; text-align: right; font-weight: 400; }
th:first-child, td:first-child { padding-left: 0; text-align: left; }
th { color: var(--text-muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr + tr { border-top: 1px solid var(--border); }
td:first-child { color: var(--text-muted); font-weight: 300; }
tr.total td { color: var(--text); font-weight: 400; }

.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photos img, .map { width: 100%; border-radius: 4px; object-fit: cover; }
.photos img { aspect-ratio: 4 / 3; }
.map { aspect-ratio: 1; border: 1px solid var(--border); }

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font: 300 1.1rem/1.4 var(--serif);
}

.links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.disclaimer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}

.disclaimer p:first-child { font: italic 300 12px var(--serif); }
.disclaimer p:last-child { max-width: 700px; }

@media (min-width: 681px) {
  .deal { padding: 48px 32px; }
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .columns { grid-template-columns: 1fr 1fr; }
}

@media print {
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  section, .contact { break-inside: avoid; }
}
