/* Amoto site: one column, system font, light and dark from the system. No images, no web fonts. */
:root {
  color-scheme: light dark;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6d67;
  --border: rgba(11, 11, 11, 0.1);
  --accent: #2a78d6;
  --accent-wash: rgba(42, 120, 214, 0.1);
  --warning-wash: rgba(250, 178, 25, 0.16);
  --radius: 12px;
  font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #9a988f;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #3987e5;
    --accent-wash: rgba(57, 135, 229, 0.16);
    --warning-wash: rgba(250, 178, 25, 0.12);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }

.site-header, .site-main, .site-footer { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.site-header { display: flex; align-items: center; padding-top: 20px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); box-shadow: inset 0 -7px 0 rgba(255, 255, 255, 0.25); }
.site-main { flex: 1; padding-top: 8px; padding-bottom: 40px; }
.site-footer { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 32px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Pages */
.page h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; margin: 8px 0 16px; }
.page h2 { font-size: 22px; margin: 28px 0 8px; }
.page h3 { font-size: 18px; margin: 22px 0 6px; }
.page p, .page ul, .page ol, .page blockquote, .page pre, .page table { margin: 0 0 14px; }
.page li { margin: 4px 0; }
.page blockquote { margin-left: 0; padding: 4px 14px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.page pre, .page code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.92em; }
.page pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }
.page img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; }
.page table { border-collapse: collapse; width: 100%; }
.page th, .page td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.page th { color: var(--muted); font-weight: 500; font-size: 14px; }
.page hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* Listing pages (stage 13) */
.notice { border-radius: 10px; padding: 10px 14px; background: var(--warning-wash); margin: 0 0 16px; }
.price { font-size: 24px; font-weight: 600; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0 0 16px; }
.photos a:first-child { grid-column: 1 / -1; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.photos a { display: block; }
.price .muted { font-size: 17px; font-weight: 400; }
.contact { font-size: 18px; }
.small { font-size: 14px; }

@media (max-width: 480px) {
  :root { font-size: 15px; }
  .page h1 { font-size: 26px; }
}
