/* =============================================================================
   AEO Butler — style.css
   Element selectors only. No classes or IDs in body HTML.
   Black (#111111) on white (#ffffff). Function over form.
   ============================================================================= */

/* ── Reset ─────────────────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
html {
  font-size: 18px;
  color: #111111;
  background-color: #eaeaea;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.7;
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

small {
  font-size: 0.85rem;
}

/* ── Links ──────────────────────────────────────────────────────────────────── */
a {
  color: #111111;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

a:focus {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

/* ── Code ───────────────────────────────────────────────────────────────────── */
code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  background-color: #f4f4f4;
  padding: 0.1em 0.3em;
}

pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  background-color: #f4f4f4;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.5;
}

/* ── Layout regions ─────────────────────────────────────────────────────────── */
header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #111111;
}

main {
  margin-bottom: 4rem;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #111111;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
nav {
  margin-bottom: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav ul li a {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Page-sections nav sits below site nav — subtle separator */
nav + nav {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #cccccc;
}

/* ── Sections and articles ──────────────────────────────────────────────────── */
section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #111111;
}

section:last-child {
  border-bottom: none;
}

article {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 3px solid #111111;
}

article:last-child {
  margin-bottom: 0;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid #111111;
  font-style: italic;
}

/* ── Definition lists ───────────────────────────────────────────────────────── */
dl {
  margin: 1rem 0;
}

dt {
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
}

dd {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* ── Lists ──────────────────────────────────────────────────────────────────── */
ol {
  margin: 1rem 0 1rem 1.5rem;
}

ol li {
  margin-bottom: 0.5rem;
}

ul:not(nav ul) {
  margin: 1rem 0 1rem 1.5rem;
}

ul:not(nav ul) li {
  margin-bottom: 0.5rem;
}

/* ── Tables ─────────────────────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

caption {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  text-align: left;
  margin-bottom: 0.5rem;
  color: #555555;
}

th {
  text-align: left;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem;
  border-bottom: 2px solid #111111;
}

td {
  padding: 0.5rem;
  border-bottom: 1px solid #cccccc;
  vertical-align: top;
}

/* ── Address and time ───────────────────────────────────────────────────────── */
address {
  font-style: normal;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}

time {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
}

/* ── Details / Summary (FAQ) ────────────────────────────────────────────────── */
details {
  margin-bottom: 1rem;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 1rem;
}

details:last-child {
  border-bottom: none;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.25rem 0;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+ ";
  font-family: "Courier New", Courier, monospace;
  font-weight: 400;
}

details[open] summary::before {
  content: "- ";
}

details[open] summary {
  margin-bottom: 0.75rem;
}

/* ── Forms (taste page) ─────────────────────────────────────────────────────── */
form {
  margin: 1.5rem 0;
}

label {
  display: block;
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="url"] {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  color: #111111;
  background-color: #ffffff;
  border: 2px solid #111111;
  margin-bottom: 1rem;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus {
  outline: 3px solid #111111;
  outline-offset: 1px;
}

button[type="submit"] {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  background-color: #111111;
  border: 2px solid #111111;
  cursor: pointer;
  appearance: none;
}

button[type="submit"]:hover {
  background-color: #ffffff;
  color: #111111;
}

button[type="submit"]:focus {
  outline: 3px solid #111111;
  outline-offset: 2px;
}

button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Output / results area (taste page) ─────────────────────────────────────── */
output {
  display: block;
  margin-top: 2rem;
}

/* Score display */
output p:first-child {
  font-size: 3rem;
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* ── Pricing cards ──────────────────────────────────────────────────────────── */
/* Pricing articles use the standard article border-left style.
   The price is marked up as a paragraph immediately after h3. */

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  body {
    padding: 2rem 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  nav ul {
    gap: 1rem;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.35rem;
  }
}

/* ── Print ──────────────────────────────────────────────────────────────────── */
@media print {
  nav,
  footer {
    display: none;
  }

  body {
    padding: 0;
    max-width: 100%;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8rem;
  }
}
