:root {
  --paper: #f3efe6;
  --ink: #1b1916;
  --muted: #5c564c;
  --rule: #d5ccbc;
  --navy: #1a3654;
  --navy-2: #24466b;
  --card: #fffdf8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.45 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--navy); }
a:hover { color: var(--navy-2); }

.mast {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 3px solid var(--navy);
  background: var(--card);
}

.club {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--navy);
}

.mast-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

main { padding: 1rem 1.25rem 3rem; max-width: 1100px; }

h1 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-weight: 600;
  font-size: 1.8rem;
  margin: 0.2rem 0 0.4rem;
}

h2 {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.4rem;
  color: var(--navy);
}

h3 { margin: 0.8rem 0 0.3rem; font-size: 1rem; }
h3 a { margin-left: 0.6rem; font-weight: 500; font-size: 0.9rem; }

.lede, .fleet-meta, .aside, .crumb { color: var(--muted); }
.crumb { margin: 0; font-size: 0.9rem; }
.aside { font-size: 0.9rem; }

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.wind {
  margin: 0;
  padding: 0.35rem 0.6rem;
  background: var(--navy);
  color: white;
  font-size: 0.9rem;
}

.index { list-style: none; padding: 0; margin: 0; }
.index li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.index span { color: var(--muted); font-size: 0.9rem; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.25rem;
}
.narrow { max-width: 26rem; }

form label { display: block; margin-top: 0.8rem; font-size: 0.9rem; }
form input {
  width: 100%;
  font: inherit;
  padding: 0.5rem;
  border: 1px solid var(--rule);
  background: white;
}
form button, .text-button {
  margin-top: 1rem;
  font: inherit;
  background: var(--navy);
  color: white;
  border: 0;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.text-button { margin: 0; background: transparent; color: var(--navy); padding: 0.2rem 0; }
.text-button:hover { text-decoration: underline; }

.fleet { margin-top: 1.4rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 36rem; }
th, td { padding: 0.4rem 0.55rem; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #efeae0;
}
.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.place { font-variant-numeric: tabular-nums; font-weight: 600; }

@media (max-width: 640px) {
  .mast, main { padding-left: 0.8rem; padding-right: 0.8rem; }
  h1 { font-size: 1.45rem; }
  .index li { flex-direction: column; gap: 0.1rem; }
}
