/*
Theme Name:   HII — Tim Hildred
Theme URI:    https://timhildred.com
Description:  Child theme of Independent Publisher 2 that applies the Hildred International Industries (HII) visual identity: paper #FDFCF9, ink #2C2A27, Newsreader for reading, Courier Prime as the institutional voice. Layout untouched.
Author:       Tim Hildred
Template:     independent-publisher-2-wpcom
Version:      0.1.0
License:      GNU General Public License v2 or later
Text Domain:  hii-timhildred
*/
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader__italic__200-800__latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader__italic__200-800__latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  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("assets/fonts/newsreader__normal__200-800__latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader__normal__200-800__latin.woff2") format("woff2");
  font-weight: 200 800;
  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: "Courier Prime";
  src: url("assets/fonts/courier-prime__italic__400__latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime__italic__400__latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  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: "Courier Prime";
  src: url("assets/fonts/courier-prime__normal__400__latin-ext.woff2") format("woff2");
  font-weight: 400;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime__normal__400__latin.woff2") format("woff2");
  font-weight: 400;
  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: "Courier Prime";
  src: url("assets/fonts/courier-prime__normal__700__latin-ext.woff2") format("woff2");
  font-weight: 700;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime__normal__700__latin.woff2") format("woff2");
  font-weight: 700;
  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;
}
/* ==========================================================================
   HII tokens — the ONLY place a raw hex belongs.
   Source: LollyBrand-hildred-2026-09-28.lolly (DTCG)
   Ramps: neutral 1=ink 9=paper · semantic slots resolve through them.
   ========================================================================== */
:root{
  /* neutral ramp */
  --hii-n1:#2C2A27; --hii-n2:#423F3A; --hii-n3:#56524B; --hii-n4:#6E6A62;
  --hii-n5:#8B877E; --hii-n6:#A9A49A; --hii-n7:#C7C2B8; --hii-n8:#E4DFD6;
  --hii-n9:#FDFCF9;

  /* semantic aliases (light theme) */
  --hii-text:var(--hii-n1);
  --hii-surface:var(--hii-n9);
  --hii-primary:var(--hii-n1);
  --hii-muted:var(--hii-n4);
  --hii-secondary:var(--hii-n3);
  --hii-edge:var(--hii-n5);
  --hii-rule:var(--hii-n7);
  --hii-rule-soft:var(--hii-n8);
  --hii-on-primary:var(--hii-n9);

  /* type */
  --hii-serif:"Newsreader", Georgia, "Times New Roman", serif;
  --hii-mono:"Courier Prime", "Courier New", Courier, monospace;

  /* shape — the identity is square-cornered */
  --hii-radius:0px;
  --hii-space:8px;
}

/* ==========================================================================
   Base
   ========================================================================== */
body,
button, input, select, textarea{
  font-family: var(--hii-serif);
  font-size: 19px;
  line-height: 1.72;
  color: var(--hii-text);
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body{ background: var(--hii-surface); }

html body ::selection{ background: var(--hii-text); color: var(--hii-surface); }

/* ==========================================================================
   Headings — the serif carries the voice, the mono carries the label
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.site-title, .entry-title,
.entry-author .author-title,
.widget .widget-title, .widget .widgettitle{
  font-family: var(--hii-serif);
  color: var(--hii-text);
  font-weight: 600;
  letter-spacing: -0.005em;
}
h1, .entry-title{ font-size: 40px; line-height: 1.18; }
h2{ font-size: 28px; line-height: 1.25; }
h3{ font-size: 22px; }
h4, h5, h6{ font-size: 19px; }

.site-title{ font-size: 42px; font-weight: 700; letter-spacing: -0.015em; }
.site-title a{ color: var(--hii-text); text-decoration: none; }

/* the standfirst / tagline: the institution speaking */
.site-description,
.entry-meta, .entry-footer,
.widget .widget-title, .widget .widgettitle,
.wp-caption-text, blockquote cite,
.main-navigation a, .posts-navigation a, .post-navigation a,
.comment-metadata, .comment-reply-title small{
  font-family: var(--hii-mono);
}
.site-description{
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hii-muted);
}
.entry-meta, .entry-footer{
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hii-muted);
}
.entry-meta a, .entry-footer a{ color: var(--hii-muted); }
.entry-meta a:hover, .entry-footer a:hover{ color: var(--hii-text); text-decoration: underline; }

/* ==========================================================================
   Links — one ink, one underline. No accent colour exists in this brand.
   ========================================================================== */
a, a:visited{
  color: var(--hii-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  text-decoration-color: var(--hii-n6);
  transition: text-decoration-color 120ms ease, color 120ms ease;
}
a:hover, a:focus, a:active{
  color: var(--hii-text);
  text-decoration-color: var(--hii-text);
  text-decoration: underline;
}
.entry-title a, .site-title a, .widget_recent_entries a,
.widget_recent_comments a, .entry-meta a, .entry-footer a{
  text-decoration: none;
}
.entry-title a:hover, .entry-title a:focus{ opacity: 1; color: var(--hii-secondary); }

/* ==========================================================================
   Nav
   ========================================================================== */
.main-navigation a{
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hii-text);
}
.main-navigation a:hover{ color: var(--hii-muted); text-decoration: underline; }
.menu-toggle, .main-navigation .menu-toggle{ font-family: var(--hii-mono); }

/* ==========================================================================
   Rules and edges — square, quiet
   ========================================================================== */
hr, .entry-author-wrapper, .comments-area, .post-navigation,
.nav-links, .widget-area .widget + .widget{
  border-color: var(--hii-rule-soft);
}
.entry-author-wrapper, .comment-respond, blockquote{
  border-radius: var(--hii-radius);
}
blockquote{
  font-family: var(--hii-serif);
  font-size: 21px;
  line-height: 1.6;
  font-style: italic;
  color: var(--hii-secondary);
  border-left: 2px solid var(--hii-text);
  border-radius: 0;
  padding: 0 0 0 1.5em;
}
blockquote cite{
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hii-muted);
}

/* code and pre get the mono, always */
code, pre, kbd, samp{
  font-family: var(--hii-mono);
  font-size: 0.86em;
  background: var(--hii-rule-soft);
  border-radius: 0;
}

/* ==========================================================================
   Widgets, captions, forms
   ========================================================================== */
.widget .widget-title, .widget .widgettitle{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--hii-muted);
}
.wp-caption-text, .gallery-caption{
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--hii-muted);
}
input, textarea, select, .button, button, input[type="submit"]{
  border-radius: 0;
  border: 1px solid var(--hii-rule);
  background: var(--hii-surface);
  color: var(--hii-text);
  font-family: var(--hii-mono);
  font-size: 14px;
}
.button, button, input[type="submit"], input[type="button"]{
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.button:hover, button:hover, input[type="submit"]:hover{
  background: var(--hii-text);
  color: var(--hii-on-primary);
  border-color: var(--hii-text);
}
input:focus, textarea:focus, select:focus{
  outline: 2px solid var(--hii-text);
  outline-offset: 1px;
}

/* kill every rounded pill the parent ships */
.site-logo img, .entry-author .author-avatar img, .author-avatar img,
.comment-form #comment, .comment-respond, .widget_recent_comments img.avatar{
  border-radius: var(--hii-radius);
}
.entry-author .author-avatar img, .author-avatar img{ border-radius: 100%; }

/* footer */
.site-footer, .site-info{ font-family: var(--hii-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--hii-muted); }
.entry-content, .page-content{ font-size: 19px; }
.entry-content > p:first-of-type{
  font-size: 21px; line-height: 1.6; color: var(--hii-secondary);
}

/* ==========================================================================
   Beating the parent's higher-specificity defaults
   (the parent hard-codes an accent blue in a handful of nested selectors)
   ========================================================================== */
.main-navigation > div > ul > li.current-menu-item > a,
.main-navigation > div > ul > li.current_page_item > a,
.main-navigation > div > ul > li.current-menu-ancestor > a,
.main-navigation > div > ul > li.current-menu-parent > a,
.main-navigation > div > ul > li.current_page_parent > a{
  color: var(--hii-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--hii-text);
}
.main-navigation ul ul{
  background: var(--hii-surface);
  border: 1px solid var(--hii-rule);
  box-shadow: none;
}
.main-navigation ul ul a{ color: var(--hii-text); }
.main-navigation ul ul a:hover{ background: var(--hii-rule-soft); }

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus,
input[type="search"]:focus, input[type="url"]:focus, textarea:focus,
.comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus, .comment-form textarea:focus{
  border-color: var(--hii-text);
  outline: 2px solid var(--hii-text);
  outline-offset: 1px;
  box-shadow: none;
}
.comment .comment-meta .comment-metadata a:hover,
.entry-meta a:hover, .site-info a:hover,
.single .post-edit-link a:hover{ color: var(--hii-text); text-decoration: underline; }
.pingback:before, .trackback:before{ color: var(--hii-text); }

/* ==========================================================================
   Header image — keep the photograph, tie it to the brand with an ink scrim.
   (The parent's black gradient leaves the tagline floating on a light photo.)
   ========================================================================== */
.has-header-image #hero-header:before{
  background: linear-gradient(rgba(44, 42, 39, .58), rgba(44, 42, 39, .74));
}
.has-header-image #hero-header .site-title{ color: var(--hii-n9); }
.has-header-image #hero-header .site-description{
  color: var(--hii-n8);
  letter-spacing: 0.14em;
}
.has-header-image #hero-header .jetpack-social-navigation ul.menu li a,
.has-header-image .menu-toggle{ color: var(--hii-n9); border-color: var(--hii-n9); }
