/* Recipe Box web pages: same palette and type as the app. */
:root {
  --ink: #2B1D14;
  --cream: #FBF1E1;
  --paper: #FFFDF6;
  --tomato: #C83B23;
  --mustard: #F2B23E;
  --teal: #1F6B5E;
  --body: #4D3B2F;
  --muted: #6B5647;
  --rule: #C7DBEC;
  --margin: #EFA79B;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.6 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--tomato); font-weight: 600; }
a:hover { color: #8F2614; }

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }

.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.masthead img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.brand {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
  color: var(--tomato);
  text-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--tomato); }
.tagline {
  margin: 6px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: var(--muted);
}

nav.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
nav.tabs a {
  padding: 6px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
nav.tabs a[aria-current="page"] { background: var(--ink); color: var(--cream); }
/* Back to the Recipe Box home page, set apart from the page tabs. */
nav.tabs a.home { background: var(--mustard); margin-right: 8px; box-shadow: 2px 2px 0 var(--ink); }
nav.tabs a.home:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

/* The index card */
.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 28px 24px 32px 56px;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34px;
  width: 2px;
  background: var(--margin);
}

h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1.1;
  margin: 0 0 6px;
}
h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 6px;
}
h3 { font-size: 18px; font-weight: 700; margin: 22px 0 4px; }
p, li { color: var(--body); }
ul { padding-left: 20px; }
li { margin: 4px 0; }

.caption {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}

.summary {
  margin: 20px 0 8px;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
}
.summary ul { margin: 0; padding: 0; list-style: none; }
.summary li { padding-left: 28px; position: relative; margin: 6px 0; color: var(--ink); font-weight: 600; }
.summary li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

kbd, .say {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0 6px;
  color: var(--ink);
  white-space: nowrap;
}

details {
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: Georgia, serif; color: var(--tomato); }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 8px; }

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 14px;
  background: var(--teal);
  color: var(--paper);
}
.contact p { color: var(--paper); margin: 0; flex: 1 1 260px; }
.button {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}
.button:hover { color: var(--ink); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

footer {
  margin-top: 28px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .card { padding: 22px 18px 26px 40px; }
  .card::before { left: 24px; }
}
