:root {
  /* Design G: white + turquoise + orange, dark violet text */
  --paper: #FFFFFF;
  --paper-2: #EAF7FB;
  --card: #FFFFFF;
  --ink: #2B1A5E;          /* dark violet text */
  --ink-2: #5A5275;        /* soft violet-grey */
  --line: #D4E9F0;
  --line-2: #B7D9E4;
  --dark: #0B5670;         /* deep turquoise: active menu, premium boxes */
  --dark-2: #084459;
  --on-dark: #CBE7F0;
  --sky: #5CC8E4;          /* bright turquoise: video areas */
  --sky-2: #CDEBF4;
  --accent: #F7931E;       /* orange: buttons people click */
  --accent-2: #F57C00;
  --accent-ink: #B85A00;   /* orange for small text and links */
  --peach: #FFF4E6;
  --radius: 14px;
  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.2; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--ink-2); }

/* Logo: "Monke" + pen-nib Y + "Pen" */
.brand { color: var(--ink); text-decoration: none; display: inline-block; }
.logo-img { display: block; height: auto; width: 100%; max-width: 224px; }

/* "Powered by HMH" under the logo, with a small, quiet animation */
.brand-block { display: flex; flex-direction: column; }
.powered { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; animation: mp-in .8s ease-out .3s both; }
.powered-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); display: inline-block; animation: mp-pulse 2.2s ease-in-out infinite; }
.powered-hmh { font-weight: 700; color: var(--ink); position: relative; }
.powered-hmh::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; animation: mp-line 3.2s ease-in-out 1s infinite; }
@keyframes mp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes mp-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: .45; } }
@keyframes mp-line { 0% { transform: scaleX(0); } 35%, 75% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .powered, .powered-dot, .powered-hmh::after { animation: none; } .powered-hmh::after { transform: none; } }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 272px; flex-shrink: 0; background: var(--paper-2); border-right: 1px solid var(--line); padding: 32px 24px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.tagline { margin: -10px 0 0; font-family: var(--display); font-size: 17px; font-weight: 500; color: var(--ink); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--line); }
.nav a[aria-current="page"] { background: var(--dark); color: #fff; font-weight: 600; }
.premium-box { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.premium-box p { margin: 0; font-size: 14px; color: var(--on-dark); }
.premium-box .premium-title { font-family: var(--display); font-size: 20px; color: #fff; }
.auth { display: flex; gap: 8px; flex-wrap: wrap; }
.auth > * { flex: 1 1 auto; }
.auth form { display: flex; }
.auth form .btn { width: 100%; }
.legal { font-size: 13px; color: var(--ink-2); margin: 0; }
.legal a { color: var(--ink-2); }
.topbar { display: none; }
.main { flex: 1; min-width: 0; padding: 40px 48px 64px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font: 600 14px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-accent { background: var(--accent); color: var(--ink); font-weight: 700; }
.btn-accent:hover { background: var(--accent-2); color: var(--ink); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }

/* Feed page */
.feed-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(260px, 1fr); gap: 40px; align-items: start; }
.hero { margin-bottom: 20px; }
.hero h1 { font-weight: 700; font-size: clamp(32px, 4vw, 44px); }
.hero p { margin: 6px 0 0; color: var(--ink-2); }
.hero .hero-tagline { display: none; margin: 0 0 6px; font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--accent-ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { background: var(--card); padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { background: var(--paper-2); color: var(--ink); }
.chip.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }
.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card-lead { grid-column: 1 / -1; }
.card-premium { background: var(--dark); border-color: var(--dark); }
.card-premium h2 { color: #fff; }
.card-premium .card-body p:not(.kicker) { color: var(--on-dark); }
.card-premium .kicker { color: #FDB863 !important; }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--sky); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 10px rgba(43, 26, 94, 0.25); }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 16px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.card-body h2 { font-size: 20px; }
.card-lead .card-body h2 { font-size: 26px; }
.card-body p { margin: 0; font-size: 15px; color: var(--ink-2); }
.kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.kicker svg { display: inline-block; vertical-align: -2px; margin-right: 4px; flex-shrink: 0; }
.load-more { grid-column: 1 / -1; justify-self: center; }
.empty { color: var(--ink-2); }

.side-col { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.panel h2 { font-size: 21px; }
.panel p { margin: 0; }
.panel-dashed { background: var(--peach); border-color: var(--peach); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.panel-head a { font-size: 14px; }
.with-icon { display: flex; align-items: center; gap: 10px; }
.mini-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-project { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.mini-project img, .mini-project .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--sky-2); }
.mini-project:nth-child(4n+2) .ph, .mini-project:nth-child(4n+3) .ph { background: #FFE3C2; }

/* Article */
.article { max-width: 720px; }
.article h1 { font-weight: 700; font-size: clamp(30px, 4vw, 42px); margin: 8px 0 12px; }
.lede { font-size: 19px; color: var(--ink-2); margin: 0 0 24px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 24px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-img { border-radius: var(--radius); margin-bottom: 24px; }
.prose p { margin: 0 0 1em; }
.prose h2 { margin: 1.4em 0 0.4em; font-size: 22px; }
.download { margin-top: 8px; }
.paywall { background: var(--dark); color: #fff; border-radius: 18px; padding: 40px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.paywall h2 { font-size: 26px; }
.paywall p { margin: 0; color: var(--on-dark); max-width: 420px; }
.paywall .btn-ghost { background: transparent; color: #fff; border-color: #5B93A6; }
.paywall .btn-ghost:hover { background: var(--dark-2); color: #fff; }
.paywall-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.back { margin-top: 40px; }

/* Projects */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.project { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.project img, .project .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sky-2); }
.project-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.project-body h2 { font-size: 20px; }
.project-body p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Booking, premium, forms */
.cal-embed { width: 100%; min-height: 640px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: auto; }
.pricing { max-width: 440px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.price { font-family: var(--display); font-size: 38px; font-weight: 700; margin: 0; }
.ticks { margin: 0; padding-left: 20px; }
.notice { background: var(--peach); border: 1px solid #F3CFA0; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }
.form-page { max-width: 420px; }
.form-page h1 { font-size: 36px; font-weight: 700; margin-bottom: 20px; }
.form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form label { font-size: 14px; font-weight: 500; margin-top: 8px; }
.form input, .form select, .form textarea { font: 16px var(--body); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); min-height: 44px; }
.form .helptext, .form ul { font-size: 13px; color: var(--ink-2); }
.form .btn { margin-top: 16px; }
.error { color: #B91C1C; font-size: 14px; margin: 2px 0; }
.form textarea { resize: vertical; line-height: 1.5; }

/* Feedback */
.fb { max-width: 720px; }
.fb-compose { margin-bottom: 28px; }
.fb-form { margin-bottom: 0; }
.fb-note { font-size: 13px; }
.fb-auth { display: flex; gap: 8px; flex-wrap: wrap; }
.counter { font-size: 13px; color: var(--ink-2); margin: 0; text-align: right; }
.counter.is-low { color: var(--accent-ink); font-weight: 600; }
.fb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fb-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.fb-item:target { border-color: var(--accent); }
.fb-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.fb-author { font-weight: 600; color: var(--ink); }
.fb-topic { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.fb-topic-website { background: #E0E7FF; color: #1E3A8A; }
.fb-topic-booking { background: #DCFCE7; color: #166534; }
.fb-topic-payment { background: #FFEDD5; color: #9A3412; }
.fb-text { margin: 0; overflow-wrap: anywhere; }
.fb-reply { background: var(--paper-2); border-left: 3px solid var(--dark); border-radius: 0 10px 10px 0; padding: 12px 16px; }
.fb-reply p { margin: 0; overflow-wrap: anywhere; }
.fb-reply-head { font-size: 13px; font-weight: 600; margin-bottom: 4px !important; }
.fb-reply-head time { font-weight: 400; color: var(--ink-2); }
.fb-owner summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent-ink); min-height: 32px; display: flex; align-items: center; }
.fb-owner .form { margin: 8px 0 0; }
.fb-owner .btn { margin-top: 4px; }
.fb-actions { display: flex; justify-content: flex-end; }
.fb-delete { margin: 0; align-self: flex-end; }
.link-btn { background: none; border: 0; padding: 6px 0; font: 13px var(--body); color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: #B91C1C; }
.fb-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }

/* Tablet */
@media (max-width: 1100px) {
  .feed-layout { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 820px) {
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
  .topbar .logo-img { max-width: 168px; }
  .topbar .powered { font-size: 11px; margin-top: 6px; }
  .menu-btn { background: var(--dark); border: 0; border-radius: 12px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; cursor: pointer; flex-shrink: 0; }
  .layout { display: block; }
  .sidebar { display: none; position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .sidebar.is-open { display: flex; }
  .brand-side, .sidebar .powered { display: none; }
  .tagline { margin: 0; color: var(--accent-ink); font-size: 15px; }
  .hero .hero-tagline { display: block; }
  .premium-box { margin-top: 0; }
  .main { padding: 24px 16px 48px; }
  .feed { grid-template-columns: minmax(0, 1fr); }
  .side-col { grid-template-columns: minmax(0, 1fr); }
  .paywall { padding: 32px 20px; }
}

/* Auth forms */
.form .helptext { margin: 0 0 2px; }
.form .inline-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; margin: 4px 0 0; cursor: pointer; }
.form .inline-check input { min-height: 0; width: 18px; height: 18px; padding: 0; accent-color: var(--ink); }
