@font-face {
  font-family: Nohemi;
  src: url(/Nohemi-Medium.ttf);
}
@font-face {
  font-family: Hanken;
  src: url(/hanken-grotesk-latin-wght-normal.woff2);
  font-weight: 100 900;
}
@font-face {
  font-family: Plex;
  src: url(/ibm-plex-mono-latin-400-normal.woff2);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #081622;
  background: #f5f8f7;
  font:
    1.05rem/1.55 Hanken,
    sans-serif;
}
header {
  background: #081622;
  color: white;
  padding: 1rem max(5vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 4px solid #00cea6;
}
header div,
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
header span,
.meta,
dt {
  font:
    0.84rem/1.5 Plex,
    monospace;
}
header span {
  color: #a9dcd3;
}
header .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font:
    1.25rem Nohemi,
    sans-serif;
  text-decoration: none;
}
header a {
  color: white;
}
main {
  max-width: 57rem;
  margin: clamp(1.5rem, 6vw, 5rem) auto;
  padding: 0 max(1rem, 3vw) 4rem;
}
h1,
h2 {
  font-family: Nohemi, sans-serif;
  font-weight: 500;
  line-height: 1.12;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.5rem;
}
a {
  color: #00515d;
  text-underline-offset: 0.2em;
}
form:not(nav form, article form),
article,
dl {
  padding: clamp(1rem, 3vw, 2rem);
  background: white;
  border: 1px solid #cbdad7;
  border-radius: 0.6rem;
  margin: 1rem 0;
}
label {
  display: block;
  margin: 0 0 1rem;
  font-weight: 600;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #869d9b;
  border-radius: 0.3rem;
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: #fff;
}
textarea {
  min-height: 5rem;
}
input[type='number'],
input[type='date'],
.figure {
  font-family: Plex, monospace;
}
button,
.button {
  white-space: nowrap;
  background: #00515d;
  color: white;
  border: 0;
  border-radius: 0.35rem;
  padding: 0.65rem 1rem;
  font:
    600 1rem Hanken,
    sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.quiet {
  border: 1px solid #82a5a7;
  background: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #008572;
  outline-offset: 3px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.15rem 1rem;
  align-items: end;
}
p {
  overflow-wrap: anywhere;
  max-width: 65ch;
}
.changes {
  color: #36544e;
}
dd {
  margin: 0 0 1rem;
}
article h2 {
  margin: 0 0 0.5rem;
}
article,
dd {
  overflow-wrap: anywhere;
}
[role='alert'] {
  border-left: 4px solid #a94830;
  padding: 1rem;
  background: white;
}

.grid .full-width { grid-column: 1 / -1; }

/* Field groups on the lot form */
fieldset {
  border: 0;
  border-top: 1px solid #dbe6e4;
  margin: 0;
  padding: 1.25rem 0 0.25rem;
}
fieldset:first-of-type {
  border-top: 0;
  padding-top: 0;
}
legend {
  font: 1.15rem Nohemi, sans-serif;
  padding: 0 0 0.75rem;
  float: left;
  width: 100%;
}
legend + * {
  clear: both;
}
label.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 500;
}
label.check input {
  width: auto;
  margin-top: 0.35rem;
}

/* Status labels: one colour per stage, so a list reads at a glance */
.status {
  display: inline-block;
  font: 0.78rem/1 Plex, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.55rem;
  border-radius: 0.3rem;
  white-space: nowrap;
  background: #e3efed;
  color: #00515d;
}
.status-published {
  background: #00cea6;
  color: #081622;
}
.status-reserved {
  background: #00515d;
  color: white;
}
.status-sold {
  background: #081622;
  color: white;
}
.status-withdrawn,
.status-expired {
  background: #eceeee;
  color: #4e5f5d;
}

/* Lot cards and lot page header */
.lot-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.lot-head h2 {
  margin: 0;
}
.summary {
  margin: 0.6rem 0 0;
  color: #2c4440;
}
.lot-actions {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}
.lot-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.lot-status p {
  margin: 0;
  flex: 1 1 14rem;
}
.quiet-button {
  background: white;
  color: #00515d;
  border: 1px solid #00515d;
}

/* Read-only lot: grouped facts in two columns */
.facts {
  background: white;
  border: 1px solid #cbdad7;
  border-radius: 0.6rem;
  padding: clamp(1rem, 3vw, 2rem);
  margin: 1rem 0;
}
.facts h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0 1.5rem;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
}

/* Actions that remove something look quieter than the main action */
button.danger {
  background: white;
  color: #a94830;
  border: 1px solid #a94830;
}
button.danger:hover {
  background: #fbf1ee;
}

/* Drop-downs: one chevron, inset from the edge, text aligned with plain inputs */
select,
input.picker {
  -webkit-appearance: none;
  appearance: none;
  background: #fff url(/chevron.svg) no-repeat right 0.9rem center / 0.75rem auto;
  padding-right: 2.4rem;
  cursor: pointer;
}
input.picker {
  cursor: text;
}
/* The browser's own suggestion arrow sits under ours: hide it but keep it clickable to open the list. */
input.picker::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}
select:hover,
input.picker:hover {
  border-color: #00515d;
}
input::placeholder {
  color: #7d8f8c;
}

.required,
.you {
  font: 0.72rem/1 Plex, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #00515d;
  background: #e3efed;
  padding: 0.25rem 0.4rem;
  border-radius: 0.25rem;
  vertical-align: middle;
  font-weight: 400;
}
nav a[aria-current='page'] {
  text-decoration-thickness: 3px;
  text-decoration-color: #00cea6;
}
