/*
Theme Name: sample.studio
Template: irmawp-starter
Author: IrmaWP
Author URI: https://irmawp.com
Description: Child theme of IrmaWP Starter 0.1.0 for sample.studio. Design tokens, patterns and template overrides live here; everything else is inherited from the parent.
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.2
Version: 0.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sample-studio
*/

:root {
  --nb-paper: #f5f1e8;
  --nb-paper-deep: #ece5d8;
  --nb-ink: #31291f;
  --nb-muted: #655b4e;
  --nb-green: #294b39;
  --nb-green-deep: #203a2c;
  --nb-rule: #d6ccbc;
  --nb-shell: 1320px;
}

html { scroll-behavior: smooth; }
body { background: var(--nb-paper); color: var(--nb-ink); }

.nb-site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--nb-rule);
  background: var(--nb-paper);
}
.nb-site-header__inner,
.nb-site-footer__inner {
  width: min(var(--nb-shell), calc(100% - 72px));
  margin-inline: auto;
}
.nb-site-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nb-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--nb-ink);
  font: 500 1.45rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  text-decoration: none;
}
.nb-wordmark__descriptor {
  color: var(--nb-muted);
  font: 600 .62rem/1.2 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nb-site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); }
.nb-site-nav a {
  color: var(--nb-ink);
  font-size: .78rem;
  letter-spacing: .035em;
  text-decoration: none;
}
.nb-site-nav a:hover { color: var(--nb-green); text-decoration: underline; text-underline-offset: 5px; }
.nb-site-nav a:focus-visible,
.nb-wordmark:focus-visible,
.nb-site-footer a:focus-visible,
.nb-home a:focus-visible {
  outline: 3px solid #9b552f;
  outline-offset: 5px;
  border-radius: 2px;
}
.nb-site-nav .nb-site-nav__cta {
  padding: 13px 18px;
  border: 1px solid var(--nb-green);
  color: var(--nb-green);
}
.nb-site-nav .nb-site-nav__cta:hover { background: var(--nb-green); color: var(--nb-paper); text-decoration: none; }

.nb-home { overflow: clip; background: var(--nb-paper); color: var(--nb-ink); }
.nb-shell { width: min(var(--nb-shell), calc(100% - 72px)); margin-inline: auto; }
.nb-home h1,
.nb-home h2,
.nb-home h3,
.nb-site-footer__brand { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-weight: 400; }
.nb-home h1,
.nb-home h2,
.nb-home h3,
.nb-home p,
.nb-home figure { margin-top: 0; }
.nb-home h1,
.nb-home h2,
.nb-home h3 { color: var(--nb-ink); }
.nb-home h1 em,
.nb-home h2 em { font-weight: 400; }
.nb-eyebrow,
.nb-project-type {
  margin-bottom: 18px;
  color: var(--nb-green);
  font: 650 .68rem/1.4 system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nb-hero { padding: clamp(70px, 9vw, 132px) 0 clamp(88px, 11vw, 156px); }
.nb-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 8vw, 120px);
}
.nb-hero__copy { position: relative; z-index: 1; }
.nb-hero h1 {
  max-width: 710px;
  margin-bottom: 26px;
  font-size: clamp(3.8rem, 7.25vw, 7.4rem);
  line-height: .91;
  letter-spacing: -.055em;
}
.nb-hero h1 em { color: var(--nb-green); }
.nb-hero__intro {
  max-width: 490px;
  margin-bottom: 30px;
  color: var(--nb-muted);
  font-size: clamp(1rem, 1.4vw, 1.17rem);
  line-height: 1.68;
}
.nb-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 14px 20px;
  background: var(--nb-green);
  color: var(--nb-paper) !important;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .035em;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.nb-button:hover { background: var(--nb-green-deep); transform: translateY(-2px); }
.nb-button span { font-size: 1rem; }
.nb-hero__note { margin: 24px 0 0; color: var(--nb-muted); font-size: .68rem; letter-spacing: .06em; }
.nb-hero__image { position: relative; margin: 0; }
.nb-hero__image img { display: block; width: 100%; height: clamp(430px, 53vw, 700px); object-fit: cover; object-position: center; }
.nb-hero__image figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  color: var(--nb-muted);
  font-size: .66rem;
  letter-spacing: .045em;
}
.nb-hero__side-note {
  position: absolute;
  right: calc(100% + 22px);
  bottom: 4%;
  writing-mode: vertical-rl;
  color: var(--nb-green);
  font: italic 1.05rem/1.3 Georgia, serif;
  letter-spacing: .03em;
}

.nb-section { padding: clamp(90px, 11vw, 160px) 0; }
.nb-services { background: var(--nb-paper-deep); }
.nb-section-heading { display: grid; grid-template-columns: 1fr .72fr; column-gap: 8%; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.nb-section-heading .nb-eyebrow { grid-column: 1 / -1; }
.nb-section-heading h2,
.nb-work h2 { margin-bottom: 0; font-size: clamp(2.9rem, 5vw, 5.35rem); line-height: .99; letter-spacing: -.045em; }
.nb-section-heading h2 em,
.nb-work h2 em { color: var(--nb-green); }
.nb-section-heading > p:last-child,
.nb-work-heading > p { max-width: 400px; margin-bottom: 5px; color: var(--nb-muted); font-size: .98rem; line-height: 1.65; }
.nb-service-list { border-top: 1px solid var(--nb-rule); }
.nb-service-row {
  display: grid;
  grid-template-columns: 52px minmax(190px, .9fr) minmax(280px, 1.25fr) 26px;
  align-items: start;
  gap: clamp(20px, 4vw, 64px);
  padding: 27px 0 30px;
  border-bottom: 1px solid var(--nb-rule);
}
.nb-service-number { padding-top: 8px; color: var(--nb-green); font: 600 .68rem/1.4 system-ui, sans-serif; letter-spacing: .08em; }
.nb-service-row h3 { margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.1; letter-spacing: -.025em; }
.nb-service-row p { max-width: 510px; margin: 3px 0 0; color: var(--nb-muted); font-size: .91rem; line-height: 1.65; }
.nb-service-mark { padding-top: 3px; color: var(--nb-green); font-size: 1rem; text-align: right; }

.nb-work { background: var(--nb-paper); }
.nb-work-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: clamp(46px, 7vw, 88px); }
.nb-work-heading > div { max-width: 720px; }
.nb-work-heading h2 { max-width: 700px; }
.nb-work-heading > p { flex: 0 1 360px; }
.nb-project-grid { display: grid; grid-template-columns: 1.05fr .78fr; align-items: start; gap: clamp(52px, 8vw, 112px) clamp(34px, 6vw, 86px); }
.nb-project { min-width: 0; }
.nb-project--offset { margin-top: 125px; }
.nb-project figure { margin: 0 0 19px; overflow: hidden; background: var(--nb-paper-deep); }
.nb-project figure img { display: block; width: 100%; aspect-ratio: 1.22 / 1; object-fit: cover; transition: transform .7s cubic-bezier(.2,.65,.3,1); }
.nb-project:hover figure img { transform: scale(1.025); }
.nb-project--offset figure img { aspect-ratio: .87 / 1; }
.nb-project-meta { display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.nb-project-type { margin: 0 0 7px; font-size: .61rem; }
.nb-project h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1; }
.nb-project-meta > p { max-width: 230px; margin: 0; color: var(--nb-muted); font-size: .77rem; line-height: 1.5; text-align: right; }

.nb-contact { padding: clamp(78px, 9vw, 126px) 0; background: var(--nb-green); color: var(--nb-paper); }
.nb-contact__inner { display: grid; grid-template-columns: 1fr .68fr; gap: clamp(48px, 10vw, 150px); align-items: end; }
.nb-contact .nb-eyebrow { color: #e3c59c; }
.nb-contact h2 { margin: 0; color: var(--nb-paper); font-size: clamp(4rem, 8vw, 8rem); line-height: .88; letter-spacing: -.05em; }
.nb-contact__aside { max-width: 430px; }
.nb-contact__aside > p { max-width: 400px; margin: 0 0 25px; color: #f3eee5; font-size: 1rem; line-height: 1.7; }
.nb-button--light { background: var(--nb-paper); color: var(--nb-green) !important; }
.nb-button--light:hover { background: #fffaf0; }
.nb-contact__email { display: block; width: fit-content; margin-top: 20px; color: var(--nb-paper); font-size: .8rem; text-underline-offset: 4px; }

.nb-site-footer { padding: 48px 0 27px; background: var(--nb-ink); color: var(--nb-paper); }
.nb-site-footer__top { display: flex; justify-content: space-between; align-items: start; gap: 42px; padding-bottom: 42px; }
.nb-site-footer__brand { display: inline-block; margin-bottom: 12px; color: var(--nb-paper); font-size: 2rem; letter-spacing: -.035em; text-decoration: none; }
.nb-site-footer__tagline { max-width: 330px; margin: 0; color: #e0d6c8; font-size: .82rem; line-height: 1.65; }
.nb-site-footer__nav { display: flex; flex-wrap: wrap; gap: 16px 30px; padding-top: 8px; }
.nb-site-footer a { color: var(--nb-paper); font-size: .76rem; text-underline-offset: 4px; }
.nb-site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid #655b50; color: #e0d6c8; font-size: .66rem; letter-spacing: .025em; }
.nb-site-footer__bottom p { margin: 0; }

@supports (animation-timeline: view()) {
  .nb-reveal { animation: nb-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  @keyframes nb-rise { from { opacity: .62; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 900px) {
  .nb-hero__grid { grid-template-columns: minmax(0, .92fr) minmax(310px, 1.08fr); gap: 36px; }
  .nb-hero h1 { font-size: clamp(3.4rem, 7.3vw, 5.7rem); }
  .nb-hero__side-note { display: none; }
  .nb-service-row { grid-template-columns: 38px minmax(160px, .85fr) minmax(230px, 1.2fr) 20px; gap: 22px; }
  .nb-project-grid { gap: 58px 32px; }
}
@media (max-width: 680px) {
  .nb-shell,
  .nb-site-header__inner,
  .nb-site-footer__inner { width: min(100% - 40px, var(--nb-shell)); }
  .nb-site-header__inner { min-height: auto; align-items: start; flex-direction: column; gap: 15px; padding-top: 20px; padding-bottom: 16px; }
  .nb-wordmark { font-size: 1.35rem; }
  .nb-site-nav { width: 100%; justify-content: space-between; gap: 10px; }
  .nb-site-nav a { font-size: .72rem; }
  .nb-site-nav .nb-site-nav__cta { padding: 10px 12px; }
  .nb-hero { padding: 62px 0 82px; }
  .nb-hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .nb-hero h1 { font-size: clamp(3.7rem, 14vw, 5.5rem); }
  .nb-hero__intro { max-width: 36rem; font-size: 1rem; }
  .nb-hero__image img { height: min(112vw, 530px); }
  .nb-hero__image figcaption { font-size: .58rem; }
  .nb-section { padding: 78px 0; }
  .nb-section-heading { display: block; margin-bottom: 44px; }
  .nb-section-heading h2,
  .nb-work h2 { font-size: clamp(2.9rem, 11vw, 4.1rem); }
  .nb-section-heading > p:last-child { margin-top: 20px; }
  .nb-service-row { grid-template-columns: 30px 1fr 20px; gap: 10px 14px; padding: 22px 0 24px; }
  .nb-service-row h3 { grid-column: 2; grid-row: 1; font-size: 1.7rem; }
  .nb-service-row p { grid-column: 2 / 4; grid-row: 2; margin-top: 2px; font-size: .86rem; }
  .nb-service-mark { grid-column: 3; grid-row: 1; }
  .nb-service-number { grid-column: 1; grid-row: 1; }
  .nb-work-heading { display: block; margin-bottom: 42px; }
  .nb-work-heading > p { margin-top: 18px; }
  .nb-project-grid { grid-template-columns: 1fr; gap: 42px; }
  .nb-project--offset { width: 88%; margin: 0 0 0 auto; }
  .nb-project--offset figure img { aspect-ratio: 1.08 / 1; }
  .nb-project-meta { align-items: start; flex-direction: column; gap: 8px; }
  .nb-project-meta > p { max-width: 100%; text-align: left; }
  .nb-contact { padding: 75px 0 78px; }
  .nb-contact__inner { grid-template-columns: 1fr; gap: 34px; }
  .nb-contact h2 { font-size: clamp(4.2rem, 16vw, 6.3rem); }
  .nb-site-footer { padding: 38px 0 22px; }
  .nb-site-footer__top { flex-direction: column; gap: 25px; padding-bottom: 30px; }
  .nb-site-footer__nav { gap: 14px 22px; }
  .nb-site-footer__bottom { align-items: start; flex-direction: column; gap: 10px; }
}
@media (max-width: 370px) {
  .nb-shell,
  .nb-site-header__inner,
  .nb-site-footer__inner { width: calc(100% - 32px); }
  .nb-site-nav { gap: 7px; }
  .nb-site-nav a { font-size: .66rem; }
  .nb-site-nav .nb-site-nav__cta { padding: 9px; }
  .nb-hero h1 { font-size: 3.45rem; }
}

/* Northbound's brand palette and type tokens, applied globally as the block-theme fallback. */
:root {
  --nb-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nb-font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --wp--preset--color--base: var(--nb-paper);
  --wp--preset--color--contrast: var(--nb-ink);
  --wp--preset--color--surface: var(--nb-paper-deep);
  --wp--preset--color--surface-elevated: #fbf8f1;
  --wp--preset--color--accent: var(--nb-green);
  --wp--preset--color--muted: var(--nb-muted);
  --wp--preset--color--border: var(--nb-rule);
  --wp--preset--font-family--body: var(--nb-font-body);
  --wp--preset--font-family--display: var(--nb-font-display);
}
body,
.wp-site-blocks {
  background-color: var(--nb-paper);
  color: var(--nb-ink);
  font-family: var(--nb-font-body);
}
body :where(h1, h2, h3, h4, h5, h6, .wp-block-heading) {
  color: var(--nb-ink);
  font-family: var(--nb-font-display);
  font-weight: 400;
}
body a:not(.nb-button):not(.nb-wordmark):not(.nb-site-footer__brand) {
  text-decoration-color: var(--nb-green);
  text-underline-offset: .18em;
}
body :where(.wp-block-button__link, .wp-element-button) {
  min-height: 44px;
  border: 1px solid var(--nb-green);
  border-radius: 0;
  background: var(--nb-green);
  color: var(--nb-paper);
  font-family: var(--nb-font-body);
}
body :where(.wp-block-button__link, .wp-element-button):hover {
  background: var(--nb-green-deep);
  color: var(--nb-paper);
}
body :where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #9b552f;
  outline-offset: 4px;
}

/* Let the homepage escape the block theme's 44rem post-content column. */
.wp-site-blocks .wp-block-post-content > .nb-home.alignfull {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
}
.nb-home > .nb-hero.alignfull,
.nb-home > .nb-section.alignfull,
.nb-home > .nb-contact.alignfull {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.nb-home .nb-shell.alignwide {
  width: min(var(--nb-shell), calc(100% - 72px));
  max-width: var(--nb-shell);
  margin-inline: auto;
}
.nb-service-row > * { min-width: 0; }
.nb-service-row p { display: block; visibility: visible; }
@media (max-width: 680px) {
  .nb-home .nb-shell.alignwide { width: min(100% - 40px, var(--nb-shell)); }
}
@media (max-width: 370px) {
  .nb-home .nb-shell.alignwide { width: calc(100% - 32px); }
}
