/* notforprofithosting.org — shared styles */

:root {
  --accent:   #993333;
  --accent-2: #336666;
  --ink:      #1a1a1a;
  --muted:    #5f5c55;
  --rule:     #ddd9cf;
  --bg:       #faf9f5;
  --panel:    #f3f1ea;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent:   #e09a9a;
    --accent-2: #86bcbc;
    --ink:      #eeece7;
    --muted:    #a8a49b;
    --rule:     #37342c;
    --bg:       #14130e;
    --panel:    #1c1b15;
  }
}
:root[data-theme="dark"] {
  --accent:   #e09a9a;
  --accent-2: #86bcbc;
  --ink:      #eeece7;
  --muted:    #a8a49b;
  --rule:     #37342c;
  --bg:       #14130e;
  --panel:    #1c1b15;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }

a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; }

/* ---- masthead ------------------------------------------------------ */
.masthead {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: flex-end; justify-content: space-between;
  padding-bottom: 1rem; border-bottom: 2px solid var(--accent);
}
.wordmark {
  margin: 0; font-weight: normal; line-height: 1.05;
  font-size: clamp(1.7rem, 5.5vw, 2.5rem);
  font-family: Arial, Helvetica, sans-serif; letter-spacing: -0.015em;
}
.wordmark a { color: inherit; text-decoration: none; }
.wordmark .dot { font-family: "Times New Roman", Times, serif; font-size: 1.35em; line-height: 0; }
.wordmark .tld { font-family: "Arial Narrow", Arial, sans-serif; }
.since {
  display: block; margin-top: 0.35rem;
  font: italic 0.85rem/1.4 Georgia, serif; color: var(--muted); letter-spacing: 0.02em;
}
.contact { margin: 0; font-size: 0.9rem; color: var(--muted); text-align: right; }
.contact a { text-decoration: none; }
.contact a:hover, .contact a:focus-visible { text-decoration: underline; }

/* ---- content ------------------------------------------------------- */
main { margin-top: 2.25rem; }
main > p { margin: 0 0 1.2rem; }

h2 {
  margin: 2.5rem 0 0.9rem; font-size: 1.15rem; font-weight: normal;
  font-family: Arial, Helvetica, sans-serif; color: var(--accent-2);
  padding-bottom: 0.35rem; border-bottom: 1px solid var(--rule);
}
h3 {
  margin: 1.6rem 0 0.5rem; font-size: 1rem; font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

.cols { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 46rem) { .cols { grid-template-columns: 1fr 14rem; } }

.panel {
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: 3px; padding: 1.2rem 1.4rem; align-self: start;
}
.panel h2 {
  margin: 0 0 0.7rem; font-size: 0.95rem; border: 0; padding: 0;
}
.panel ul { margin: 0; padding: 0; list-style: none; font-style: italic; }
.panel li { padding: 0.18rem 0; border-bottom: 1px dotted var(--rule); }
.panel li:last-child { border-bottom: 0; }

/* ---- price table --------------------------------------------------- */
.prices { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
.prices th, .prices td {
  text-align: left; padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--rule); vertical-align: top;
}
.prices th { font-family: Arial, Helvetica, sans-serif; font-size: 0.9rem; font-weight: normal; color: var(--muted); }
.prices td.price { white-space: nowrap; font-family: Arial, Helvetica, sans-serif; }

/* ---- colophon ------------------------------------------------------ */
.colophon {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-family: Arial, Helvetica, sans-serif; font-size: 0.85rem; color: var(--muted);
}
.colophon h2 {
  margin: 0 0 0.6rem; font-size: 0.8rem; border: 0; padding: 0;
  text-transform: uppercase; letter-spacing: 0.09em;
}
.colophon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.colophon li::before { content: "\25AA"; color: var(--accent); margin-right: 0.45rem; }

footer {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule);
  font-size: 0.8rem; color: var(--muted);
}
footer p { margin: 0 0 0.35rem; }

/* ---- terms page ---------------------------------------------------- */
.terms { max-width: 44rem; }
.terms p { margin: 0 0 1rem; }
.terms ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.terms li { margin-bottom: 0.4rem; }
.summary {
  background: var(--panel); border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem; margin: 0 0 2rem; font-style: italic;
}
