/*
Theme Name:   Hawaii Bulletin Child
Template:     generatepress
Version:      1.0.0
Description:  Child theme for hawaiibulletin.com (GeneratePress). Design tokens, post template parts, self-hosted fonts.
Text Domain:  hawaiibulletin-child
License:      GPL-2.0-or-later
*/

/* Newsreader (SIL OFL 1.1, see fonts/OFL.txt), self-hosted variable font, latin + latin-ext (ʻokina, kahakō) */
@font-face{font-family:"Newsreader";src:url("fonts/newsreader-latin.woff2") format("woff2");font-weight:500 650;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Newsreader";src:url("fonts/newsreader-latin-ext.woff2") format("woff2");font-weight:500 650;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --hb-ink:#12343B; --hb-teal:#0F766E; --hb-teal-dark:#0B5B55;
  --hb-lava:#B4341F; --hb-lava-dark:#8F2A19;
  --hb-sand:#FBF7F0; --hb-sand-2:#F3EADB; --hb-line:#E6DAC6;
  --hb-muted:#5B6B6E; --hb-deep:#0B2A30; --hb-teal-light:#5EEAD4; --hb-card:#FFFFFF;
  --hb-font-head:"Newsreader",Georgia,"Times New Roman",serif;
  --hb-font-body:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --hb-radius:10px; --hb-measure:68ch;
}

/* Base */
body{background:var(--hb-sand);color:var(--hb-ink);font-family:var(--hb-font-body);font-size:18px;line-height:1.65}
@media (min-width:1024px){body{font-size:19px}}
h1,h2,h3,h4,.site-title,.main-title{font-family:var(--hb-font-head);color:var(--hb-ink);font-weight:650;line-height:1.2}
h1{font-size:clamp(32px,4.6vw,44px);line-height:1.15}
h2{font-size:clamp(26px,3vw,32px);line-height:1.25}
h3{font-size:clamp(21px,2.2vw,24px);line-height:1.3}
a{color:var(--hb-teal);text-underline-offset:.15em}
a:hover,a:focus{color:var(--hb-teal-dark)}
:focus-visible{outline:3px solid var(--hb-teal);outline-offset:2px}
img{height:auto}
.skip-link.screen-reader-text:focus{background:#fff;color:var(--hb-ink)}

/* Layout */
.site-header,.inside-navigation,.main-navigation{background:#fff}
.site-header{border-bottom:1px solid var(--hb-line)}
.main-title a{color:var(--hb-ink);text-decoration:none}
.site-description{color:var(--hb-muted);font-size:14px}
.main-navigation .main-nav ul li a{font-weight:600;font-size:16px;color:var(--hb-teal)}
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a{color:var(--hb-teal-dark);box-shadow:inset 0 -3px 0 var(--hb-teal)}
.main-navigation .main-nav ul li.hb-menu-tools > a{color:var(--hb-lava)}
.menu-toggle{min-height:48px;font-weight:600}
.separate-containers .inside-article,.one-container .container,.separate-containers .comments-area,.separate-containers .page-header,.separate-containers .paging-navigation,.inside-page-header{background:transparent}
.single .entry-content,.page .entry-content{max-width:var(--hb-measure)}
.single .inside-article,.page .inside-article{max-width:768px;margin-left:auto;margin-right:auto}
.entry-meta,.hb-meta{color:var(--hb-muted);font-size:15px}
.site-footer,.site-info{background:var(--hb-deep);color:var(--hb-sand-2)}
.site-footer a,.site-info a{color:var(--hb-teal-light)}

/* Buttons */
.button,button,input[type=submit],.wp-block-button__link{background:var(--hb-teal);color:#fff;border-radius:var(--hb-radius);min-height:48px;padding:12px 22px;font-weight:600}
.button:hover,button:hover,input[type=submit]:hover,.wp-block-button__link:hover{background:var(--hb-teal-dark);color:#fff}
.hb-cta,.hb-cta:visited{display:inline-flex;align-items:center;background:var(--hb-lava);color:#fff;border-radius:var(--hb-radius);min-height:48px;padding:12px 22px;font-weight:600;text-decoration:none}
.hb-cta:hover{background:var(--hb-lava-dark);color:#fff}

/* Breadcrumbs */
.hb-breadcrumbs{font-size:15px;color:var(--hb-muted);margin-bottom:12px}

/* Quick facts */
.hb-quickfacts{background:var(--hb-sand-2);border-radius:var(--hb-radius);padding:24px;margin:24px 0}
.hb-quickfacts h2{font-size:22px;margin:0 0 12px}
.hb-quickfacts dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px 24px;margin:0}
.hb-quickfacts dt{font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--hb-muted)}
.hb-quickfacts dd{margin:0;font-size:17px;line-height:1.5}
.hb-quickfacts .hb-verified{margin:14px 0 0;font-size:15px;color:var(--hb-muted)}
.hb-verify{color:var(--hb-lava);font-weight:700}

/* TOC */
.hb-toc{background:#fff;border:1px solid var(--hb-line);border-radius:var(--hb-radius);padding:14px 22px;margin:24px 0}
.hb-toc summary{cursor:pointer;font-weight:700;min-height:32px}
.hb-toc ol{margin:10px 0 4px 1.2em;padding:0}
.hb-toc li{margin:4px 0;font-size:17px}

/* Callouts and FAQ */
.hb-callout{background:#fff;border:1px solid var(--hb-line);border-radius:var(--hb-radius);padding:20px 24px;margin:24px 0}
.hb-placeholder{border:1px dashed var(--hb-lava);border-radius:var(--hb-radius);padding:12px 16px}

/* Author box */
.hb-author{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start;border-top:1px solid var(--hb-line);padding-top:24px;margin-top:40px}
.hb-author img{border-radius:50%;width:88px;height:88px;object-fit:cover}
.hb-author-name{font-weight:700;font-size:18px;margin:0}
.hb-author p{margin:4px 0;font-size:16px}

/* Related */
.hb-related{margin-top:40px}
.hb-related h2{font-size:26px}
.hb-related ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px}
.hb-related li a{display:block;background:#fff;border:1px solid var(--hb-line);border-radius:var(--hb-radius);padding:18px;font-weight:600;text-decoration:none;color:var(--hb-ink);line-height:1.4;height:100%;box-sizing:border-box}
.hb-related li a:hover{border-color:var(--hb-teal)}

/* Cards (archives, home) */
.hb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:20px}
.hb-card{background:#fff;border:1px solid var(--hb-line);border-radius:var(--hb-radius);padding:20px;text-decoration:none;color:var(--hb-ink);display:flex;flex-direction:column;gap:6px;box-shadow:0 1px 2px rgb(18 52 59 / .08)}
.hb-card strong{font-family:var(--hb-font-head);font-size:22px;line-height:1.2}
.hb-card span{color:var(--hb-muted);font-size:15px;line-height:1.5}

/* Tables */
.entry-content table{display:block;overflow-x:auto;border-collapse:collapse}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
