/* trevornace theme: brand rules the block editor cannot express on its own */

:root {
  --tn-ink: #101010;
  --tn-amber: #FFC400;
  --tn-teal: #4F7372;
  --tn-teal-tint: #E9F0EF;
  --tn-marsh: #4D683A;
  --tn-cream: #F7F4EF;
  --tn-wood: #74381D;
  --tn-hand: #555;
}

html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }

/* Headings: tight, heavy */
h1, h2, h3, h4 { letter-spacing: -0.015em; text-wrap: balance; }

/* Serif italic emphasis inside a heading or line: <em class="tn-em"> */
.tn-em, .tn-em em, h1 em, h2 em, h3 em {
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* The amber highlighter behind one key phrase: <mark> */
mark, .tn-hl {
  background: linear-gradient(transparent 45%, rgba(255, 196, 0, 0.55) 45%, rgba(255, 196, 0, 0.55) 92%, transparent 92%);
  color: inherit;
  padding: 0 0.1em;
}

/* Handwritten line under a button */
.tn-hand {
  font-family: var(--wp--preset--font-family--hand);
  font-size: var(--wp--preset--font-size--medium);
  color: var(--tn-hand);
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* Small-caps teal label (WATCH FIRST, TAP TRAIL) */
.tn-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--tn-teal);
  text-transform: uppercase;
}

/* Buttons */
.wp-block-button__link, .tn-btn {
  font-weight: 700;
  border-radius: 999px;
  padding: 0.95em 1.8em;
  line-height: 1.1;
  box-shadow: 0 2px 0 var(--tn-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.wp-block-button__link:hover, .tn-btn:hover { transform: translateY(1px); box-shadow: 0 1px 0 var(--tn-ink); }

/* Cards */
.tn-card {
  background: #fff;
  border: 2px solid var(--tn-ink);
  border-radius: 18px;
  padding: var(--wp--preset--spacing--40);
}
.tn-card--teal { background: var(--tn-teal-tint); border-color: transparent; }
.tn-card--ink { background: var(--tn-ink); color: #fff; border-color: var(--tn-ink); }
.tn-card--ink h2, .tn-card--ink h3 { color: #fff; }

/* Waitlist form */
.tn-form { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin: 0; }
.tn-form input[type="email"] {
  flex: 1 1 260px;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.9em 1.1em;
  border: 2px solid var(--tn-ink);
  border-radius: 999px;
  background: #fff;
  color: var(--tn-ink);
  min-width: 0;
}
.tn-form input[type="email"]:focus { outline: 3px solid var(--tn-amber); outline-offset: 2px; }
.tn-form .tn-btn {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--tn-amber);
  color: var(--tn-ink);
  border: 2px solid var(--tn-ink);
  cursor: pointer;
}
.tn-form .tn-hp { position: absolute; left: -9999px; }
.tn-form-note { text-align: center; margin-top: 0.6rem; }

/* Video card (click-to-load YouTube) */
.tn-video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--tn-ink);
  border: 2px solid var(--tn-ink);
}
.tn-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tn-video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--tn-ink); font-weight: 700; text-decoration: none;
}
.tn-video__play span {
  background: var(--tn-amber); border: 2px solid var(--tn-ink); border-radius: 999px;
  padding: 0.7em 1.4em; box-shadow: 0 2px 0 var(--tn-ink);
}

/* Section band with the teal tint */
.tn-band { background: var(--tn-teal-tint); }

/* FAQ */
.tn-faq { border-top: 2px solid var(--tn-ink); }
.tn-faq summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.tn-faq summary::-webkit-details-marker { display: none; }
.tn-faq summary::after { content: "+"; color: var(--tn-teal); font-weight: 700; }
.tn-faq[open] summary::after { content: "–"; }
.tn-faq p { margin: 0 0 1rem; }

/* Global side padding (root-padding-aware layouts) */
.has-global-padding { padding-left: var(--wp--style--root--padding-left, 1rem); padding-right: var(--wp--style--root--padding-right, 1rem); }

/* Header */
.tn-header { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.tn-header .wp-block-site-title a { text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.tn-header nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.tn-header nav a { text-decoration: none; font-weight: 600; }
.tn-header nav a:hover { text-decoration: underline; text-decoration-color: var(--tn-amber); text-decoration-thickness: 3px; }

/* Footer */
.tn-footer { border-top: 2px solid var(--tn-ink); padding-top: 2rem; padding-bottom: 2rem; font-size: 0.95rem; }
.tn-footer a { color: inherit; }

/* Tap trail (blog posts): ink chips joined by chevrons, like the videos */
.tn-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.3rem; margin: 0.75rem 0 1.25rem; padding: 0; list-style: none; }
.tn-trail li { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--tn-ink); color: #fff; font-weight: 700; font-size: 0.95rem; padding: 0.45em 0.85em; border-radius: 10px; }
.tn-trail li img { width: 1.25em; height: 1.25em; border-radius: 5px; }
.tn-trail li.tn-trail__tap { background: #fff; color: var(--tn-ink); border: 2px solid var(--tn-ink); border-radius: 999px; font-size: 0.75rem; letter-spacing: 0.12em; padding: 0.2em 0.7em; }
.tn-trail li + li::before { content: "›"; color: var(--tn-ink); font-weight: 700; margin-right: 0.3rem; margin-left: -0.1rem; }
.tn-trail li.tn-trail__tap + li::before, .tn-trail li:first-child::before { content: none; }
.tn-trail li.tn-trail__toggle { background: var(--tn-amber); color: var(--tn-ink); }

/* Post meta line */
.tn-post-meta { color: var(--tn-teal); font-size: 0.9rem; }

/* Post cards on the blog index */
.tn-card .wp-block-post-title a { text-decoration: none; }
.tn-card .wp-block-post-title a:hover { text-decoration: underline; text-decoration-color: var(--tn-amber); text-decoration-thickness: 3px; }

@media (max-width: 600px) {
  .tn-form .tn-btn { flex: 1 1 100%; }
}

/* ---- Motion and decoration (added 2026-10-16, after aliabdaal.com) ---- */

/* Cards and tiles lift and warm on hover */
.tn-card, .tn-help, .tn-post, .tn-faq summary { transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.tn-card:hover, .tn-help:hover, .tn-post:hover { transform: translateY(-4px); box-shadow: 0 6px 0 var(--tn-ink); }
.tn-help:hover { background: var(--tn-teal-tint); }
.tn-post:hover { background: #fff; }
.tn-faq summary:hover { background: var(--tn-teal-tint); padding-left: 0.6rem; padding-right: 0.6rem; margin: 0 -0.6rem; border-radius: 10px; }

/* Arrow links: the arrow slides on hover */
.tn-arrow { font-weight: 700; text-decoration: none; color: var(--tn-ink); }
.tn-arrow::after { content: " →"; display: inline-block; transition: transform 0.18s ease; }
.tn-arrow:hover::after { transform: translateX(4px); }
.tn-arrow:hover { text-decoration: underline; text-decoration-color: var(--tn-amber); text-decoration-thickness: 3px; }

/* Help cards ("What do you need help with?") */
.tn-help { display: block; background: #fff; border: 2px solid var(--tn-ink); border-radius: 18px; padding: 1.4rem; text-decoration: none; color: inherit; height: 100%; box-sizing: border-box; }
.tn-help img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 0.8rem; }
.tn-help h3 { margin: 0 0 0.4rem; }
.tn-help p { margin: 0 0 0.6rem; color: #333; font-size: 1rem; }

/* Post cards (home and blog) */
.tn-post { background: var(--tn-cream); border: 2px solid var(--tn-ink); border-radius: 18px; overflow: hidden; height: 100%; box-sizing: border-box; }
.tn-post .wp-block-post-featured-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tn-post .tn-post__body { padding: 1rem 1.2rem 1.2rem; }
.tn-post .wp-block-post-date { color: var(--tn-teal); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.tn-post .wp-block-post-title { font-size: 1.2rem; line-height: 1.25; margin: 0.3rem 0 0.4rem; }
.tn-post .wp-block-post-title a { text-decoration: none; color: inherit; }
.tn-post .wp-block-post-excerpt { font-size: 0.95rem; color: #333; }
.tn-post .wp-block-post-excerpt__more-text { display: none; }

/* Swoosh: a soft arc behind a band (inline SVG, position absolute) */
.tn-swoosh { position: relative; overflow: hidden; }
.tn-swoosh > svg { position: absolute; left: 50%; top: 0; width: 1600px; height: 100%; transform: translateX(-50%); z-index: 0; pointer-events: none; }
.tn-swoosh > *:not(svg) { position: relative; z-index: 1; }

/* Photo blob: an amber shape behind the portrait */
.tn-blob { position: relative; display: inline-block; }
.tn-blob::before { content: ""; position: absolute; inset: 6% -6% -4% 6%; background: var(--tn-amber); border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; z-index: 0; transform: rotate(-6deg); }
.tn-blob img { position: relative; z-index: 1; }

/* Social links: official brand marks only (see patterns/social-links.php). The YouTube PNG carries its own clear space
   (icon ~30 px of the 56 px file); Instagram and Facebook marks are 30 px with the gap as clear space. */
.tn-social__label { margin: 0.9rem 0 0.2rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tn-teal); }
.tn-social { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.1rem; padding: 0; margin: 0; list-style: none; }
.tn-social li { margin: 0; }
.tn-social a { display: inline-flex; align-items: center; min-height: 56px; text-decoration: none; }
.tn-social a:hover img { opacity: 0.85; }
.tn-social img { display: block; width: auto; }
.tn-social__yt { height: 56px; }
.tn-social__ig, .tn-social__fb, .tn-social__tt { height: 30px; }

/* Footer columns */
.tn-footer h3 { margin: 0 0 0.6rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tn-teal); }
.tn-footer ul { list-style: none; padding: 0; margin: 0; }
.tn-footer li { margin: 0 0 0.4rem; }
.tn-footer a { text-decoration: none; }
.tn-footer a:hover { text-decoration: underline; text-decoration-color: var(--tn-amber); text-decoration-thickness: 3px; }
.tn-footer__bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(16,16,16,0.15); font-size: 0.85rem; color: #555; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* Reveal on scroll (no motion if the visitor asked for none) */
@media (prefers-reduced-motion: no-preference) {
  html.js .tn-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.35s ease, transform 0.35s ease; }
  html.js .tn-reveal.is-in { opacity: 1; transform: none; }
  html.js .tn-reveal.tn-reveal--now { transition: none; }
}
