.ram-full,
.ram-full-body {
  margin: 0;
  min-height: 100%;
}

.ram-full-body,
.ram-root {
  background-color: #f3eee4;
  color: #1c1915;
  font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.ram-root {
  min-height: 100dvh;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(28, 25, 21, 0.045) 1px, transparent 0),
    linear-gradient(180deg, rgba(251, 247, 240, 0.55), rgba(243, 238, 228, 0.2));
  background-size: 16px 16px, 100% 100%;
}

.ram-root * {
  box-sizing: border-box;
}

.ram-root button:not(:disabled),
.ram-root [role="button"]:not(:disabled) {
  cursor: pointer;
}

.ram-root h1,
.ram-root h2,
.ram-root h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

.ram-banner {
  background: #8f2d2d;
  color: #fbf7f0;
}

.ram-banner p {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ram-header {
  background: #1e2a3a;
  color: #f3eee4;
  border-bottom: 1px solid #1e2a3a;
}

.ram-header-inner,
.ram-wrap {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1rem;
}

.ram-header-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.ram-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f3eee4;
  text-decoration: none;
}

.ram-brand img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  outline: 1px solid rgba(180, 154, 104, 0.5);
  outline-offset: -1px;
}

.ram-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b49a68;
}

.ram-wordmark {
  display: block;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ram-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ram-nav a {
  color: rgba(243, 238, 228, 0.8);
  text-decoration: none;
}

.ram-nav a:hover {
  color: #f3eee4;
}

.ram-hero,
.ram-file,
.ram-blotter,
.ram-receipt-wrap {
  border-bottom: 1px solid #d4cbb8;
}

.ram-hero-grid,
.ram-file-grid {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
}

.ram-stamp-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8f2d2d;
  margin: 0 0 0.75rem;
}

.ram-brass-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a7348;
  margin: 0 0 0.5rem;
}

.ram-hero h1 {
  font-size: 2.25rem;
  color: #1e2a3a;
}

.ram-lede {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 1.05rem;
  color: #6b6458;
}

.ram-hero ul {
  margin: 1.5rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.95rem;
}

.ram-hero li + li {
  margin-top: 0.4rem;
}

.ram-seal-wrap {
  display: flex;
  justify-content: center;
}

.ram-seal-wrap img {
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.ram-file {
  background: rgba(251, 247, 240, 0.6);
}

.ram-file h2,
.ram-blotter h2 {
  font-size: 1.85rem;
  color: #1e2a3a;
}

.ram-muted {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  font-size: 0.9rem;
  color: #6b6458;
}

.ram-frame {
  background: #fbf7f0;
  border-radius: 1rem;
  padding: 4px;
  box-shadow:
    0 0 0 1px #8a7348,
    0 0 0 5px #fbf7f0,
    0 0 0 6px #1e2a3a,
    0 2px 8px rgba(28, 25, 21, 0.05);
}

.ram-frame-inner {
  background: #fbf7f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.ram-form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 2px solid #1e2a3a;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.ram-form-head p {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e2a3a;
}

.ram-mono {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
  color: #6b6458;
}

.ram-field {
  margin-bottom: 1.15rem;
}

.ram-field label,
.ram-dt {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1e2a3a;
  margin-bottom: 0.45rem;
}

.ram-field input[type="text"],
.ram-field textarea,
.ram-field select {
  width: 100%;
  border: 1px solid #d4cbb8;
  background: #fbf7f0;
  color: #1c1915;
  border-radius: 0.6rem;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 1rem;
}

.ram-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.ram-field input:focus,
.ram-field textarea:focus,
.ram-field select:focus,
.ram-root button:focus-visible {
  outline: 2px solid #1e2a3a;
  outline-offset: 2px;
}

.ram-hint,
.ram-error {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
}

.ram-hint {
  color: #6b6458;
}

.ram-error {
  color: #8f2d2d;
}

.ram-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(231, 224, 210, 0.7);
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ram-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: #1e2a3a;
  flex-shrink: 0;
}

.ram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.6rem;
  background: #1e2a3a;
  color: #f3eee4;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}

.ram-btn:hover {
  background: #151e2a;
}

.ram-btn:active {
  transform: scale(0.96);
}

.ram-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ram-btn-outline {
  background: #fbf7f0;
  color: #1c1915;
  border: 1px solid rgba(30, 42, 58, 0.2);
}

.ram-btn-outline:hover {
  background: #e7e0d2;
}

.ram-btn-sm {
  min-height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
}

.ram-blotter-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2.5rem;
}

.ram-sort {
  display: flex;
  gap: 0.5rem;
}

.ram-grid {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 2.5rem;
}

.ram-card h3 {
  font-size: 1.25rem;
  color: #1e2a3a;
  margin-top: 0.25rem;
}

.ram-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(30, 42, 58, 0.15);
  background: #e7e0d2;
  color: #1e2a3a;
  border-radius: 0.25rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ram-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.ram-case {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a7348;
  margin: 0;
}

.ram-meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #6b6458;
}

.ram-body {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.ram-verdict {
  margin: 1rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid #8a7348;
  font-size: 0.9rem;
  font-style: italic;
  color: #6b6458;
}

.ram-status {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e2a3a;
}

.ram-rate {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #d4cbb8;
}

.ram-rate-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-end;
}

.ram-bar {
  height: 0.5rem;
  background: #e7e0d2;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.6rem;
}

.ram-bar span {
  display: block;
  height: 100%;
  background: #1e2a3a;
  border-radius: 999px;
}

.ram-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.ram-scale button {
  min-height: 2.75rem;
  flex-direction: column;
  gap: 0;
  padding: 0.25rem 0.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ram-receipt-link {
  display: block;
  margin-top: 1rem;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e2a3a;
  text-decoration: none;
}

.ram-receipt-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ram-receipt-wrap {
  padding: 2.5rem 0 3rem;
}

.ram-receipt {
  position: relative;
  overflow: hidden;
}

.ram-satire-stamp {
  position: absolute;
  top: 1.25rem;
  right: 1rem;
  transform: rotate(12deg);
  border: 2px solid #8f2d2d;
  color: #8f2d2d;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  text-align: center;
  opacity: 0.8;
  pointer-events: none;
}

.ram-satire-stamp strong {
  display: block;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
}

.ram-satire-stamp span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ram-receipt h1 {
  max-width: 36rem;
  padding-right: 6rem;
  font-size: 2rem;
  color: #1e2a3a;
  margin-top: 0.5rem;
}

.ram-dl {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px dashed #c4b89a;
  border-bottom: 1px dashed #c4b89a;
}

.ram-dl dd {
  margin: 0.25rem 0 0;
}

.ram-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ram-footer {
  background: #1e2a3a;
  color: #f3eee4;
  border-top: 4px solid #1e2a3a;
}

.ram-footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 1rem;
  margin: 0 auto;
  max-width: 72rem;
}

.ram-footer h2 {
  color: #f3eee4;
  font-size: 1.5rem;
  margin: 0.5rem 0 0;
}

.ram-footer p {
  color: rgba(243, 238, 228, 0.8);
  font-size: 0.9rem;
}

.ram-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fbf7f0;
  color: #1c1915;
  border: 1px solid #d4cbb8;
  border-radius: 0.6rem;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(28, 25, 21, 0.12);
  z-index: 50;
}

@media (min-width: 640px) {
  .ram-banner p {
    font-size: 0.875rem;
  }
  .ram-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .ram-wordmark {
    font-size: 1.85rem;
  }
  .ram-hero h1 {
    font-size: 3rem;
  }
  .ram-seal-wrap img {
    width: 18rem;
    height: 18rem;
  }
  .ram-actions {
    flex-direction: row;
  }
}

@media (min-width: 960px) {
  .ram-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
  .ram-file-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .ram-blotter-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .ram-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ram-footer-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .ram-dl {
    grid-template-columns: 1fr 1fr;
  }
  .ram-span-2 {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ram-root * {
    transition: none !important;
  }
}
