/* updates.thanks.fish — admin styles
   white / black, thin rules, small uppercase labels, serif headings, one accent. */

:root {
  --accent: #1a1ae8;
  --rule: #000;
  --rule-light: #e3e3e3;
  --muted: #767676;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

main,
.site-header,
.site-footer {
  max-width: 1020px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  color: #000;
  text-decoration: none;
}

.site-nav { display: flex; align-items: baseline; gap: 22px; }

.site-nav a,
.nav-button {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #000;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.site-nav a:hover,
.nav-button:hover { color: var(--accent); }

.site-footer {
  margin-top: 70px;
  padding-top: 14px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
}

/* type */

h1 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  margin: 44px 0 10px;
}

h2 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 21px;
  margin: 46px 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

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

.breadcrumb { margin-top: 30px; }
.breadcrumb a { color: var(--muted); }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
}

.break { word-break: break-all; }

.yanked td { text-decoration: line-through; }
.yanked td.row-actions { text-decoration: none; }

.form-error {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* page head */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

/* tables */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 34px;
}

th {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: left;
  color: var(--muted);
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule);
}

td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--rule-light);
  vertical-align: top;
}

td.row-actions { text-align: right; white-space: nowrap; }

/* forms */

.stack-form label {
  display: block;
  margin: 22px 0;
}

.stack-form .label { display: block; margin-bottom: 6px; }

input[type="text"],
input[type="search"],
input[type="date"],
select {
  border: 1px solid var(--rule);
  background: #fff;
  color: #000;
  padding: 9px 11px;
  font: inherit;
  border-radius: 0;
  width: 100%;
  max-width: 420px;
}

input:focus,
select:focus { outline: 1px solid var(--rule); outline-offset: 1px; }

.cell-input {
  width: auto;
  max-width: 150px;
  padding: 5px 8px;
  font-size: 12px;
  border-color: var(--rule-light);
}

.cell-input:focus { border-color: var(--rule); }

button,
.btn {
  display: inline-block;
  border: 1px solid var(--rule);
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
}

button:hover,
.btn:hover { background: #000; color: #fff; text-decoration: none; }

.btn-small { padding: 6px 12px; }

.actions { margin: 26px 0; }

.inline-form { display: inline; }

.inline-create {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 40px;
}

.inline-create input[type="text"] { max-width: 260px; }

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px 0 6px;
}

.search-form input { max-width: 320px; }

@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
