:root{
  --bg: #f7f7f9;
  --card: #ffffff;
  --text: #0f1724;
  --muted: #6b7280;
  --accent: #0ea5a4;
  --container-width: 1100px;
}

/* Simple reset */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}

.container{max-width:var(--container-width);margin:0 auto;padding:0 1rem}
.header-inner,.footer-inner{display:flex;align-items:center;justify-content:space-between;padding:0.75rem 0}

.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:static;left:0;top:0;width:auto;height:auto;padding:0.5rem;background:#111;color:#fff}

.site-header{background:var(--card);border-bottom:1px solid #e6e9ef}
.logo{font-weight:700;color:var(--text);text-decoration:none}

.site-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1rem}
.site-nav a{text-decoration:none;color:var(--text);padding:0.5rem;border-radius:4px}
.site-nav a:hover{background:#f1f5f9}

.nav-toggle{display:none;background:none;border:1px solid #e2e8f0;padding:0.4rem 0.6rem;border-radius:4px}

.hero{padding:3.5rem 0;background:linear-gradient(180deg, rgba(14,165,164,0.06), transparent)}
.hero h1{margin:0 0 0.5rem;font-size:clamp(1.6rem, 3vw, 2.25rem)}
.btn{display:inline-block;background:var(--accent);color:#fff;padding:0.5rem 0.9rem;border-radius:6px;text-decoration:none}

.content{padding:2rem 0}
.site-footer{padding:1rem 0;border-top:1px solid #e6e9ef;background:transparent}

/* Responsive */
@media (max-width:800px){
  .site-nav{display:none}
  .nav-toggle{display:inline-block}
  .site-nav[aria-hidden="false"]{display:block}
  .site-nav ul{flex-direction:column;gap:0}
  .site-nav a{display:block;padding:0.75rem 0}
}

@media (prefers-reduced-motion: no-preference){
  .btn{transition:transform .12s ease, box-shadow .12s}
  .btn:active{transform:translateY(1px)}
}

/* small utilities */
.muted{color:var(--muted)}
h3 + .muted{margin-top:0.125rem;margin-bottom:0.5rem}
.places-text h3,.card-body h3{margin-top:0;margin-bottom:0.125rem}

/* Sections & cards */
.section-header h2{margin:0 0 0.25rem}
.section-header .muted{margin:0}
.section-grid{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem}
.card{background:var(--card);padding:1rem;border-radius:8px;border:1px solid #eef2f7}

/* Card preview (thumbnail + text) */
.card-preview{display:flex;gap:0.75rem;align-items:flex-start;flex-direction:row-reverse}
.card-thumb{width:200px;height:200px;object-fit:cover;border-radius:6px;flex-shrink:0}
.card-body{flex:1}
.card-body h3{margin:0 0 0.25rem}
@media (max-width:700px){
  .card-preview{flex-direction:column}
  .card-thumb{width:100%;height:auto}
}
/* Places: static two-column items */
.places-list{display:flex;flex-direction:column;gap:1rem;margin-top:1rem}
.places-item{display:grid;grid-template-columns:1fr 380px;gap:1rem;align-items:start;padding:1rem;border-radius:8px;border:1px solid #eef2f7;background:var(--card)}
.places-photos figure{margin:0 0 0.75rem}
.places-photos img{width:100%;height:auto;display:block;border-radius:6px}
.places-photos figcaption{font-size:0.85rem;margin-top:0.25rem;color:var(--muted)}

/* Place gallery (carousel) */
.place-gallery{position:relative;overflow:hidden;border-radius:6px}
.place-gallery .gallery-track{display:flex;touch-action:pan-y}
.gallery-slide{min-width:100%;flex:0 0 100%;display:none}
.gallery-slide.active{display:block}
.place-gallery .gallery-slide img{width:100%;height:auto;display:block;border-radius:6px}
.place-gallery .gallery-prev,.place-gallery .gallery-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,0.95);border:1px solid #e6e9ef;padding:0.35rem 0.6rem;border-radius:6px;cursor:pointer}
.place-gallery .gallery-prev{left:0.5rem}
.place-gallery .gallery-next{right:0.5rem}
.gallery-dots{display:flex;gap:0.4rem;justify-content:center;margin-top:0.5rem;margin-bottom:0}
.gallery-dot{width:10px;height:10px;border-radius:50%;border:1px solid rgba(15,23,36,0.12);background:rgba(255,255,255,0.95);padding:0}
.gallery-dot[aria-pressed="true"]{background:var(--accent);border-color:var(--accent)}

/* ensure slides are positioned to contain inline dots */
.gallery-slide{position:relative;padding-bottom:0}

@media (max-width:900px){
  .places-item{grid-template-columns:1fr}
  .places-photos{order:2}
}

/* Gallery inside expanded content */
.expanded-content .gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:0.5rem;margin-top:0.75rem}
.expanded-content .gallery img{width:100%;height:auto;display:block;border-radius:6px}
.expanded-content .gallery figcaption{font-size:0.85rem;margin-top:0.25rem}
@media (max-width:700px){
  .expanded-content .gallery{grid-template-columns:repeat(1,1fr)}
}

/* Inline figures for projects */
.expanded-content .inline-figure{margin:0.75rem 0}
.expanded-content .inline-figure img{width:100%;height:auto;display:block;border-radius:6px;margin:0}
.expanded-content .inline-figure figcaption{font-size:0.85rem;margin-top:0.25rem;color:var(--muted)}

/* Responsive sizing for inline images: full width on small screens,
   constrained on larger viewports for better readability */
@media (min-width:700px){
  .expanded-content .inline-figure img{max-width:85%}
}
@media (min-width:1000px){
  .expanded-content .inline-figure img{max-width:70%}
}

/* Inline expansion styles */
.read-more{background:none;border:1px solid var(--accent);color:var(--accent);padding:0.35rem 0.6rem;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:1.8rem;height:1.8rem;transition:transform .28s ease}
.read-more[aria-expanded="true"]{transform:rotate(180deg)}
.read-more:focus{outline:2px solid rgba(14,165,164,0.2);outline-offset:2px}
.close-expanded{background:none;border:1px solid var(--accent);color:var(--accent);padding:0.35rem 0.6rem;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:1.8rem;height:1.8rem}
.close-expanded:focus{outline:2px solid rgba(14,165,164,0.2);outline-offset:2px}
.expanded-content{max-height:0;overflow:hidden;transition:max-height .28s ease;padding:0;margin-top:0}
.expanded-content.open{padding:0.75rem 0 0.5rem}

/* Prose defaults for richer body content */
.prose p{margin:0.5rem 0}
.prose a{color:var(--accent);text-decoration:underline}
.prose a:hover{text-decoration:none}

/* Highlighted external link / callout box */
.callout{background:#f1f5f9;border:1px solid #e2e8f0;padding:0.6rem 0.75rem;border-radius:8px;margin:0.75rem 0}
.callout a{display:flex;align-items:center;gap:0.5rem;color:var(--text);text-decoration:none}
.callout a:hover{color:var(--accent)}
.callout .muted{margin:0}


