/* Newmod III & WildFire — site styles */
:root {
  --ink: #1d2430;
  --ink-soft: #4a5566;
  --paper: #f7f5f0;
  --card: #ffffff;
  --line: #ddd8cc;
  --clay: #a4532b;        /* Newmod III accent */
  --clay-soft: #f3e4da;
  --fire: #c7811a;        /* WildFire accent */
  --fire-soft: #f7ead2;
  --link: #8a3f1c;
  --max: 1080px;
  --radius: 10px;
  font-family: "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); line-height: 1.6; font-size: 17px; }
a { color: var(--link); }
a:hover { color: var(--clay); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; font-family: "Noto Serif", Georgia, serif; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 .5em; }
h2 { font-size: 1.55rem; margin: 1.8em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.3em 0 .35em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main { padding: 36px 0 60px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.brand span { color: #e9b58f; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.nav a { color: #d8dce4; text-decoration: none; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: #fff; border-bottom-color: #e9b58f; }
.nav a.buy { background: var(--clay); color: #fff; padding: 6px 14px; border-radius: 6px; border: 0; }
.nav a.buy:hover { background: #8a3f1c; }

/* hero */
.hero { padding: 20px 0 10px; }
.hero-plot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 24px; }
.hero-plot svg { width: 100%; height: auto; display: block; }
.hero-plot figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

/* cards & grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card h2, .card h3 { margin-top: 0; }
.card.newmod { border-top: 5px solid var(--clay); }
.card.wildfire { border-top: 5px solid var(--fire); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; }
.tag.newmod { background: var(--clay-soft); color: var(--clay); }
.tag.wildfire { background: var(--fire-soft); color: #8b5a0f; }
ul.features { padding-left: 1.1em; }
ul.features li { margin: .35em 0; }

.btn { display: inline-block; background: var(--clay); color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 7px; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: #8a3f1c; color: #fff; }
.btn.secondary { background: transparent; color: var(--clay); border: 2px solid var(--clay); }
.btn.secondary:hover { background: var(--clay-soft); color: var(--clay); }
.btn.fire { background: var(--fire); }
.btn.fire:hover { background: #9f6611; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.placeholder { background: repeating-linear-gradient(45deg, #efece4, #efece4 10px, #e7e3d8 10px, #e7e3d8 20px); border: 1px dashed #bdb5a3; border-radius: var(--radius); min-height: 200px; display: flex; align-items: center; justify-content: center; color: #7d7563; font-size: .95rem; text-align: center; padding: 16px; }
.todo { background: #fff6c9; border: 1px solid #e6d36e; padding: 1px 6px; border-radius: 4px; font-size: .9em; }

.price { font-size: 2.2rem; font-weight: 700; font-family: "Noto Serif", Georgia, serif; }
.price small { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }

table { border-collapse: collapse; width: 100%; background: var(--card); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #efece4; font-size: .92rem; }

.note { background: var(--card); border-left: 4px solid var(--fire); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }

/* buy form */
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 18px; background: var(--card); }
legend { font-weight: 700; padding: 0 6px; }
label.opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
label.opt input { margin-top: 5px; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.summary .row { display: flex; justify-content: space-between; padding: 4px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.msg { margin-top: 12px; font-size: .95rem; }
.msg.warn { color: #9a3412; }

details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }

/* footer */
.site-footer { background: #e9e5db; border-top: 1px solid var(--line); padding: 28px 0; font-size: .92rem; color: var(--ink-soft); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }
.site-footer nav a { margin-right: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
}

/* screenshots */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid #d9d4c7; border-radius: var(--radius); background: #fff; }
.shot figcaption { font-size: .9rem; color: #5a6270; margin-top: 6px; }
.grid .shot { margin-bottom: 8px; }
.hero-plot.shot img { border: 0; }
