:root {
  --paper: #f7f4ee;
  --surface: #fff;
  --ink: #252521;
  --muted: #68665f;
  --line: #ded9d0;
  --soft: #fbe6d9;
  --brand: #e94e1b;
  --orange: #b83b13;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/1.6 Manrope,
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
  line-height: 1.15;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 22px;
}
.page {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: white;
  z-index: 3;
}
.skip-link:focus {
  top: 10px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.logo {
  width: 174px;
  line-height: 0;
  flex-shrink: 0;
}
.logo img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.masthead nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.masthead nav a,
.text-button {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.masthead form {
  margin: 0;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
}
.masthead nav a:hover,
.text-button:hover {
  color: var(--orange);
}
.eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.help-desk {
  max-width: 780px;
  margin: auto;
  padding: 64px 0 56px;
  text-align: center;
}
.help-desk h1 {
  font-size: clamp(40px, 6vw, 64px);
}
.help-desk .dek {
  margin: 0 auto 36px;
}
h1 {
  margin: 18px 0 22px;
  font-size: clamp(48px, 6.1vw, 82px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.dek {
  max-width: 570px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.search-form {
  display: flex;
  width: 100%;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
}
.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  min-height: 60px;
  color: var(--ink);
}
.search-form button {
  border: 0;
  background: transparent;
  color: var(--orange);
  width: 52px;
  font-size: 24px;
}
.filter-panel {
  align-self: end;
  min-width: 0;
}
.filter-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.filter-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.app-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.app-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 24px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.app-filter.all-apps {
  width: auto;
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 6px;
}
.app-filter[aria-current="true"],
.app-filter:hover {
  color: var(--orange);
  border-color: var(--brand);
  background: var(--soft);
}
.app-filters .app-filter[aria-current="true"] {
  box-shadow: inset 0 -3px var(--brand);
}
.filter-icon {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
}
.app-filter small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.article-section {
  padding-bottom: 92px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.type-filters {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.type-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.type-filters a[aria-current="true"] {
  border-color: var(--brand);
  color: var(--ink);
}
.index-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding-bottom: 18px;
}
.index-head h2 {
  margin: 8px 0 0;
}
.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
#articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.article {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  min-height: 270px;
  padding: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  text-decoration: none;
}
.article-heading {
  display: block;
  min-width: 0;
}
.article-meta {
  display: block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.55;
}
.article-title {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.article-summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.article-summary time {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}
.article-arrow {
  align-self: end;
  margin-top: auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--orange);
  font-size: 17px;
  line-height: 34px;
  text-align: center;
}
.article:hover {
  background: var(--soft);
}
.article:focus-visible {
  outline-offset: -4px;
}
.article:hover .article-arrow {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.empty-state {
  grid-column: 1 / -1;
  background: var(--paper);
  padding: 56px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.empty-state p {
  color: var(--muted);
  max-width: 600px;
  margin: 12px auto 24px;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer a {
  padding: 12px 0;
}
.muted,
.field-note {
  color: var(--muted);
}
.back-link {
  display: inline-block;
  margin: 12px 0 28px;
  font-size: 13px;
  color: var(--muted);
}
.reading-page {
  max-width: 800px;
  margin: 56px auto 88px;
}
.reading-page h1 {
  font-size: clamp(36px, 5vw, 60px);
  overflow-wrap: anywhere;
  line-height: 1.08;
}
.post-identity {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 12px 0 24px;
}
.post-identity img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.answer-label {
  margin: 40px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
.prose {
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.prose h2,
.prose h3 {
  margin-top: 32px;
}
.prose a {
  color: var(--orange);
}
.prose pre {
  overflow: auto;
  white-space: pre;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}
.prose code {
  font-size: 0.9em;
}
.prose blockquote {
  border-left: 3px solid var(--brand);
  margin-left: 0;
  padding-left: 24px;
  color: var(--muted);
}
.prose table {
  display: block;
  max-width: 100%;
  overflow: auto;
  border-collapse: collapse;
}
.prose td,
.prose th {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}
.bottom-link {
  margin-top: 40px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  gap: 12px;
}
.button:hover {
  filter: brightness(0.93);
}
.button.secondary {
  background: transparent;
  color: var(--orange);
  border-color: var(--line);
}
.admin-page {
  padding: 56px 0 80px;
}
.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.admin-title h1 {
  font-size: clamp(38px, 5vw, 64px);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 40px 0 16px;
}
.section-title a {
  font-size: 13px;
}
.admin-list {
  border-top: 2px solid var(--ink);
}
.admin-row {
  display: grid;
  grid-template-columns: 1fr auto 20px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.admin-row strong {
  display: block;
  font-size: 18px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.status {
  font-size: 12px;
  padding: 5px 10px;
  background: var(--line);
  border-radius: 4px;
  white-space: nowrap;
}
.status.published {
  background: var(--soft);
  color: var(--orange);
}
.app-management {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.app-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: var(--surface);
  align-items: start;
}
.app-card img {
  border-radius: 10px;
  width: 48px;
  height: 48px;
  object-fit: cover;
}
.app-card strong,
.app-card small,
.app-card div > span {
  display: block;
  overflow-wrap: anywhere;
}
.app-card small {
  font-size: 11px;
  margin-top: 8px;
  color: var(--muted);
}
.app-card div > span {
  font-size: 12px;
  color: var(--muted);
}
.editor-page {
  max-width: 850px;
  margin: 40px auto 80px;
}
.editor-page h1 {
  font-size: clamp(36px, 5vw, 56px);
}
.editor-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}
.editor-form label {
  font-size: 14px;
  font-weight: 700;
}
.editor-form input:not([type="hidden"]),
.editor-form textarea,
.editor-form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  min-height: 48px;
}
.editor-form textarea {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}
.editor-form .button {
  align-self: start;
  margin-top: 8px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 12px;
}
.form-columns > div {
  min-width: 0;
}
.form-columns label {
  display: block;
  margin-bottom: 12px;
}
.field-note {
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.actions a:not(.button) {
  font-size: 13px;
}
.notice,
.error {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: var(--surface);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.error {
  background: var(--soft);
  color: var(--orange);
}
.danger-zone {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.checkbox input {
  width: 18px;
  height: 18px;
}
.danger-zone button {
  color: var(--orange);
}
.icon-preview {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 14px;
}
.language-picker {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0;
}
.language-picker select {
  min-height: 48px;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.screenshot-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
}
.screenshot-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 16px;
}
.screenshot-card input[type="number"] {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.login-panel {
  max-width: 500px;
  margin: 88px auto 120px;
}
.login-panel h1 {
  font-size: 56px;
}
.login-panel .button {
  width: 100%;
}
@media (max-width: 900px) {
  .app-management {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  #articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #articles {
    grid-template-columns: 1fr;
  }
  .app-filters {
    gap: 8px;
  }
  .app-filter {
    padding: 16px 6px;
    font-size: 12px;
  }
  .filter-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }
}
@media (max-width: 720px) {
  .help-desk {
    padding: 48px 0 44px;
  }
  .page {
    width: calc(100% - 32px);
  }
  .masthead {
    min-height: 72px;
  }
  .logo {
    width: 146px;
  }
  .masthead nav {
    gap: 14px;
  }
  .masthead nav a,
  .text-button {
    font-size: 10px;
  }
  .help-desk h1 {
    font-size: 40px;
  }
  .dek {
    font-size: 16px;
  }
  .filter-heading > span {
    max-width: 50%;
    text-align: right;
  }
  .type-filters {
    gap: 16px;
    margin-bottom: 20px;
  }
  .type-filters a {
    font-size: 12px;
  }
  .index-head {
    gap: 10px;
  }
  .index-head h2 {
    font-size: 20px;
  }
  .index-head .eyebrow {
    font-size: 10px;
  }
  .result-count {
    font-size: 12px;
  }
  .article {
    gap: 12px;
    min-height: 0;
    padding: 24px;
  }
  .article-summary {
    font-size: 13px;
  }
  .article-arrow {
    width: 32px;
    height: 32px;
    line-height: 30px;
  }
  .article-title {
    font-size: 18px;
  }
  .article-meta {
    font-size: 11px;
  }
  .article-section {
    padding-bottom: 56px;
  }
  .footer {
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
  }
  .form-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .admin-title {
    align-items: start;
    flex-direction: column;
  }
  .admin-row {
    grid-template-columns: 1fr 20px;
    gap: 12px;
  }
  .admin-row .status {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .admin-row > span:last-child {
    grid-column: 2;
    grid-row: 1;
  }
  .reading-page {
    margin-top: 36px;
  }
  .login-panel {
    margin: 56px auto 80px;
  }
  .login-panel h1 {
    font-size: 46px;
  }
  .prose {
    font-size: 16px;
  }
  .editor-page {
    margin-top: 28px;
  }
}
