/* julianmullins.com
 *
 * One page, no scripts. It sits beside dalaric.com rather than inside it, so
 * the body face is the same system stack dalaric.com uses, while the display
 * face and the sea palette are this page's own. The palette is taken from the
 * hero image: deep water for the dark ground, the glow of its network lines
 * for the accent.
 *
 * Light is the default. Dark follows the operating system; the data-theme
 * selectors exist so a host that stamps a theme can force either. The hero is
 * the same in both, because it is a photograph with its own light.
 */

/* Both faces are served from this site, so the page makes no request to any
 * third party. Latin subsets as Google Fonts cuts them, under the SIL Open
 * Font License; the licences sit beside the files in /fonts/. Newsreader is
 * the variable file, carrying the optical size axis and weights 400 to 500. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/martian-mono-latin.woff2") format("woff2");
}

:root {
  --ground: #EEF3F6;
  --card: #FFFFFF;
  --ink: #0E1B24;
  --muted: #4F5F6B;
  --border: #D8E2E8;
  --accent: #0A6B77;
  --accent-hover: #07515A;
  --accent-soft: #E0F0F2;
  --shadow: 0 1px 2px rgba(14, 27, 36, 0.05), 0 8px 24px -12px rgba(14, 27, 36, 0.14);

  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  --container: 72rem;
  --edge: clamp(1rem, 4vw, 2.5rem);
  --gap: clamp(1rem, 2vw, 1.5rem);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #081218;
    --card: #0F1C24;
    --ink: #E3ECF0;
    --muted: #9BADB8;
    --border: #1D2E38;
    --accent: #7ED0DB;
    --accent-hover: #A8E2E9;
    --accent-soft: #10323B;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #081218;
  --card: #0F1C24;
  --ink: #E3ECF0;
  --muted: #9BADB8;
  --border: #1D2E38;
  --accent: #7ED0DB;
  --accent-hover: #A8E2E9;
  --accent-soft: #10323B;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--edge));
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* ---- Hero ------------------------------------------------------------------
 * The image fills the width and is cropped to the band's height, held on
 * Durdle Door so the arch survives the tall crop a phone gets. The scrim runs
 * from the bottom on narrow screens, where the text sits under the sky, and
 * from the left on wide ones, where the text sits beside the arch.
 */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(28rem, 64vh, 40rem);
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  background: #06121A;
  overflow: hidden;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero img { object-fit: cover; object-position: 46% 62%; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(4, 14, 20, 0.92) 0%, rgba(4, 14, 20, 0.7) 38%, rgba(4, 14, 20, 0.15) 75%, rgba(4, 14, 20, 0.35) 100%);
}
@media (min-width: 64rem) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(4, 14, 20, 0.86) 0%, rgba(4, 14, 20, 0.6) 40%, rgba(4, 14, 20, 0) 72%),
      linear-gradient(0deg, rgba(4, 14, 20, 0.5) 0%, rgba(4, 14, 20, 0) 30%);
  }
}

.mast {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}
.mast a { color: inherit; text-decoration: none; }
.mast a:hover { color: #FFFFFF; }
.mast a:focus-visible { outline-color: #FFFFFF; }

.hero-body {
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

.name {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(3rem, 1.6rem + 6vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--light { background: #FFFFFF; color: #0A3E47; }
.btn--light:hover { background: #DDF2F5; color: #07313A; }
.btn--ghost { color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.btn--accent { background: var(--accent); color: var(--card); }
.btn--accent:hover { background: var(--accent-hover); color: var(--card); }
.btn--accent:focus-visible { outline-color: var(--accent); }

/* ---- Sections -------------------------------------------------------------- */
/* Qualified with the class on purpose: .container sets the side padding with
   a shorthand, and a bare main selector loses to it and drops to zero. */
main.container { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 1rem; }

section + section { margin-top: clamp(2.5rem, 6vw, 4rem); }

.section-head { margin-bottom: 1.5rem; max-width: 40rem; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---- Cards -----------------------------------------------------------------
 * One column on a phone, two from tablet width up. Four cards fill two rows
 * of two exactly, and the paragraphs are long enough that four across would
 * read as narrow columns on anything short of a very wide screen.
 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 42rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.service {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.service:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
@media (prefers-reduced-motion: reduce) {
  .service { transition: none; }
  .service:hover { transform: none; }
}

.icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon svg { width: 1.5rem; height: 1.5rem; }

.service h3 {
  margin: 0.25rem 0 0;
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.service p { margin: 0; color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding: 0.5rem 0 0;
  list-style: none;
}
.tags li {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--ink);
}

/* ---- Background and contact ------------------------------------------------ */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}
@media (min-width: 64rem) {
  .pair { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

.prose { display: grid; gap: 1rem; align-content: start; }
.prose h2 { margin-bottom: 0.25rem; }
.prose p { margin: 0; max-width: 42rem; }

.contact { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.contact h2 { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem); }
.contact p { margin: 0; color: var(--muted); }
.contact .meta { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.02em; }
.contact .btn { margin-top: auto; }

/* ---- Footer ---------------------------------------------------------------- */
.foot {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.foot p { margin: 0; }

/* ---- Not found page -------------------------------------------------------- */
.hero--short { min-height: clamp(22rem, 50vh, 30rem); }
