:root {
  color-scheme: light dark;
  --paper: #f6f5ee;
  --ink: #1d302b;
  --muted: #54675e;
  --line: #c8cfc1;
  --accent: #244d3b;
  --card: #fdfdf8;
  --inverse: #fff;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.5 system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
header,
main,
footer {
  max-width: 1220px;
  margin: auto;
  padding-inline: clamp(20px, 5vw, 70px);
}
header {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 85px;
  border-bottom: 1px solid var(--line);
}
.wordmark,
h1,
h2,
.title {
  font-family: Georgia, "Times New Roman", serif;
}
.wordmark {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: -2px;
  text-decoration: none;
}
.wordmark span {
  color: #8e6636;
}
nav {
  display: flex;
  gap: 23px;
  margin-left: auto;
}
nav a {
  text-decoration: none;
}
nav a[aria-current="page"] {
  text-decoration: underline;
}
button,
.button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  display: inline-block;
}
button:disabled {
  opacity: 0.55;
}
.button,
.primary,
button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--inverse);
  border-color: var(--accent);
}
:focus-visible {
  outline: 3px solid #ba7d2a;
  outline-offset: 3px;
}
.intro {
  padding: clamp(32px, 6vw, 80px) 0 30px;
}
.eyebrow,
.meta,
.fine,
footer {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 650;
  font-size: 0.73rem;
  margin: 0;
}
h1 {
  font-size: clamp(2.6rem, 6.7vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin: 0.25em 0;
}
h2 {
  font-weight: 500;
  font-size: 1.72rem;
  line-height: 1.2;
}
.intro > p:last-child {
  font-size: 1.08rem;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}
.filters button {
  border-radius: 999px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  gap: 22px;
}
.tile {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.tile img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.tile div {
  padding: 14px;
}
.title {
  font-size: 1.35rem;
}
.tile small {
  display: block;
  color: var(--muted);
}
.empty {
  text-align: center;
  border: 1px dashed var(--line);
  padding: 56px 16px;
  border-radius: 12px;
}
.column {
  max-width: 720px;
  padding-block: 42px;
}
.column h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}
form {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 580;
}
input {
  font: inherit;
  width: 100%;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.7rem;
  border-radius: 7px;
}
input[type="checkbox"] {
  width: auto;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plain {
  justify-self: start;
}
.fine,
.meta {
  font-size: 0.875rem;
}
#status {
  padding: 10px 15px;
  border-left: 3px solid var(--accent);
  background: var(--card);
}
#preview,
.full {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
dt {
  font-size: 0.85rem;
  color: var(--muted);
}
dd {
  margin: 0 0 0.7rem;
}
.token {
  overflow-wrap: anywhere;
  user-select: all;
}
main {
  min-height: 74vh;
}
footer {
  margin-top: 42px;
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 28px;
}
@media (max-width: 620px) {
  header {
    height: auto;
    min-height: 74px;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 10px;
  }
  nav {
    order: 3;
    flex-basis: 100%;
  }
  header .button {
    margin-left: auto;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17211d;
    --ink: #e7eddf;
    --card: #212d26;
    --muted: #b3c2b5;
    --line: #445449;
    --accent: #acd1af;
    --inverse: #15251d;
  }
}
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.6rem;
  background: var(--card);
  z-index: 2;
}
.skip:focus {
  top: 0;
}
.grid > .notice {
  grid-column: 1 / -1;
}
.notice {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
}
.notice h2 {
  margin: 0;
}
#compose-access {
  margin-block: 1.1rem;
}
#settings h2 {
  margin-bottom: 0.7rem;
}
#account-section,
#device {
  scroll-margin-top: 1rem;
}
#more {
  margin-block: 1.3rem;
}
#clear-photo-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
}
#clear-photo-label[hidden] {
  display: none;
}
nav a:hover,
.footer-brand:hover {
  text-decoration: underline;
}
.tile:focus-visible,
.tile:hover {
  border-color: var(--accent);
}
.tile img {
  display: block;
}
#entry dd,
.tile,
.token {
  overflow-wrap: anywhere;
}
#entry dl {
  margin-block: 1.5rem;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 0.65rem 1.5rem;
}
#entry dt,
#entry dd {
  margin: 0;
}
#entry .actions a {
  align-self: center;
  padding: 0.55rem 0.95rem;
}
button,
.button,
nav a {
  min-height: 44px;
}
nav a {
  display: inline-flex;
  align-items: center;
}
.title {
  line-height: 1.25;
  display: block;
  margin-bottom: 0.3rem;
}
.footer-brand {
  font-weight: 650;
  text-decoration: none;
}
select {
  font: inherit;
  width: 100%;
  min-height: 44px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.65rem;
  border-radius: 7px;
}
