/* TwoReels: the look of twocode.nl (website/twocode-site/assets/new/site.css), shared by the home page and the maker:
   colours, fonts, the TwoCode button, the header, section headings and the footer. */
@font-face { font-family: "DM Sans"; src: url(/assets/fonts/dm-sans-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/assets/fonts/dm-sans-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/assets/fonts/dm-sans-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/assets/fonts/geist-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/assets/fonts/geist-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/assets/fonts/geist-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #f7f7f4;
  --surface: #eeede6;
  --ink: #251f19;
  --text: #68615a;
  --muted: #948b81;
  --orange: #f48d16;
  --orange-soft: #fdf0de;
  --dash: #d4cdc7;
  --green: #30d158;
  --ok: #1f8f47;
  --display: "DM Sans", sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --ease-button: linear(0, .119, .33, .528, .683, .793, .868, .917, .949, .969, .981, .989, .993, .996, .998, .999, .999, 1, 1, 1, 1);
  --ease-menu: linear(0, .11, .31, .503, .657, .771, .85, .904, .939, .962, .976, .985, .991, .994, .997, .998, 1);
  --ease-appear: cubic-bezier(.2, .8, .2, 1);
  --dur-button: .8s;
  --card-shadow: 0 12px 24px -12px rgb(37 31 25 / .15);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.2 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- the TwoCode button: ink, an orange square with an arrow that slides on hover ---------- */
.tc-btn { position: relative; display: flex; align-items: center; gap: 12px; width: max-content; height: 44px; padding: 4px 12px 4px 4px; border-radius: 8px; background: var(--ink); color: #fff; overflow: hidden; flex: none; }
.tc-btn .sq { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 4px; background: var(--orange); overflow: hidden; }
.tc-btn .arr { display: flex; justify-content: flex-end; width: 25px; height: 25px; }
.tc-btn .arr i { flex: none; width: 24px; height: 24px; background: var(--ink); -webkit-mask: url(/assets/icons/arrow.svg) center / 24px 24px no-repeat; mask: url(/assets/icons/arrow.svg) center / 24px 24px no-repeat; transition: transform var(--dur-button) var(--ease-button); }
.tc-btn .lbl { display: flex; flex-direction: column; height: 17px; overflow: hidden; }
.tc-btn .lbl span { display: block; white-space: nowrap; font: 500 14px/17px var(--body); opacity: .9; transition: transform var(--dur-button) var(--ease-button); }
.tc-btn:hover .arr i { transform: translateX(24px); }
.tc-btn:hover .lbl span { transform: translateY(-17px); }
.tc-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 20; height: 72px; padding: 16px 16px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(60px); -webkit-backdrop-filter: blur(60px); }
@media (min-width: 810px) { header { padding: 20px 20px 0; } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; height: 40px; margin: 0 auto; }
@media (min-width: 810px) { .nav { height: 52px; } }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo img { width: 38px; height: 32px; object-fit: contain; }
.logo span { font: 500 22px/1 var(--display); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.links { display: none; list-style: none; padding: 0; align-items: center; gap: 12px; font: 500 14px/16.8px var(--body); }
.links .dot { width: 4px; height: 4px; background: var(--ink); }
@media (min-width: 810px) { .links { display: flex; } }
.lang { display: flex; gap: 2px; font: 500 13px/1 var(--body); }
.lang button { padding: 6px 7px; border-radius: 6px; color: var(--muted); }
.lang button[aria-pressed="true"] { color: var(--ink); background: var(--surface); }
@media (max-width: 459.98px) { header .tc-btn { display: none; } }

/* ---------- sections ---------- */
.section { display: flex; justify-content: center; width: 100%; padding: 80px 20px; }
@media (max-width: 1199.98px) { .section { padding: 40px 20px; } }
@media (max-width: 809.98px) { .section { padding: 40px 16px; } }
.container { display: flex; flex-direction: column; gap: 40px; width: 100%; max-width: 1240px; }
.hgroup { display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font: 600 14px/1 var(--body); color: var(--orange); }
.heading { font: 500 52px/1.05 var(--display); color: var(--ink); }
.heading em { font-weight: 400; color: var(--muted); }
.copy { font: 400 16px/1.2 var(--body); color: var(--text); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-head .hgroup { max-width: 700px; }
.sec-head > .copy { max-width: 420px; }
.center-head { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; text-align: center; }
.center-head .hgroup { align-items: center; width: 700px; max-width: 100%; }
@media (max-width: 1199.98px) { .heading { font-size: 42px; } .sec-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 809.98px) { .heading { font-size: 32px; } }
.js .reveal { opacity: .001; }
.js .reveal.is-visible { animation: reveal .65s var(--ease-appear) both; }
@keyframes reveal { from { opacity: .001; transform: translateY(150px); } to { opacity: 1; transform: none; } }

/* ---------- footer (like twocode.nl) ---------- */
footer { display: flex; justify-content: center; width: 100%; margin-top: 60px; padding: 40px 20px 0; background: var(--surface); overflow: clip; }
@media (max-width: 809.98px) { footer { padding: 40px 16px 0; } }
.foot { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1240px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--dash); }
.foot-top p, .foot-bottom { font: 400 12px/16px var(--body); color: var(--text); }
.foot-mid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.foot-mid > p { max-width: 300px; font: 400 14px/16.8px var(--body); color: var(--text); }
.foot-links { display: flex; gap: 40px; font: 400 14px/16.8px var(--body); }
.foot-links div { display: flex; flex-direction: column; gap: 12px; }
.foot-word { display: flex; align-items: center; justify-content: center; height: 215px; overflow: hidden; color: rgb(37 31 25 / .063); font: 500 clamp(64px, 17vw, 236px)/1 var(--display); letter-spacing: -0.06em; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 32px; }
.foot-bottom a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 809.98px) { .foot-mid, .foot-bottom { flex-direction: column; } .foot-word { height: 120px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal.is-visible { animation: none !important; }
  .js .reveal { opacity: 1; }
  .tc-btn .arr i, .tc-btn .lbl span { transition: none; }
}
