/* Paper Harbor Builder landing — papercraft harbour. Prefix phb_*__3d8f. Fonts: Sniglet + Figtree (SIL OFL, self-hosted). */
@font-face { font-family: "Sniglet"; src: url("/assets/fonts/Sniglet-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/Figtree-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/Figtree-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --ink: #263B45; --sea-deep: #3E8A98; --sea: #7FC6C3; --sea-light: #C3E6DC; --paper: #F5ECD7; --paper-white: #FCF8EE;
  --kraft: #CDA170; --kraft-dark: #956A42; --terracotta: #C65A3B; --coral: #F0836D; --mustard: #E4B33E; --meadow: #A9CB7A; --leaf: #6E9F52;
  --shadow: 0 6px 0 rgba(38, 59, 69, .08), 0 14px 28px rgba(38, 59, 69, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body.phb_body__3d8f { margin: 0; font: 600 17px/1.6 "Figtree", system-ui, sans-serif; color: var(--ink); background: var(--sea); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--sea-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }
code { background: rgba(38, 59, 69, .08); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

.phb_skip__3d8f { position: absolute; left: -999px; top: 8px; background: var(--paper-white); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.phb_skip__3d8f:focus { left: 8px; }
.phb_wrap__3d8f { width: min(1140px, 100% - 32px); margin: 0 auto; }

/* top bar: a strip of paper pinned on the sea */
.phb_top__3d8f { position: sticky; top: 0; z-index: 20; background: var(--paper-white); box-shadow: 0 3px 0 rgba(38, 59, 69, .08), 0 8px 18px rgba(38, 59, 69, .1); }
.phb_toprow__3d8f { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.phb_brand__3d8f { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 21px "Sniglet", sans-serif; }
.phb_brand__3d8f img { border-radius: 12px; }
.phb_nav__3d8f { display: flex; gap: 4px; flex-wrap: wrap; }
.phb_nav__3d8f a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 15px; }
.phb_nav__3d8f a:hover { background: var(--sea-light); }
.phb_nav__3d8f a.phb_on__3d8f { background: var(--terracotta); color: var(--paper-white); }

/* hero on the sea */
.phb_hero__3d8f { position: relative; background: var(--sea) url("/assets/images/sea_bg.jpg") center/cover no-repeat; padding: 40px 0 96px; }
.phb_herogrid__3d8f { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.phb_herotext__3d8f { background: var(--paper-white); border-radius: 26px; padding: 28px 32px 30px; box-shadow: var(--shadow); position: relative; }
.phb_herotext__3d8f::before, .phb_note__3d8f::before { content: ""; position: absolute; top: -14px; left: 34px; width: 96px; height: 34px; background: url("/assets/images/tape.png") center/contain no-repeat; transform: rotate(-6deg); }
.phb_logo__3d8f { width: min(440px, 100%); display: block; margin: 0 0 6px -6px; }
.phb_h1__3d8f { font: 800 clamp(28px, 4.2vw, 44px)/1.12 "Sniglet", sans-serif; margin: 6px 0 12px; }
.phb_lead__3d8f { font-size: 19px; margin: 0 0 20px; }
.phb_ctarow__3d8f { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.phb_btn__3d8f { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 26px; border-radius: 18px; border: 0;
  background: var(--terracotta); color: var(--paper-white); font: 800 18px "Sniglet", sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 #8f3d26, 0 10px 18px rgba(38, 59, 69, .2); transition: transform .08s, box-shadow .08s; }
.phb_btn__3d8f:hover { transform: translateY(-1px); }
.phb_btn__3d8f:active { transform: translateY(4px); box-shadow: 0 1px 0 #8f3d26; }
.phb_btnsea__3d8f { background: var(--sea-deep); box-shadow: 0 5px 0 #2a6470, 0 10px 18px rgba(38, 59, 69, .2); }
.phb_btnoff__3d8f { background: #c9c4b8; color: #5c6a70; box-shadow: 0 5px 0 #a39e92; cursor: default; font-size: 16px; }
.phb_btnoff__3d8f:hover, .phb_btnoff__3d8f:active { transform: none; box-shadow: 0 5px 0 #a39e92; }
.phb_chips__3d8f { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.phb_chips__3d8f li { background: var(--sea-light); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 800; }

/* pinned screenshots */
.phb_pinned__3d8f { margin: 0; position: relative; background: var(--paper-white); padding: 12px 12px 8px; border-radius: 24px; box-shadow: var(--shadow); justify-self: center; max-width: 360px; }
.phb_pinned__3d8f::before { content: ""; position: absolute; top: -16px; left: 50%; width: 110px; height: 38px; margin-left: -55px; background: url("/assets/images/tape.png") center/contain no-repeat; }
.phb_pinned__3d8f img { display: block; border-radius: 16px; }
.phb_pinned__3d8f figcaption { text-align: center; font-size: 14px; color: var(--kraft-dark); padding: 8px 4px 2px; font-weight: 800; }
.phb_tilt__3d8f { transform: rotate(2.2deg); }
.phb_tiltr__3d8f { transform: rotate(-2deg); }
.phb_small__3d8f.phb_pinned__3d8f { max-width: 320px; }

/* torn wave between the sea and paper */
.phb_wave__3d8f { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34 C 80 10 160 52 260 30 S 440 8 540 32 S 720 54 820 28 S 1010 6 1100 30 S 1170 44 1200 36 V60 H0Z' fill='%23F5ECD7'/%3E%3C/svg%3E") center/100% 100% no-repeat; }

.phb_section__3d8f { padding: 64px 0; position: relative; }
.phb_paper__3d8f { background: var(--paper); }
.phb_sea__3d8f { background: var(--sea-light); }
.phb_kicker__3d8f { font: 800 15px "Figtree", sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--terracotta); margin: 0 0 4px; }
.phb_h2__3d8f { font: 800 clamp(26px, 3.4vw, 38px)/1.15 "Sniglet", sans-serif; margin: 0 0 24px; }

/* the "hand" of cards */
.phb_hand__3d8f { list-style: none; padding: 18px 16px 22px; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--kraft); border-radius: 22px; box-shadow: inset 0 6px 0 rgba(255, 255, 255, .18); }
.phb_card__3d8f { background: var(--paper-white); border-radius: 18px; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 5px 0 rgba(149, 106, 66, .5); transition: transform .15s; }
.phb_card__3d8f:hover { transform: translateY(-6px) rotate(-1deg); }
.phb_card__3d8f img { height: 120px; width: auto; object-fit: contain; align-self: center; }
.phb_card__3d8f b { font: 800 18px "Sniglet", sans-serif; }
.phb_card__3d8f span { font-size: 15px; }

.phb_split__3d8f { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: center; }
.phb_rev__3d8f { grid-template-columns: 1fr 340px; }
.phb_note__3d8f { position: relative; background: var(--paper-white); border-radius: 24px; padding: 28px 28px 22px; box-shadow: var(--shadow); }
.phb_note__3d8f h3 { font: 800 24px "Sniglet", sans-serif; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.phb_kraft__3d8f { background: #f0dcc0; }
.phb_rules__3d8f { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.phb_rules__3d8f li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.phb_faces__3d8f { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.phb_faces__3d8f img { width: 86px; background: var(--sea-light); border-radius: 50% 50% 16px 16px; padding: 6px 4px 0; }

.phb_isles__3d8f { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.phb_isles__3d8f article { background: var(--paper-white); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); text-align: center; }
.phb_isles__3d8f img { width: 170px; }
.phb_isles__3d8f h3 { font: 800 21px "Sniglet", sans-serif; margin: 6px 0; }
.phb_isles__3d8f p { margin: 0; font-size: 15px; text-align: left; }
.phb_gallery__3d8f { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 4px 12px; }
.phb_gallery__3d8f figure { margin: 0; scroll-snap-align: start; background: var(--paper-white); border-radius: 18px; padding: 8px 8px 4px; box-shadow: var(--shadow); }
.phb_gallery__3d8f figure:nth-child(odd) { transform: rotate(-1.2deg); }
.phb_gallery__3d8f figure:nth-child(even) { transform: rotate(1.2deg); }
.phb_gallery__3d8f img { border-radius: 12px; display: block; }
.phb_gallery__3d8f figcaption { text-align: center; font-weight: 800; color: var(--kraft-dark); font-size: 14px; padding: 6px 0; }

.phb_coins__3d8f ul { margin: 0; padding-left: 20px; }
.phb_coins__3d8f li { margin-bottom: 6px; }
.phb_facts__3d8f { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.phb_facts__3d8f div { background: var(--paper-white); border: 3px dashed var(--kraft); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; }
.phb_facts__3d8f b { font: 800 19px "Sniglet", sans-serif; }

.phb_small__3d8f { font-size: 14px; color: #4f646c; }
.phb_center__3d8f { text-align: center; }

/* documents */
.phb_doc__3d8f { max-width: 780px; background: var(--paper-white); border-radius: 24px; padding: 32px clamp(18px, 4vw, 44px); box-shadow: var(--shadow); }
.phb_doc__3d8f h2 { font: 800 22px "Sniglet", sans-serif; margin: 28px 0 6px; }
.phb_meta__3d8f { color: #4f646c; font-size: 15px; }
.phb_tip__3d8f { background: var(--sea-light); border-radius: 14px; padding: 12px 16px; }
.phb_ok__3d8f { background: #dcefd7; border-radius: 14px; padding: 12px 16px; }
.phb_err__3d8f { background: #f7d6cf; border-radius: 14px; padding: 12px 16px; }
.phb_form__3d8f { display: grid; gap: 14px; margin-top: 18px; }
.phb_form__3d8f label { display: grid; gap: 6px; font-weight: 800; }
.phb_form__3d8f input, .phb_form__3d8f textarea { font: 600 17px "Figtree", sans-serif; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--kraft); background: #fffdf7; color: var(--ink); }
.phb_form__3d8f button { justify-self: start; }

/* kraft footer = the tile tray */
.phb_foot__3d8f { background: var(--kraft); color: var(--ink); padding: 40px 0 26px; border-top: 6px solid var(--kraft-dark); }
.phb_footgrid__3d8f { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 26px; }
.phb_footgrid__3d8f p { margin: 0 0 6px; }
.phb_footgrid__3d8f a { color: var(--ink); font-weight: 800; }
.phb_footname__3d8f { font: 800 22px "Sniglet", sans-serif; }
.phb_foothead__3d8f { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: #5d3f22; }
.phb_copy__3d8f { margin-top: 22px; font-size: 13px; color: #5d3f22; }

.phb_herogrid__3d8f > *, .phb_split__3d8f > *, .phb_hand__3d8f > *, .phb_isles__3d8f > *, .phb_facts__3d8f > *, .phb_footgrid__3d8f > * { min-width: 0; }
.phb_h1__3d8f, .phb_h2__3d8f { overflow-wrap: break-word; }
@media (max-width: 900px) {
  .phb_herogrid__3d8f, .phb_split__3d8f, .phb_rev__3d8f { grid-template-columns: minmax(0, 1fr); }
  .phb_hand__3d8f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phb_isles__3d8f { grid-template-columns: minmax(0, 1fr); }
  .phb_facts__3d8f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phb_footgrid__3d8f { grid-template-columns: minmax(0, 1fr); }
  .phb_pinned__3d8f { max-width: 300px; }
}
@media (max-width: 520px) {
  body.phb_body__3d8f { font-size: 16px; }
  .phb_hand__3d8f { grid-template-columns: minmax(0, 1fr); }
  .phb_facts__3d8f { grid-template-columns: minmax(0, 1fr); }
  .phb_h1__3d8f { font-size: 27px; }
  .phb_logo__3d8f { width: 100%; margin-left: 0; }
  .phb_herotext__3d8f, .phb_note__3d8f { padding: 22px 18px 18px; }
  .phb_brand__3d8f span { font-size: 18px; }
  .phb_nav__3d8f a { padding: 6px 9px; font-size: 14px; }
}
