/* being outdoor — static site styles */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #1f1d1b;
  --muted: #6b6560;
  --accent: #2a8a8a;
  --accent-dark: #1e6c6c;
  --accent-light: #dfeeed;
  --border: #e5e2dd;
  --shadow: 0 4px 24px rgba(31, 29, 27, 0.06);
  --radius: 14px;
  --font: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

/* WordPress alignment classes */
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; flex-direction: column; line-height: 1.2; }

.site-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.site-title:hover { text-decoration: none; color: var(--accent); }

.tagline {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 22px;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--ink);
}

/* Cover blocks */
.wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 48px 24px;
  margin: 0 0 32px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.wp-block-cover__background {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  border-radius: inherit;
}

.wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.wp-block-cover h1,
.wp-block-cover h2 {
  color: #fff;
  margin: 0 0 12px;
  font-weight: 700;
}

.wp-block-cover p {
  color: rgba(255,255,255,0.9);
  margin: 0 auto;
  font-size: 17px;
}

/* Main content */
.site-main { min-height: 60vh; padding-bottom: 48px; }

.page-content,
.post-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.page-title,
.post-title {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.2;
}

.post-meta {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.entry-content > *:first-child,
.page-content > *:first-child { margin-top: 0; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4 {
  font-weight: 600;
  line-height: 1.3;
  margin: 40px 0 16px;
}

/* Anchor-link offset: clear sticky 76px header + small breathing room */
[id]:is(h1, h2, h3, h4) {
  scroll-margin-top: 92px;
}

.entry-content h2,
.page-content h2,
.site-main h2 { font-size: 26px; text-align: center; }

.entry-content h3,
.page-content h3,
.site-main h3 { font-size: 22px; }

.entry-content p,
.page-content p,
.site-main p { margin: 0 0 18px; }

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol { margin: 0 0 18px; padding-left: 24px; }

.entry-content li,
.page-content li { margin-bottom: 8px; }

.entry-content hr,
.page-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* WordPress alignment helpers */
.aligncenter { margin: 0 auto; text-align: center; }
.alignleft { float: left; margin: 0 18px 18px 0; }
.alignright { float: right; margin: 0 0 18px 18px; }

/* Maps — full-bleed, click-to-activate so wheel-scrolls the page */
.map-embed {
  position: relative;
  margin: 24px -40px;          /* escape .page-content 40px padding */
  width: calc(100% + 80px);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  max-width: 100%;
}
.map-embed .map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
}
.map-embed .map-overlay span {
  background: rgba(31, 29, 27, 0.85);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9em;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.map-embed:hover .map-overlay span,
.map-embed:focus-within .map-overlay span {
  opacity: 1;
}
.map-embed.active .map-overlay { display: none; }
/* On phones, the page-content padding shrinks to 24px */



/* Card grids from inline WP styles */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
  justify-content: center;
}

.wp-block-column {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
}

.wp-block-group {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

/* Inline card links in homepage/london */
a[href^="#"] img,
.entry-content a img,
.page-content a img {
  border-radius: 10px;
  transition: transform .2s ease;
}

.entry-content a:hover img,
.page-content a:hover img { transform: scale(1.02); }

/* Separator */
.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px auto;
  max-width: 200px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */

  /* Keep day-by-day / theme tiles square on all widths.
     aspect-ratio alone can be overridden by content; add min-height:0
     and explicit aspect-ratio to lock it. */
  a[style*="aspect-ratio:1/1"] {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
  }
  /* Prevent the absolute label from blowing past the tile */
  a[style*="aspect-ratio:1/1"] > span {
    max-width: 100%;
    overflow: hidden;
  }



@media (max-width: 720px) {
  .header-inner { height: auto; padding: 14px 24px; flex-wrap: wrap; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .page-content,
  .post-content { padding: 24px; }
  .page-title,
  .post-title { font-size: 28px; }
  .wp-block-cover { min-height: 260px; padding: 36px 20px; }
  .map-embed { margin: 20px -24px; width: calc(100% + 48px); }
  .map-embed iframe { height: 360px; }

  /* Drop place cards from 4-per-row to 2-per-row on phones */
  a[style*="flex:0 0 calc(25% - 9px)"] { flex: 0 0 calc(50% - 8px) !important; }
  /* Drop theme tiles (33%) from 3-per-row to 2-per-row on phones */
  a[style*="flex:0 0 calc(33.333% - 11px)"] { flex: 0 0 calc(50% - 8px) !important; }
  /* Apps I use tiles — drop to 2-per-row on phones (select via class, not inline attr) */
  .app-tile { flex: 0 0 calc(50% - 8px) !important; }
}

/* Apps I use page — headline row with app icon + heading */
.app-headline {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  margin: 32px 0 12px;
}
.app-headline .app-icon-link {
  display: inline-block;
  flex-shrink: 0;
  line-height: 0;
}
.app-headline .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(31, 29, 27, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.app-headline .app-icon-link:hover .app-icon,
.app-headline .app-icon-link:focus-visible .app-icon {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(31, 29, 27, 0.18);
}
.app-headline h2.has-icon {
  margin: 0;
  text-align: left;
  font-size: 26px;
}
@media (max-width: 480px) {
  .app-headline .app-icon { width: 52px; height: 52px; }
  .app-headline h2.has-icon { font-size: 22px; }
}

/* Apps I use page — trio layout (icon + name below, three across) */
.app-trio {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 28px;
  margin: 8px 0 22px;
  padding: 18px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.app-trio .app-trio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95em;
  gap: 8px;
  transition: transform 0.18s ease;
}
.app-trio .app-trio-item:hover,
.app-trio .app-trio-item:focus-visible {
  transform: translateY(-2px);
}
.app-trio .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(31, 29, 27, 0.10);
}
.app-trio .app-trio-name {
  line-height: 1;
}
@media (max-width: 480px) {
  .app-trio { gap: 18px; padding: 14px 8px; }
  .app-trio .app-icon { width: 56px; height: 56px; }
  .app-trio .app-trio-name { font-size: 0.85em; }
}

/* Apps I use tiles — flex column layout */
.app-tile {
  flex: 0 0 calc(25% - 9px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
  /* override the earlier app-headline / .app-tile:focus-visible block */
}
.app-tile .app-tile-name {
  flex: 0 0 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1f1d1b;
  font-weight: 700;
  font-size: .9em;
  line-height: 1.1;
  padding: 4px 6px 0;
}
.app-tile .app-tile-icon {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  min-height: 0;
}
.app-tile .app-tile-icon img {
  max-width: 70%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.app-tile .app-tile-blurb {
  flex: 0 0 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b6560;
  font-size: .8em;
  line-height: 1.15;
  padding: 0 6px 4px;
}
.app-tile-placeholder .app-tile-icon {
  color: #ffffff;
  font-weight: 700;
  font-size: 1em;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  line-height: 1.2;
}
.app-tile:hover, .app-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 29, 27, 0.10);
}
@media (max-width: 480px) {
  .app-tile .app-tile-name { font-size: .82em; }
  .app-tile .app-tile-blurb { font-size: .72em; }
}
