/*
Theme Name: Entitic
Theme URI: https://entitic.co
Author: Entitic
Description: Custom theme for entitic.co. Homepage built from the approved design; inner pages, booking page, blog and 404 templates included.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: entitic
*/

/* Inter, self-hosted (SIL Open Font License, see assets/fonts/OFL-Inter.txt) */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/fonts/inter-latin-opsz-normal.woff2) format("woff2-variations"), url(assets/fonts/inter-latin-opsz-normal.woff2) format("woff2");
  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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/fonts/inter-latin-ext-opsz-normal.woff2) format("woff2-variations"), url(assets/fonts/inter-latin-ext-opsz-normal.woff2) format("woff2");
  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; }
:root {
  --ink: #14130F;
  --yellow: #F5C211;
  --paper: #F6F5F0;
  --graphite: #5F5E57;
  --white: #FFFFFF;
  --gutter: 24px;
  --margin: max(24px, calc((100vw - 1520px) / 2));
  --gap: 8px;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --t-display: min(10.5vw, 160px);
  --t-heading: clamp(36px, 5vw, 80px);
  --t-lead: clamp(20px, 1.7vw, 24px);
  --t-body: 18px;
  --t-small: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 500; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.on-light :focus-visible { outline-color: var(--ink); }
.stop { color: var(--yellow); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 500; text-decoration: none; transition: transform .25s var(--ease), background-color .2s ease; }
.btn:hover { background: var(--white); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-underline-offset .25s var(--ease), color .2s ease; }
.link:hover { text-underline-offset: 3px; }

/* Chapter one: the tagline */
.hero { background: var(--ink); color: var(--white); min-height: min(100svh, 920px); display: flex; flex-direction: column; padding: 0 var(--margin) 40px; }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; position: relative; z-index: 5; }
.bar .logo { color: var(--white); }
.logo svg { height: 30px; width: auto; }
.nav ul { display: flex; gap: 32px; align-items: center; }
.nav a { font-size: 16px; font-weight: 500; text-decoration: none; transition: color .2s ease; }
.nav a:hover { color: var(--yellow); }
.nav .link { text-decoration: underline; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font: 500 16px var(--font); min-height: 44px; padding: 0 0 0 16px; cursor: pointer; }
.hero h1 { font-size: var(--t-display); line-height: 1; letter-spacing: -.045em; margin-top: 4vh; }
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.1em; }
.line > span { display: block; animation: rise .95s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: .11s; }
@keyframes rise { from { transform: translateY(112%); } to { transform: none; } }
.hero-foot { margin-top: auto; padding-top: 48px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; animation: fadeup .8s var(--ease) .45s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-answer { grid-column: 1 / 6; font-size: 16px; }
.hero-note { grid-column: 7 / 13; }
.hero-note p { font-size: var(--t-lead); line-height: 1.4; max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 28px; flex-wrap: wrap; }

/* Chapter two: try it */
.try { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; min-height: min(92svh, 860px); }
.try h2 { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; }
.try-in, .h-a { background: var(--graphite); color: var(--white); }
.try-out, .h-b { background: var(--paper); color: var(--ink); }
.try-in { grid-column: 1; grid-row: 1; padding: 72px var(--gutter) 56px var(--margin); display: flex; flex-direction: column; gap: 20px; }
.try-out { grid-column: 2; grid-row: 1; padding: 72px var(--margin) 56px var(--gutter); display: flex; flex-direction: column; gap: 20px; }
.try-when { font-size: var(--t-lead); font-weight: 500; line-height: 1.2; }
.try-form { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.try [data-ui] { max-width: 600px; }
[data-ui] .sources { margin: 4px 0 14px; padding: 14px 16px; background: var(--paper); border-radius: 8px; }
[data-ui] .sources .tag { margin-bottom: 6px; }
[data-ui] .sources li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0; }
[data-ui] .sources .cite { margin-left: 0; }
[data-ui] .s-title { font-weight: 500; }
[data-ui] .s-kind { color: var(--graphite); font-size: 14px; white-space: nowrap; }
.h-a, .h-b { font-size: var(--t-heading); line-height: 1.02; letter-spacing: -.03em; padding: 0 var(--margin) 32px; }
.h-a { padding-right: var(--gutter); }
.h-b { padding-left: var(--gutter); }
.field { display: block; max-width: 34ch; }
.field label { display: block; font-size: var(--t-body); margin-bottom: 8px; }
.field input, .field textarea { display: block; width: 100%; background: transparent; color: var(--white); border: 0; border-bottom: 2px solid var(--white); border-radius: 0; font: 400 var(--t-lead)/1.35 var(--font); padding: 8px 0 12px; resize: none; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--yellow); }
.try-note { max-width: 40ch; font-size: 16px; margin: -4px 0 0; }

/* Interface fragments */
[data-ui] { width: 100%; max-width: 560px; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 20px 22px; font-size: 16px; line-height: 1.45; }
[data-ui] .tag { display: block; font-size: 13px; color: var(--graphite); margin-bottom: 8px; }
[data-ui] .q { display: block; color: var(--graphite); margin-bottom: 8px; }
[data-ui] .res-title { display: block; font-size: 19px; font-weight: 500; margin-bottom: 2px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
[data-ui] .res-snip { display: block; }
[data-ui] .res-other { margin-top: 12px; }
[data-ui] .answer { margin: 0 0 12px; }
[data-ui] .cite { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 500; align-items: center; justify-content: center; margin-left: 4px; vertical-align: 1px; }
[data-ui] .src { display: flex; gap: 10px; align-items: center; color: var(--graphite); font-size: 13px; padding-top: 10px; border-top: 1px solid #E7E5DE; }
[data-ui] .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); flex: none; }
[data-ui] .dot.is-off { background: var(--graphite); }
[data-ui] table { width: 100%; border-collapse: collapse; }
[data-ui] td { padding: 12px 0; border-top: 1px solid #E7E5DE; }
[data-ui] td:last-child { text-align: right; color: var(--graphite); white-space: nowrap; padding-left: 16px; }
[data-ui] tr.win td { font-weight: 500; color: var(--ink); }
[data-ui] tr.win td:last-child::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); margin-right: 8px; }
[data-ui] .where td:last-child { color: var(--ink); font-weight: 500; }
.swap { transition: opacity .3s ease; }
.is-swapping .swap { opacity: .35; }

/* Chapter three: proof */
.proof { background: var(--white); padding: 120px var(--margin); }
.board { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); gap: var(--gap); }
.tile { background: var(--paper); padding: 24px; border-radius: var(--radius); }
.tile h3 { font-size: clamp(28px, 3.3vw, 48px); line-height: 1.05; letter-spacing: -.015em; margin-bottom: 8px; }
.tile > span { font-size: var(--t-body); }
.tile-head { grid-column: span 2; grid-row: span 3; background: var(--ink); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.tile-head h2 { font-size: var(--t-heading); line-height: 1.02; letter-spacing: -.03em; }
.tile-head p { max-width: 36ch; }

/* Chapter four: services */
.services { background: var(--ink); color: var(--white); padding: 120px var(--margin); }
.svc-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; margin-bottom: 96px; }
.svc-copy { grid-column: 1 / 8; }
.svc-copy h2 { font-size: var(--t-heading); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 32px; }
.svc-copy p { font-size: var(--t-lead); line-height: 1.4; max-width: 30em; }
.services [data-ui] { grid-column: 8 / 13; margin-left: var(--gutter); width: auto; max-width: none; justify-self: stretch; }
.poster > li { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; padding: 48px 0 72px; }
.poster h3 { grid-column: 1 / 7; font-size: var(--t-display); line-height: .9; letter-spacing: -.045em; transition: color .2s ease, transform .4s var(--ease); }
.poster > li:hover h3 { color: var(--yellow); transform: translateX(10px); }
.poster > li:hover h3 .stop { color: var(--white); }
.ch-body { grid-column: 7 / 13; padding-top: min(1.4vw, 21px); }
.ch-lead { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 16px; }
.ch-text { font-size: var(--t-body); max-width: 36em; margin-bottom: 36px; }
.ch-get { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 28px 28px 30px; }
.ch-get h4 { margin: 0 0 18px; font-size: var(--t-body); font-weight: 500; color: var(--graphite); }
.ch-get ul { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ch-get li { display: flex; align-items: baseline; gap: 12px; font-size: var(--t-lead); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.ch-get li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); transform: translateY(-2px); }

/* Chapter five: the action */
.cta { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: min(76svh, 640px); padding: 40px var(--margin) 24px; background: var(--yellow); color: var(--ink); text-decoration: none; }
.cta:focus-visible { outline-offset: -8px; outline-color: var(--ink); }
.cta-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
.cta-top > div { grid-column: 1 / 8; }
.cta h2 { font-size: var(--t-heading); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 24px; }
.cta p { max-width: 34em; font-size: var(--t-lead); line-height: 1.4; }
.cta svg { grid-column: 12 / 13; justify-self: end; width: 48px; height: 48px; transition: transform .35s var(--ease); }
.cta-word { display: block; font-size: min(20.4vw, 310px); line-height: .86; letter-spacing: -.05em; font-weight: 500; white-space: nowrap; }
.cta:hover { background: var(--ink); color: var(--yellow); }
.cta:hover svg { transform: translate(6px, -6px); }

/* Chapter six: the close */
.site-footer { background: var(--paper); color: var(--ink); padding: 56px var(--margin) 24px; }
.foot-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 40px; margin-bottom: 96px; }
.foot-brand { grid-column: 1 / 7; font-size: var(--t-lead); line-height: 1.4; max-width: 24em; }
.foot-col { grid-column: span 3; }
.foot-col h2 { font-size: var(--t-body); margin-bottom: 12px; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-mark { color: var(--ink); }
.foot-mark svg { width: 100%; height: auto; }
.foot-base { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; font-size: var(--t-small); }

/* Entrances: only hide things when script is present to bring them back */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .poster > li.rv { transform: translateX(-28px); }
.js .poster > li.rv.in { transform: none; }
.js .tile.rv { transform: scale(.97); }
.js .tile.rv.in { transform: none; }

@media (max-width: 860px) {
  .services [data-ui] { margin-left: 0; }
  :root { --margin: 20px; --gutter: 20px; --t-display: 10.2vw; --t-heading: 8.6vw; }
  .hero { min-height: 0; padding-bottom: 64px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: calc(var(--margin) * -1); right: calc(var(--margin) * -1); background: var(--ink); padding: 8px var(--margin) 24px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav li { width: 100%; }
  .nav a { display: flex; align-items: center; min-height: 48px; font-size: var(--t-body); }
  .hero h1 { margin-top: 28px; }
  .hero-foot { padding-top: 28px; row-gap: 28px; margin-top: 0; }
  .hero-answer, .hero-note { grid-column: 1 / -1; }
  .hero-answer { max-width: none; }
  .try { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .try h2 { display: contents; }
  .try-in, .try-out { grid-column: 1; grid-row: auto; }
  .try-in { order: 1; padding: 64px var(--margin) 32px; }
  .h-a { order: 2; padding-bottom: 12px; }
  .h-b { order: 3; padding-top: 12px; padding-bottom: 24px; }
  .try-out { order: 4; padding: 0 var(--margin) 64px; align-items: stretch; }
  [data-ui] { max-width: none; }
  .proof, .services { padding-top: 88px; padding-bottom: 88px; }
  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 6px; }
  .tile { padding: 16px; min-height: 148px; }
  .tile h3 { font-size: 24px; }
  .tile > span { font-size: 15px; }
  .tile-head { grid-row: auto; min-height: 0; }
  .svc-head { display: block; margin-bottom: 64px; }
  .svc-copy { margin-bottom: 40px; }
  .poster > li { display: block; padding: 0 0 64px; }
  .poster h3 { font-size: 17vw; margin-bottom: 20px; }
  .ch-body { padding-top: 0; }
  .ch-text { margin-bottom: 28px; }
  .ch-get { padding: 22px 20px 24px; }
  .ch-get ul { grid-template-columns: 1fr; gap: 12px; }
  .try-form { padding-top: 28px; }
  [data-ui] .sources li { grid-template-columns: auto 1fr; }
  [data-ui] .s-kind { grid-column: 2; margin-top: -6px; }
  .cta { min-height: 60svh; }
  .cta-top > div { grid-column: 1 / 11; }
  .cta svg { grid-column: 11 / 13; width: 32px; height: 32px; }
  .foot-top { margin-bottom: 56px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { grid-column: span 6; }
  .foot-base { flex-direction: column; gap: 4px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .poster h3 { grid-column: 1 / 6; }
  .ch-body { grid-column: 6 / 13; }
  .ch-get ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .poster > li.rv, .js .tile.rv { transform: none; }
}

/* ------------------------------------------------------------------
   Theme additions (not in the static preview): fonts, WordPress basics,
   inner pages, booking page, blog and 404.
   ------------------------------------------------------------------ */

/* Accessibility helpers */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000; top: 8px; left: 8px; padding: 12px 20px; background: var(--yellow); color: var(--ink); border-radius: 999px; font-weight: 500; text-decoration: none; }

/* Menus built in WordPress: the last item is the call to action */
.nav li:last-child a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .current-menu-item > a { color: var(--yellow); }

/* Inner pages: Ink band with the title */
.page-top { background: var(--ink); color: var(--white); padding: 0 var(--margin) 72px; }
.page-top h1 { font-size: var(--t-heading); line-height: 1.02; letter-spacing: -.03em; margin-top: 64px; max-width: 18ch; }
.page-top .lead { font-size: var(--t-lead); line-height: 1.4; max-width: 34em; margin-top: 24px; }
.page-top .meta { color: #A3A199; font-size: var(--t-small); margin-top: 20px; }

.page-body { background: var(--white); padding: 88px var(--margin) 120px; }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.015em; margin-top: 1.8em; }
.prose h3 { font-size: 22px; line-height: 1.25; margin-top: 1.6em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--yellow); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { color: var(--graphite); font-size: var(--t-small); margin-top: 8px; }
.prose code { font-size: .9em; background: var(--paper); padding: 2px 6px; border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid #E7E5DE; }

/* Booking page */
.book { background: var(--paper); padding: 48px var(--margin) 96px; }
.book-frame { max-width: 1100px; }
.book .calendly-inline-widget { min-width: 320px; height: 760px; }
.book-fallback { max-width: 34em; font-size: var(--t-lead); line-height: 1.4; }
.book-fallback a { text-decoration: underline; text-underline-offset: 5px; }

/* Blog list */
.post-list { max-width: 900px; }
.post-list li { padding: 36px 0; border-top: 1px solid #E7E5DE; }
.post-list li:last-child { border-bottom: 1px solid #E7E5DE; }
.post-list h2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.015em; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.post-list time { display: block; color: var(--graphite); font-size: var(--t-small); margin-bottom: 8px; }
.post-list p { margin-top: 10px; max-width: 40em; }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; max-width: 900px; }
.pager a { text-decoration: underline; text-underline-offset: 5px; }

/* 404 */
.page-top.is-404 { min-height: min(80svh, 720px); display: flex; flex-direction: column; }
.page-top.is-404 .actions { margin-top: 40px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .page-top { padding-bottom: 56px; }
  .page-top h1 { margin-top: 28px; }
  .page-body { padding-top: 56px; padding-bottom: 88px; }
  .book { padding-top: 32px; padding-bottom: 64px; }
  .book .calendly-inline-widget { height: 1050px; }
}
