/* Tie-Out Engine hub. Look taken from petriumalpha.com: Georgia headings, Helvetica body, #1F5C7A, one white
   sheet on a slate page, short centred rules between sections. */
:root {
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --page: #F8FAFC;
  --sheet: #FFFFFF;
  --well: #F1F5F9;
  --accent: #1F5C7A;
  --accent-ink: #174A62;
  --link: #1F5C7A;
  --serif: Georgia, Times, "Times New Roman", serif;
  --sans: Helvetica, Verdana, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E2E8F0; --muted: #A3B1C4; --line: #22324A; --page: #0A1220; --sheet: #0F1A2C; --well: #15233A;
    --link: #8CC3DE; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E2E8F0; --muted: #A3B1C4; --line: #22324A; --page: #0A1220; --sheet: #0F1A2C; --well: #15233A;
  --link: #8CC3DE; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #94A3B8 transparent; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #1F5C7A; color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--sheet); padding: 8px 12px; z-index: 2; }

/* Nav bar: white, serif links, current page in the accent */
.bar { background: var(--sheet); }
.bar .in { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 72px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: 10px; font: 400 21px/1 var(--serif); color: var(--ink); text-decoration: none; }
.mark:hover { color: var(--ink); }
.tile { width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font: 700 14px/1 var(--serif); }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease); }
.nav a:hover { color: var(--link); }
.nav a[aria-current="page"] { color: var(--link); }
.nav .cta { color: var(--link); border-bottom-color: currentColor; }

/* The sheet */
.sheet { max-width: 1200px; margin: 48px auto 0; background: var(--sheet); padding: 88px clamp(20px, 7vw, 104px) 96px; }
.rule { width: 56px; height: 1px; border: 0; background: var(--ink); opacity: .55; margin: 72px auto; }
section { scroll-margin-top: 24px; }
.sec-title { font-size: clamp(2.1rem, 4.2vw, 3.1rem); margin-bottom: 40px; }

/* Buttons: Georgia bold on the accent, like petriumalpha.com */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 6px; background: var(--accent);
  color: #fff; font: 700 15px/1.2 var(--serif); text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
  transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); line-height: 1.08; }
.lede { margin: 24px 0 0; max-width: 54ch; font-size: 17px; color: var(--ink); }
.shot { display: block; border-radius: 12px; overflow: hidden; background: var(--well); box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35); }
.hero .shot { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }

/* What I automate: centred icon over a serif heading, three across */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; text-align: center; }
.three .ico { color: var(--link); display: grid; place-items: center; margin-bottom: 14px; }
.three h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.three p { margin: 0 auto; max-width: 32ch; font-size: 15px; color: var(--muted); }

/* Tools */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.tool .shot { aspect-ratio: 12 / 8; border: 1px solid var(--line); box-shadow: none; }
.tool .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left;
  transition: transform .6s var(--ease); }
.tool:hover .shot img { transform: scale(1.025); }
.tool h3 { font-size: 1.65rem; margin: 28px 0 10px; }
.tool p { margin: 0; color: var(--muted); max-width: 52ch; }
.tool { display: flex; flex-direction: column; }
.tool .btns { margin-top: auto; padding-top: 22px; }
.host { font-size: 13px; color: var(--muted); align-self: center; }

/* How it works */
.steps { margin: 0; padding-left: 1.3em; max-width: 72ch; }
.steps li { padding-left: .3em; }
.steps li + li { margin-top: 14px; }
.steps li::marker { font-weight: 700; }

/* Closing call */
.close h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); max-width: 22ch; }
.close p { margin: 18px 0 0; }

/* Prose pages */
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 28px; }
.prose h2 { font-size: 1.7rem; margin: 44px 0 10px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.updated { font-size: 14px; color: var(--muted); }

/* Footer: serif wordmark left, links right, copyright centred */
.foot { max-width: 1200px; margin: 0 auto; padding: 72px 24px 40px; color: var(--ink); font-size: 14px; }
.foot .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot .name { font: 400 24px/1.2 var(--serif); margin: 0 0 14px; }
.foot p { margin: 0 0 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { color: var(--link); }
.foot .copy { margin-top: 56px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .hero .shot { transform: none; }
  .three { grid-template-columns: 1fr; gap: 44px; }
  .tools { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 600px) {
  .bar .in { padding: 14px 16px; justify-content: center; }
  .nav { justify-content: center; gap: 2px 18px; }
  .nav .wide { display: none; }
  .sheet { margin-top: 0; padding: 56px 16px 64px; }
  .rule { margin: 56px auto; }
  .foot { padding: 56px 16px 32px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero .shot { transform: none; }
}
