/* deepcamai.com — Sunset coral
   Palette: warm coral + peach + slate blue + cream/off-white.
   Rounded sans, pill-shaped TOC, soft drop shadows, generous rounding.
   Hospitality-industry warmth. James Hollis, Adelaide.
*/

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

:root {
  /* Warm sunset palette */
  --coral: #ff6b5b;
  --coral-2: #ff8674;
  --coral-soft: #ffe4de;
  --coral-tint: #fff5f2;
  --peach: #ffb997;
  --pink: #f8a5c2;

  /* Slate accents */
  --slate: #3d4b5c;
  --slate-2: #5a6b7f;
  --slate-mute: #8a97a8;
  --slate-faint: #b8c1cc;

  /* Neutrals */
  --cream: #fdf8f4;
  --cream-2: #fbf1e9;
  --ink: #2a2438;
  --ink-2: #4a4258;
  --rule: #f0e0d5;
  --rule-2: #e5d3c5;

  --shadow-sm: 0 2px 8px rgba(255, 107, 91, 0.08);
  --shadow: 0 8px 24px rgba(61, 75, 92, 0.10);
  --shadow-lg: 0 16px 40px rgba(255, 107, 91, 0.15);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Nunito", "Avenir", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1 {
  font-size: 2.9rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  color: var(--slate);
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 3.5rem 0 1rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.01em;
  position: relative;
}
article > h2 { padding-left: 2.5rem; }
article > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 32px;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--peach));
  border-radius: 4px;
}
h2#toc-heading, .faq-h, .related h2 {
  padding-left: 0;
}
h2#toc-heading::before, .faq-h::before, .related h2::before { content: none; }
h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
  color: var(--slate);
  font-weight: 700;
}
p { margin: 0 0 1.2rem; }
strong { color: var(--slate); font-weight: 700; }
em { font-style: italic; color: var(--ink-2); }
a { color: var(--coral); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--coral-soft); transition: all 0.2s; }
a:hover { color: var(--slate); text-decoration-color: var(--coral); }

/* Layout */
.wrap { max-width: 780px; margin: 0 auto; padding: 0 28px; }
main { padding: 2.5rem 0 3rem; }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(253, 248, 244, 0.92);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  color: var(--slate);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { color: var(--coral); text-decoration: none; }
.logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--coral), var(--peach));
  border-radius: 50%;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}
nav.primary {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
nav.primary a {
  color: var(--slate-2);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s;
}
nav.primary a:hover { color: var(--slate); background: var(--coral-soft); }
nav.primary a.active { background: var(--slate); color: #fff; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--slate-mute);
  margin: 1.2rem 0 0;
}
.breadcrumbs a { color: var(--slate-2); text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { color: var(--coral); border-bottom-color: var(--coral); }
.breadcrumbs span[aria-current] { color: var(--slate); font-weight: 600; }
.breadcrumbs .sep { margin: 0 0.5rem; color: var(--slate-faint); }

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
  margin-bottom: 1.5rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 6px 14px;
  background: var(--coral-soft);
  border-radius: 999px;
}
.hero-meta {
  color: var(--slate-mute);
  font-size: 0.95rem;
  margin-top: 0.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta .sep {
  color: var(--coral);
  font-weight: 700;
}
.hero-image, .article-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0 0.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.hero-image + .caption, .article-image + .caption {
  font-size: 0.9rem;
  color: var(--slate-mute);
  margin-bottom: 2rem;
  font-style: italic;
  text-align: center;
}

/* Pill-shaped TOC — signature element */
.toc {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--cream-2), var(--coral-tint));
  border-radius: 24px;
  border: 1px solid var(--rule);
}
.toc-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 1.4rem;
  font-weight: 800;
  text-align: center;
}
.toc-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.toc-pills li { padding: 0; }
.toc-pills a {
  display: inline-block;
  padding: 9px 16px;
  background: #fff;
  color: var(--slate);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--rule-2);
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.toc-pills a:hover {
  background: var(--slate);
  color: #fff;
  border-color: var(--slate);
  transform: translateY(-1px);
}

/* FAQ */
.faq { margin: 2.5rem 0; }
.faq details {
  background: #fff;
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 12px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--slate);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--coral);
  font-weight: 400;
  flex: 0 0 auto;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; transform: rotate(0deg); }
.faq details p { margin: 1rem 0 0; color: var(--ink-2); }

/* Author bio */
.author-bio {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin: 3.5rem 0 1rem;
  padding: 1.8rem;
  background: linear-gradient(135deg, #fff, var(--coral-tint));
  border-radius: 20px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.author-bio img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}
.author-bio .who-name {
  font-weight: 800;
  color: var(--slate);
  font-size: 1.1rem;
  margin: 0 0 0.15rem;
}
.author-bio .who-role {
  font-size: 0.78rem;
  color: var(--coral);
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.author-bio .who-desc {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* RG box */
.rg {
  background: var(--coral-tint);
  padding: 1.4rem 1.6rem;
  border-radius: 16px;
  margin: 2.5rem 0 1rem;
  font-size: 0.94rem;
  color: var(--ink-2);
  border: 1px solid var(--coral-soft);
  border-left: 4px solid var(--coral);
}
.rg strong { color: var(--slate); font-weight: 700; }

/* Related cards */
.related {
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.related-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 1.4rem;
  font-weight: 800;
  text-align: center;
}
.related-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-grid li { padding: 0; }
.related-grid a {
  display: block;
  padding: 1.3rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--rule);
  color: var(--slate);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.related-grid a:hover {
  background: linear-gradient(135deg, #fff, var(--coral-tint));
  border-color: var(--coral);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.related-grid a::after {
  content: " →";
  color: var(--coral);
  margin-left: 4px;
}

/* Footer */
.site-footer {
  background: var(--slate);
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  border-radius: 40px 40px 0 0;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  font-weight: 800;
}
.site-footer p { color: #a5b1c2; font-size: 0.94rem; line-height: 1.7; margin: 0; }
.site-footer a { color: #cbd5e1; text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--peach); border-bottom-color: var(--peach); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.6rem; font-size: 0.94rem; }
.footer-disclaimer {
  max-width: 1180px;
  margin: 2.4rem auto 0;
  padding: 1.6rem 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #a5b1c2;
  line-height: 1.65;
}

/* Contact form */
.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--slate);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule-2);
  background: #fff;
  font: inherit;
  color: var(--ink);
  border-radius: 12px;
  transition: border 0.15s, box-shadow 0.15s;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--coral);
  outline: none;
  box-shadow: 0 0 0 4px var(--coral-soft);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral), var(--coral-2));
  color: #fff;
  padding: 0.9rem 2rem;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Article body */
article p, article ul, article ol { max-width: 65ch; }
article ul, article ol { margin: 0 0 1.4rem; padding-left: 1.5rem; }
article li { margin-bottom: 0.5rem; }
article li::marker { color: var(--coral); }

blockquote {
  border-left: 4px solid var(--coral);
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.6rem;
  color: var(--slate);
  font-size: 1.15rem;
  line-height: 1.55;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; margin-top: 2.8rem; }
  article > h2 { padding-left: 2rem; }
  h3 { font-size: 1.05rem; }
  .header-inner { padding: 14px 20px; }
  nav.primary { gap: 4px; width: 100%; }
  nav.primary a { font-size: 0.82rem; padding: 6px 10px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 1.5rem 0 1rem; }
  .toc { padding: 1.5rem; border-radius: 20px; }
  .related-grid { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .author-bio { flex-direction: column; align-items: flex-start; gap: 1rem; text-align: left; }
  .site-footer { border-radius: 32px 32px 0 0; }
}

/* Print */
@media print {
  .site-header, .site-footer, nav.primary, .toc, .rg, .related { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  h1, h2, h3 { color: #000; }
  h2::before { display: none; }
  article > h2 { padding-left: 0; }
  a { color: #000; text-decoration: none; }
}

/* Focus */
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
