:root {
  --bg: #e6e5d2;
  --text: #1f1b1a;
  --text2: #827c78;
  --title: #1f1b1a;
  --button: #6a5a55;
  --buttonborder: #2b2523;
  --gutter: 1.5rem;
  --header-h: 4.5rem;
  --console-h: 3.1rem;
}

body {
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: none;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem var(--gutter);
  background: var(--bg);
  z-index: 10;
  height: var(--header-h);
  display: flex;
}

.console {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  gap: 2rem;
  align-items: baseline;
  padding: 0 var(--gutter) 1.5rem;
  background: var(--bg);
  z-index: 9;
}

.console h1 {
  margin: 0;
}

main {
  max-width: 42rem;
  padding: calc(var(--header-h) + var(--console-h)) var(--gutter) 0;
}

h1 {
  font-size: 1.2rem;
}

h2 {
  font-size: 1rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  color: inherit;
}

time {
  color: var(--text2);
  font-size: 0.9rem;
}

.post-summary {
  margin-bottom: 1.5rem;
}

.post-summary h2 {
  margin: 0;
}

.post-body pre {
  background: var(--bg);
  padding: 1rem;
  overflow-x: auto;
}

.post-body code {
  font-family: ui-monospace, monospace;
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack label {
  display: grid;
  gap: 0.25rem;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid var(--text2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

button {
  font: inherit;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

textarea {
  font-family: ui-monospace, monospace;
}

.error {
  color: #b00020;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  text-align: left;
  padding: 0.4rem;
  border-bottom: 1px solid var(--text2);
}

.site-footer a {
  color: var(--text2);
  text-decoration: none;
}

.site-footer-login {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.85rem;
}

.site-footer-home {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.85rem;
}

body {
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.inline-form {
  display: inline;
  margin-left: 0.5rem;
}

.link-danger {
  background: none;
  border: none;
  padding: 0;
  color: #b00020;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--text2);
  opacity: 0.2;
  -webkit-mask: url("/static/tanpopo-watermark.png") center / auto 85vh no-repeat;
  mask: url("/static/tanpopo-watermark.png") center / auto 85vh no-repeat;
}
