/* Peapod – Preview Attachments for Gmail. The product's own look for its pages on this site
   (privacy, uninstalled, /go/attachment-preview). Peapod brand: pod green #1b5e20 / #2e7d32,
   pea green #4caf50 (the icon tile), bright pea #b9f27a. Light and dark follow the reader's system. Not the portfolio's site.css:
   these pages should read as the product's, hosted on its developer's site. */
:root {
  color-scheme: light;
  --brand: #1b5e20;
  --green: #b9f27a;
  --bg: #ffffff;
  --ink: #13261a;
  --muted: #4a5a4f;
  --line: #dbe6d6;
  --card: #f1f7ee;
  --link: #2e7d32;
  --btn-bg: #2e7d32;
  --btn-ink: #ffffff;
  --focus: #2e7d32;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c1a0f; --ink: #eef6ea; --muted: #b0c4b0; --line: rgb(255 255 255 / 0.14);
    --card: #142618; --link: #b9f27a; --btn-bg: #b9f27a; --btn-ink: #1b5e20; --focus: #b9f27a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1a0f; --ink: #eef6ea; --muted: #b0c4b0; --line: rgb(255 255 255 / 0.14);
  --card: #142618; --link: #b9f27a; --btn-bg: #b9f27a; --btn-ink: #1b5e20; --focus: #b9f27a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: anywhere; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip, .vh { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--btn-bg); color: var(--btn-ink); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* Product header: always the brand pod green, in both modes */
.rf-head { background: var(--brand); color: #ffffff; border-bottom: 4px solid var(--green); }
.rf-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 20px; padding-bottom: 20px; }
.rf-mark { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.rf-mark img { width: 56px; height: 56px; flex: none; border-radius: 13px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18); }
.rf-name { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 750; letter-spacing: -0.01em; }
.rf-sub { margin: 2px 0 0; font-size: 17px; line-height: 1.3; color: #d3ecc6; }
.rf-by { margin: 0 0 0 auto; font-size: 14px; color: #d3ecc6; }
.rf-by a { color: var(--green); }
.rf-head :focus-visible { outline-color: var(--green); }

main { padding: 32px 0 48px; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 4px; }
h2 { font-size: 19px; line-height: 1.3; margin: 32px 0 8px; }
p, li { margin: 0 0 8px; }
ul { padding-left: 22px; }
code { font-size: 0.9em; background: var(--card); padding: 1px 5px; border-radius: 4px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.short { background: var(--card); border-left: 4px solid var(--green); border-radius: 8px; padding: 14px 16px 8px; }
.short ul { margin: 0; }
.dim { color: var(--muted); font-size: 15px; }

/* Feedback form */
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { padding: 0; font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--btn-bg); flex: none; }
.inline { display: flex; flex-wrap: wrap; gap: 0 24px; }
label.block { display: block; font-weight: 700; font-size: 19px; margin: 0 0 8px; }
.opt { font-weight: 400; color: var(--muted); font-size: 15px; }
textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 8px; padding: 10px 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 24px; border: 0; border-radius: 8px; background: var(--btn-bg); color: var(--btn-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.after { background: var(--card); border-radius: 8px; padding: 14px 16px; margin-top: 16px; }
.after textarea { font-size: 14px; }

footer.rf-foot { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: 14px; }
footer.rf-foot p { margin: 0 0 6px; }

@media (max-width: 480px) {
  .rf-name { font-size: 26px; }
  .rf-by { margin-left: 0; flex-basis: 100%; }
  h1 { font-size: 24px; }
}
