/* LikeClockwork's home page (page.html) and Products page (products.html) on likeclockwork.org;
   net.js draws the network behind them, home.js the entrances. Scoped to .lc so the WordPress
   theme and these styles leave each other alone. The same blue, faces and square corners as
   Handoff's page (site/handoff/handoff.css). */

.lc {
  --ground: #ffffff;
  --paper: rgba(222, 231, 239, 0.55);   /* #edf2f6 on white, the network faint through it (net.js) */
  --paper-2: #e2e9ef;
  --ink: #13202a;
  --soft: #4b5661;
  --accent: #1ea2ec;
  --accent-down: #1590d4;
  --dark: #1c1d20;
  --on-dark: #f1f3f5;
  --on-dark-soft: #aab1b8;

  --display: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --text: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --t-small: 14px;
  --t-body: 18px;
  --t-mid: clamp(24px, 2.1vw, 32px);
  --t-display: clamp(40px, 4.4vw, 68px);
  --t-hero: clamp(44px, min(6.4vw, 11svh), 104px);
  --t-lede: clamp(18px, 1.4vw, 21px);

  --m: clamp(16px, 2.2vw, 32px);
  --gap: 12px;
  --section: clamp(64px, 8vw, 120px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-align: left;
  overflow-x: clip;
}
.lc *, .lc *::before, .lc *::after { box-sizing: border-box; }
.lc :where(h1, h2, h3, p, ol, ul, figure) { margin: 0; }
.lc :where(h1, h2, h3) { font-family: var(--display); font-weight: 600; color: inherit; text-wrap: balance; letter-spacing: -0.01em; }
.lc img { display: block; max-width: 100%; height: auto; }
.lc a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lc a:hover { color: var(--accent-down); }
.lc a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.lc .lc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--ink);
  font: 500 var(--t-body)/1.2 var(--text);
  text-decoration: none;
  transition: background-color 160ms ease, transform 140ms var(--ease);
}
.lc .lc-btn:hover { background: var(--accent-down); color: var(--ink); }
.lc .lc-btn:active { transform: scale(0.97); }
.lc .lc-btn--ink { background: var(--ink); color: var(--ground); }
.lc .lc-btn--ink:hover { background: #24384a; color: var(--ground); }
.lc .lc-btn--bar { min-height: 40px; padding: 0 16px; font-size: var(--t-small); }

/* Bar. */
.lc-bar { display: flex; align-items: center; gap: 32px; padding: 14px var(--m); }
.lc-bar__name { font: 600 var(--t-mid)/1 var(--display); text-decoration: none; color: var(--accent-down) !important; }
.lc-bar__nav { display: flex; gap: 28px; margin-left: auto; font-size: var(--t-small); }
.lc-bar__nav a { text-decoration: none; }

/* Hero: the words on the network (net.js), the free tools along its foot. */
.lc-hero {
  display: flex;
  flex-direction: column;
  min-height: min(calc(100svh - 68px), 920px);
  padding: 0 var(--m) var(--m);
}
.lc-hero__words {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4svh, 56px) clamp(0px, 3vw, 48px);
}
.lc-hero__tag { font: 600 var(--t-mid)/1.1 var(--display); color: var(--soft); }
.lc-hero h1 { margin-top: clamp(8px, 1.6svh, 20px); font-size: var(--t-hero); line-height: 1; letter-spacing: -0.035em; max-width: 16ch; }
.lc-lede { margin-top: clamp(16px, 3svh, 32px); max-width: 52ch; font-size: var(--t-lede); }
.lc-get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(16px, 3svh, 36px); }
.lc-get__alt { font-size: var(--t-small); }

/* The free tools along the foot of the first screen: each one's name and its job. */
.lc-strip {
  display: grid;
  gap: 16px;
  background: var(--paper);
  padding: clamp(16px, 2.6svh, 28px) clamp(20px, 2.4vw, 32px);
}
.lc-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.lc-strip__head h2 { font-size: var(--t-mid); line-height: 1.1; }
.lc-strip__head a { font-size: var(--t-small); }
.lc-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px clamp(16px, 2vw, 32px); }
.lc-strip li a { display: block; text-decoration: none; }
.lc-strip__job { display: block; font-size: 16px; line-height: 1.45; max-width: 30ch; }
.lc-strip__name { display: block; margin-bottom: 4px; font: 600 clamp(22px, 1.8vw, 28px)/1.15 var(--display); letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) {
  .lc-strip li a:hover .lc-strip__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}

/* Products: the title, one row for each tool, then what comes next. */
.lc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px var(--gap);
  align-items: end;
  padding: clamp(48px, 9svh, 112px) calc(var(--m) + clamp(0px, 3vw, 48px)) clamp(40px, 6svh, 72px);
}
.lc-head h1 { font-size: var(--t-hero); line-height: 0.95; letter-spacing: -0.04em; }
.lc-head .lc-lede { margin: 0; }
.lc-products { padding: 0 var(--m); display: grid; gap: var(--gap); }
.lc-product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); }
.lc-product__pic { margin: 0; background: var(--accent); padding: clamp(20px, 3vw, 48px); display: flex; align-items: center; justify-content: center; }
.lc-product--dark .lc-product__pic { background: var(--dark); }
.lc-product__pic img { width: 100%; }
.lc-product__words { background: var(--paper); padding: clamp(28px, 3.5vw, 56px); display: flex; flex-direction: column; align-items: flex-start; }
.lc-product h2 { font-size: var(--t-display); line-height: 1; letter-spacing: -0.03em; }
.lc-product__line { margin-top: 16px; font: 600 var(--t-mid)/1.25 var(--display); letter-spacing: -0.01em; max-width: 24ch; }
.lc-product__line + p { margin-top: 20px; max-width: 46ch; }
.lc-product__where { margin-top: 16px; font-size: var(--t-small); color: var(--soft); }
.lc-product__go { margin-top: auto; padding-top: 32px; }
.lc-more {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px var(--gap);
  align-items: end;
  background: var(--paper);
  padding: clamp(56px, 7vw, 112px) clamp(24px, 4vw, 56px);
}
.lc-more__words p { max-width: 44ch; }
.lc-more h2 { font-size: var(--t-display); line-height: 1; letter-spacing: -0.03em; }
.lc-more__mail { margin-top: 16px; font: 600 clamp(24px, 2.8vw, 44px)/1.1 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.lc-more__mail a:hover { color: var(--accent-down); }
.lc-bar__nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* What we do: six services set as a list in two columns of type. */
.lc-work {
  margin-top: var(--section);
  padding: 0 calc(var(--m) + clamp(0px, 3vw, 48px));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 24px;
}
.lc-work__side { grid-column: 1 / 5; align-self: start; }
.lc-work h2 { font-size: var(--t-display); line-height: 1; letter-spacing: -0.03em; }
.lc-work__list { grid-column: 5 / 13; align-self: start; list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; counter-reset: lc-work; }
.lc-work__list li { counter-increment: lc-work; }
.lc-work__list h3 { font-size: var(--t-mid); line-height: 1.2; }
.lc-work__list p { margin-top: 8px; max-width: 38ch; }

/* Contact: the address set large on the blue. */
.lc-contact { margin: var(--section) var(--m) 0; background: var(--accent); padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px var(--gap); align-items: end; }
.lc-contact h2 { font-size: var(--t-display); line-height: 1.05; letter-spacing: -0.03em; max-width: 15ch; }
.lc-contact h2 + p { margin-top: 24px; max-width: 44ch; }
.lc-contact__mail { font: 600 clamp(26px, 3.4vw, 52px)/1.1 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.lc-contact__mail a:hover { color: var(--ground); }
.lc-contact__alt { margin-top: 16px; font-size: var(--t-small); }
.lc-contact__alt a:hover { color: var(--ground); }

.lc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 28px var(--m) 32px; font-size: var(--t-small); color: var(--soft); }
.lc-foot > p { max-width: 70ch; }
.lc-foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* Entrances: with the script, the parts of each section rise into place in turn as it arrives.
   Movement only, so nothing is ever hidden. */
@media (prefers-reduced-motion: no-preference) {
  .lc.js .lc-reveal { transform: translateY(28px); transition: transform 800ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .lc.js .lc-reveal.is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lc .lc-btn:active { transform: none; }
}

@media (max-width: 560px) {
  .lc-work__list { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .lc-work__side { grid-column: 1 / -1; margin-bottom: 40px; }
  .lc-work__list { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .lc-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .lc-bar { gap: 16px; }
  .lc-bar__nav { display: none; }
  .lc-bar .lc-btn--bar { margin-left: auto; }
  .lc-hero { min-height: 0; }
  .lc-hero__words { padding: 48px 4px 40px; }
  .lc-strip { padding: 20px 16px; }
  .lc-head { grid-template-columns: 1fr; padding: 48px calc(var(--m) + 4px) 40px; }
  .lc-product, .lc-more { grid-template-columns: 1fr; }
  .lc-product__pic { padding: 16px; }
  .lc-product__words { padding: 32px 20px; }
  .lc-more { padding: 48px 20px; }
  .lc-hero h1 { font-size: min(9.6vw, 64px); }
  .lc-work { padding: 0 calc(var(--m) + 4px); }
  .lc-work__list { gap: 32px 28px; }
  .lc-contact { padding: 40px 20px; }
}

@media (max-width: 1080px) {
  .lc-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lc-strip ul { grid-template-columns: 1fr; }
  .lc-contact { grid-template-columns: 1fr; }
}
