@font-face {
  font-family: "Harabara";
  src: url("fonts/harabara.ttf") format("truetype");
  font-display: swap;
}

/* Trust Frank site styles, shared by every page.
   Layout: sticky toolbar, one centred column of rounded white cards on a faint lime-grey page, dark green footer.
   Single light theme on purpose: the logo is lime on white, so the site stays light in both themes. */
:root {
  --paper: #ffffff;
  --page: #f6f8f2;          /* faint lime-tinted page background */
  --wash: #eef3e6;          /* panel tint, image backdrops */
  --ink: #23251f;
  --grey: #5b5d58;          /* body grey, close to the logo's tagline grey */
  --lime: #89cb37;          /* logo green */
  --lime-soft: #e3f2cf;
  --lime-deep: #3f7a12;     /* readable green for text on white */
  --forest: #17230a;        /* near-black green for text on lime and the footer */
  --line: #dfe5d6;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(23 35 10 / 0.06), 0 8px 24px -8px rgb(23 35 10 / 0.14);
  --shadow-lift: 0 2px 4px rgb(23 35 10 / 0.08), 0 18px 36px -12px rgb(23 35 10 / 0.22);
  --font-head: "Harabara", "Nunito", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

html { scroll-behavior: smooth; }
html, body { background: var(--page); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  padding-inline: 16px;
  padding-top: env(safe-area-inset-top, 0px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--lime-deep); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 6px; }

/* Harabara has a single weight, so stop browsers faking bold on headings */
h1, h2, h3, .nav a, .btn, .add, .sound, .eyebrow, .chip { font-synthesis: none; letter-spacing: 0.01em; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; color: var(--ink); text-wrap: balance; }

.wrap { max-width: 60rem; margin: 0 auto; }
section[id] { scroll-margin-top: 5.5rem; }

/* Small lime label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime-deep);
  margin: 0 0 0.4rem;
}

/* Cards */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.7rem;
  min-width: 0;
}
.card h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin: 0 0 0.6rem; }
.card p { margin: 0; color: var(--grey); }
.card p + p { margin-top: 0.7rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  background: var(--lime);
  color: var(--forest);
  font-family: var(--font-head);
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 2px 0 rgb(23 35 10 / 0.15);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: #9bd64f; color: var(--forest); transform: translateY(-2px); box-shadow: 0 6px 14px -4px rgb(63 122 18 / 0.45); }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: #2b3d16; color: #fff; }
.link-arrow { font-family: var(--font-head); text-decoration: none; display: inline-flex; gap: 0.35rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Toolbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-inline: -16px;
  padding-inline: 16px;
  background: rgb(255 255 255 / 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  padding-block: 0.6rem;
}
.topbar .home-link { display: block; line-height: 0; }
.topbar .home-link img { height: 42px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--lime); color: var(--forest); }

/* Home: hero */
.hero { text-align: center; padding-block: clamp(2rem, 6vw, 3.5rem) 1.5rem; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); margin: 0; }
.hero h1 span { color: var(--lime); }

/* Film, framed like a screen */
.film {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: 10px;
  background: var(--forest);
  box-shadow: var(--shadow-lift), 0 0 0 4px var(--lime);
}
.film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #111;
}
.film-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.2rem 0.35rem 0.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: #fff;
}
.chip::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 0 3px rgb(229 72 77 / 0.3);
}
.sound {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: var(--lime);
  color: var(--forest);
  font-family: var(--font-head);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.sound:hover { background: #9bd64f; }
.sound svg { width: 1.1rem; height: 1.1rem; }

/* Home: shop + about cards */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.1rem;
  padding-block: 2.5rem 1.1rem;
}
.shop-card { display: flex; flex-direction: column; gap: 1rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.shop-card .thumb {
  background: var(--wash);
  border-radius: calc(var(--radius) - 6px);
  display: grid;
  place-items: center;
  padding: 0.75rem;
}
.shop-card .thumb img { width: 180px; height: 180px; object-fit: contain; }
.shop-card .btn { align-self: flex-start; margin-top: auto; }
.about-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.2rem; background: var(--lime-soft); box-shadow: none; }
.about-card .link-arrow { margin-top: auto; padding-top: 0.8rem; }

/* Home: contact */
.contact {
  text-align: center;
  background: var(--lime);
  color: var(--forest);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 6vw, 3rem) 1.25rem;
  margin-block: 1.1rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.contact::after {
  /* soft speech-bubble tail, echoing the logo */
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
}
.contact .eyebrow { color: var(--forest); opacity: 0.75; }
.contact h2 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 0; }
.contact p { margin: 0.6rem auto 0; max-width: 32rem; }
.contact .btn { margin-top: 1.3rem; font-size: 1.15rem; padding: 0.85rem 1.5rem; overflow-wrap: anywhere; position: relative; z-index: 1; }
.contact-note { font-size: 0.92rem; opacity: 0.8; }

/* Inner page heading */
.page-head { text-align: center; padding-block: clamp(2rem, 6vw, 3.25rem) 1.75rem; }
.page-head h1 { font-size: clamp(2.3rem, 7vw, 3.4rem); margin: 0; }
.page-head p { margin: 0.7rem auto 0; max-width: 36rem; color: var(--grey); font-size: 1.1rem; }

/* Shop */
.shop { padding-block: 0.5rem 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.1rem;
}
.product {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product-img {
  background: var(--wash);
  padding: 1.1rem;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.product-img svg, .product-img img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.product-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-body h3 { font-size: 1.3rem; margin: 0; }
.product-body p { margin: 0; color: var(--grey); font-size: 0.98rem; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.6rem; }
.price { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 1.4rem; color: var(--ink); }
.add {
  border: 0; border-radius: 999px; padding: 0.6rem 1.15rem;
  background: var(--lime); color: var(--forest);
  font-family: var(--font-head); font-size: 1rem; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.add:hover { background: #9bd64f; transform: translateY(-1px); }
.buy-msg { min-height: 1.4em; color: var(--lime-deep) !important; font-weight: 700; }
.shop-note { text-align: center; color: var(--grey); font-size: 0.88rem; margin: 0; }

/* Meet Frankie (CV) page */
.cv { display: flex; flex-direction: column; gap: 1.1rem; padding-block: 0 3.5rem; }
.lead { border-left: 6px solid var(--lime); }
.lead p { font-size: 1.12rem; color: var(--ink); }
.timeline { list-style: none; margin: 0.4rem 0 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: var(--line);
}
.job { position: relative; padding-left: 2rem; }
.job + .job { margin-top: 1.6rem; }
.job::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-soft);
}
.job h3 { font-size: 1.3rem; margin: 0; }
.when {
  display: inline-block;
  margin: 0.35rem 0 0 !important;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--wash);
  color: var(--lime-deep) !important;
  font-size: 0.9rem;
  font-weight: 700;
}
.cv ul.points { margin: 0.6rem 0 0; padding-left: 1.15rem; color: var(--grey); }
.cv ul.points li + li { margin-top: 0.3rem; }
.cv ul.points li::marker { color: var(--lime); }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 0.2rem 0 0; }
.tags li {
  background: var(--wash);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.edu { margin-top: 1rem !important; }
.edu strong { color: var(--ink); }
.hobbies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}
.hobbies li {
  background: var(--wash);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

/* Footer */
.site-foot {
  background: var(--forest);
  color: #cfd8c4;
  margin-inline: -16px;
  padding: 2.5rem 16px calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.site-foot .wrap { display: grid; gap: 1.5rem; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.foot-top img { height: 48px; width: auto; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: #fff; text-decoration: none; font-family: var(--font-head); }
.foot-links a:hover { color: var(--lime); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  padding-top: 1.1rem;
  font-size: 0.9rem;
}
.foot-bottom a { color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.about-card .tache { position: absolute; right: 26px; bottom: 26px; width: 130px; height: auto; fill: var(--forest); opacity: 0.9; transform: rotate(-6deg); pointer-events: none; }
.about-card > *:not(.tache) { position: relative; max-width: 30rem; }

/* Keep the footer at the bottom on short pages */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > .wrap { flex: 1 0 auto; width: 100%; }

/* Home: About, Contact, Shop stacked full width */
.stack { padding-block: 2.5rem 1.1rem; }
.stack + .stack, .contact + .stack { padding-top: 0; }
.contact + .stack { margin-top: -1.4rem; padding-bottom: 3.5rem; }
.about-card { min-height: 12rem; padding-right: 11rem; }
@media (min-width: 640px) {
  .shop-card { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 1.5rem; }
  .shop-card .btn { align-self: center; margin-top: 0; }
}
@media (max-width: 639px) { .about-card { padding-right: 1.6rem; padding-bottom: 5.5rem; } }

/* Home: video with About beside it on wide screens */
.hero-grid { display: grid; gap: 1.1rem; margin-bottom: 2.5rem; }
.hero-grid .about-card { padding-right: 1.6rem; padding-bottom: 6rem; min-height: 0; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
}
.film-date {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--forest);
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-synthesis: none;
}
