:root {
  --bg: #fff;
  --fg: #222;
  --dim: #888;
  --acc: #f2b8e2;
  --line: #ddd;
  --err: #e33;
  --ok: #5a5;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.wrap {
  max-width: 34rem;
  margin: 4rem auto;
  padding: 0 1rem;
}

h1 {
  font-size: 1rem;
  font-weight: normal;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: .85em;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: .4rem;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1.2rem;
}

a {
  color: var(--fg);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--acc);
  outline: none;
}

.up {
  color: var(--dim);
}

.up:hover,
.up:focus {
  color: var(--acc);
}

table {
  width: 100%;
  border-collapse: collapse;
}

tr {
  border-bottom: 1px solid var(--line);
}

tr:last-child {
  border-bottom: none;
}

td {
  padding: .6rem 0;
  vertical-align: top;
}

td.d {
  color: var(--dim);
  white-space: nowrap;
  padding-right: 1.2rem;
}

.contact {
  width: 100%;
  border-collapse: collapse;
}

.contact tr {
  border-bottom: 1px solid var(--line);
}

.contact tr:last-child {
  border-bottom: none;
}

.contact td {
  padding: .6rem 0;
  vertical-align: top;
}

.contact td:first-child {
  color: var(--dim);
  width: 8rem;
  padding-right: 1.2rem;
}

.nav {
  margin-bottom: 3rem;
}

.nav a {
  margin-right: 1.2rem;
}

.nav a:last-child {
  margin-right: 0;
}

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

form {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 2rem;
}

input,
textarea,
select,
button {
  font-family: inherit;
  line-height: 1.4;
  font-size: inherit;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  padding: .4rem .5rem;
  border-radius: 0;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--acc);
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

button {
  color: var(--acc);
  cursor: pointer;
  align-self: flex-start;
}

button:hover {
  border-color: var(--acc);
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.status {
  color: var(--dim);
  font-size: .85em;
}

.status.err {
  color: var(--err);
}

.status.ok {
  color: var(--ok);
}

.del {
  color: var(--err);
  font-size: .85em;
}

code,
pre,
kbd,
samp {
  font-family: ui-monospace, monospace;
  font-size: .9em;
}

input,
select,
button {
  min-height: 2.3rem;
  box-sizing: border-box;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.9rem;
  background-color: var(--bg);
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 1rem) 52%, calc(100% - .7rem) 52%;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

input[type=checkbox],
input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 1px solid var(--dim);
  background: var(--bg);
  display: inline-grid;
  place-content: center;
  flex-shrink: 0;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color .15s;
}

input[type=radio] {
  border-radius: 50%;
}

input[type=checkbox]::before,
input[type=radio]::before {
  content: "";
  width: .6rem;
  height: .6rem;
  background: var(--acc);
  transform: scale(0);
  transition: transform .12s;
}

input[type=checkbox]::before {
  clip-path: polygon(12% 50%, 0 64%, 40% 100%, 100% 18%, 86% 4%, 40% 72%);
}

input[type=radio]::before {
  border-radius: 50%;
}

input[type=checkbox]:checked,
input[type=radio]:checked {
  border-color: var(--acc);
}

input[type=checkbox]:checked::before,
input[type=radio]:checked::before {
  transform: scale(1);
}

input[type=checkbox]:hover,
input[type=radio]:hover,
input[type=checkbox]:focus-visible,
input[type=radio]:focus-visible {
  border-color: var(--acc);
}

input[type=checkbox]:disabled,
input[type=radio]:disabled {
  opacity: .5;
  cursor: not-allowed;
}

label:has(> input[type=checkbox]),
label:has(> input[type=radio]) {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
}
