/* portthings.com — same tokens and type as tulumthings.com, plus the Home shelves and guide pages. */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #0b7285;
  --card: #f5f5f4;
  --border: #e5e5e3;
  --sea: rgb(0, 115, 163);   /* HubTheme.sea in the app */
  --deep: rgb(5, 56, 102);   /* HubTheme.deep */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --text: #eeeeee;
    --muted: #9a9a9a;
    --accent: #4dc4d9;
    --card: #1d1d1d;
    --border: #2c2c2c;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --text: #eeeeee; --muted: #9a9a9a; --accent: #4dc4d9; --card: #1d1d1d; --border: #2c2c2c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}
main { max-width: 720px; margin: 0 auto; padding: 40px 24px 72px; }
h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 2.2em 0 .4em; }
h3 { font-size: 1.02rem; margin: 0 0 2px; }
a { color: var(--accent); }
img { max-width: 100%; }
.kicker { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.tagline { color: var(--muted); margin-top: 0; font-size: 1.05rem; }
.small { color: var(--muted); font-size: .9rem; }

.badge {
  display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 2px 12px;
}
.store { display: inline-block; background: var(--text); color: var(--bg); border-radius: 10px; padding: 6px 14px; font-weight: 600; text-decoration: none; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 22px 0 8px; padding: 0; list-style: none; }
.points li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }
.points b { display: block; margin-bottom: 2px; }

.buy { padding-left: 1.2em; }
.buy li { margin: 6px 0; }

/* Shelves: cover tiles, like Home in the app. */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 14px 0 0; }
.shelf a { display: block; text-decoration: none; color: var(--text); }
.cover { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 22%; overflow: hidden; background: var(--card); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.namecard {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; aspect-ratio: 1 / 1; border-radius: 22%; padding: 10px;
  background: linear-gradient(var(--sea), var(--deep)); color: #fff;
  font-weight: 800; font-size: 1.05rem; line-height: 1.2;
}
.shelf h3 { margin: 8px 2px 0; font-size: .98rem; line-height: 1.25; }
.shelf .where { display: block; margin: 0 2px; color: var(--muted); font-size: .82rem; line-height: 1.3; }

.packs { list-style: none; padding: 0; display: grid; gap: 10px; }
.packs li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.packs span { color: var(--muted); font-size: .92rem; }

/* Guide pages */
.crumbs { margin: 0 0 18px; font-size: .92rem; }
.guidehead { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.guidehead .cover, .guidehead .namecard { width: 112px; flex: none; }
.guidehead .namecard { font-size: .9rem; }
.guidehead h1 { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 20px 0; }
.facts li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: .88rem; color: var(--muted); }
.facts b { display: block; color: var(--text); font-size: 1.35rem; line-height: 1.2; }
.piers { list-style: none; padding: 0; }
.piers li { padding: 10px 0; border-top: 1px solid var(--border); }
.piers .hours { color: var(--muted); font-size: .88rem; display: block; }
.trips { list-style: none; padding: 0; }
.trips li { padding: 10px 0; border-top: 1px solid var(--border); }
.trips p { margin: 2px 0 0; color: var(--muted); font-size: .94rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.chips li { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: .86rem; }
.cta { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin: 36px 0 8px; }
.cta img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.cta h2 { margin: 0 0 6px; font-size: 1.15rem; }
.cta p { margin: 6px 0 0; font-size: .95rem; }

footer { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); margin-top: 56px; padding-top: 20px; }
footer a { color: var(--muted); }

@media (max-width: 480px) {
  main { padding: 28px 16px 64px; }
  h1 { font-size: 1.65rem; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .guidehead .cover, .guidehead .namecard { width: 88px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { flex-direction: column; }
}
