:root {
  --paper: #f7f2ea;
  --surface: #fffdf8;
  --ink: #181613;
  --muted: #70675d;
  --line: #ddd0bf;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --warm: #c7811f;
  --soft: #f0dfc4;
  --shadow: 0 22px 56px rgba(58, 44, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 22, 19, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 22, 19, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 36px 20px 28px;
}

.profile {
  padding: 14px 0 30px;
}

.profile-mark {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: var(--ink);
  box-shadow: 0 16px 40px rgba(24, 22, 19, 0.18);
  text-decoration: none;
}

.profile-mark span {
  position: absolute;
  color: var(--surface);
  font-size: 22px;
  font-weight: 800;
}

.profile-mark img {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface);
  object-fit: contain;
}

.eyebrow {
  margin: 22px 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 36px;
  line-height: 1.06;
}

.profile-note {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

main {
  display: grid;
  gap: 26px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading .eyebrow {
  margin-top: 0;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
}

.section-heading.compact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading.compact .eyebrow {
  margin-bottom: 0;
}

.section-heading.compact h2 {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.latest-card,
.archive-card {
  position: relative;
  display: block;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.latest-card {
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.34);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.latest-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  content: "";
}

.latest-card::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 13px;
  height: 13px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.latest-inner {
  padding: 30px 58px 30px 26px;
}

.article-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(199, 129, 31, 0.32);
  border-radius: 999px;
  padding: 5px 11px;
  background: #fff1cf;
  color: #74480d;
  font-size: 12px;
  font-weight: 800;
}

.latest-card h3 {
  max-width: 32rem;
  margin: 18px 0 14px;
  font-size: 28px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.article-domain {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.article-list {
  display: grid;
  gap: 12px;
}

.archive-actions {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.view-more-button {
  min-height: 42px;
  border: 1px solid rgba(15, 118, 110, 0.38);
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--surface);
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.view-more-button:hover {
  border-color: rgba(15, 118, 110, 0.62);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(58, 44, 27, 0.12);
  transform: translateY(-1px);
}

.support-section {
  padding-top: 4px;
}

.support-section .section-heading h2 {
  max-width: 34rem;
  font-size: 22px;
  line-height: 1.3;
}

.qris-card {
  display: grid;
  width: min(100%, 430px);
  margin: 0 auto;
  place-items: center;
  border: 1px solid rgba(221, 208, 191, 0.96);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(58, 44, 27, 0.12);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.qris-card img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

.archive-card {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(221, 208, 191, 0.92);
  border-radius: 8px;
  padding: 14px 44px 14px 14px;
  background: rgba(255, 253, 248, 0.78);
}

.archive-card::after {
  position: absolute;
  right: 20px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}

.archive-number {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.archive-card h3 {
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.archive-card .article-domain {
  font-size: 13px;
}

.latest-card:hover,
.archive-card:hover,
.qris-card:hover {
  border-color: rgba(15, 118, 110, 0.56);
  box-shadow: 0 18px 42px rgba(58, 44, 27, 0.14);
  transform: translateY(-2px);
}

.latest-card:focus-visible,
.archive-card:focus-visible,
.qris-card:focus-visible,
.view-more-button:focus-visible,
footer a:focus-visible,
.profile-mark:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.34);
  outline-offset: 4px;
}

.is-disabled {
  cursor: default;
}

.is-disabled:hover {
  transform: none;
}

footer {
  padding-top: 34px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

footer a {
  font-weight: 700;
  text-decoration-color: rgba(15, 118, 110, 0.42);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 520px) {
  .page-shell {
    padding: 28px 16px 24px;
  }

  h1 {
    font-size: 32px;
  }

  .latest-card h3 {
    font-size: 24px;
  }

  .latest-inner {
    padding: 28px 48px 28px 20px;
  }

  .qris-card {
    padding: 14px;
  }

  .section-heading.compact {
    display: block;
  }

  .section-heading.compact h2 {
    margin-top: 4px;
  }
}
