/* therollingcastles.com — one stylesheet, no external fonts or scripts.
   Palette after the Purple People Eater: purple with its green flames. */
:root {
  --bg: #faf7f2;
  --surface: #f1ebf6;
  --line: #ddd2e6;
  --text: #241b2f;
  --muted: #554a62;         /* 7.9:1 on --bg */
  --purple: #4b1f74;        /* links, buttons (11:1 on --bg) */
  --purple-hover: #6a2fa0;
  --green: #2f7a2a;         /* accents (5.3:1 on --bg) */
  --on-purple: #ffffff;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --max: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-hover); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .btn-row { justify-content: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--purple); color: var(--on-purple); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }

/* Header */
.site-header { background: var(--purple); color: var(--on-purple); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.brand { color: var(--on-purple); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand:hover { color: #e6d9f2; }
.site-header ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.site-header nav a { color: #e6d9f2; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #ffffff; text-decoration: underline; text-decoration-color: #7fd36f; text-decoration-thickness: 2px; }

/* Hero */
.hero { position: relative; min-height: min(70vh, 640px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 10, 30, 0) 35%, rgba(20, 10, 30, 0.72) 100%); }
.hero .wrap { width: 100%; padding-block: 48px; }
.hero .eyebrow { color: #b6f0a8; }
.hero h1 { max-width: 18ch; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--purple); color: var(--on-purple); }
.btn-primary:hover { background: var(--purple-hover); color: var(--on-purple); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section.alt { background: var(--surface); }
.about { display: grid; gap: 40px; margin-top: 24px; }
.about-item { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.about-item:nth-child(even) img { order: 2; }
.about-item img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; }
.about-item h3 { color: var(--green); }
@media (max-width: 760px) { .about-item { grid-template-columns: minmax(0, 1fr); } .about-item:nth-child(even) img { order: 0; } }

/* Trips */
.trips { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.trips li, article.trips { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: 16px 20px; }
.trips h2 { font-size: 1.15rem; margin-bottom: 4px; }
.trips p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: var(--muted); }
