/* jamesdoeland.com, custom build of 22-10-2026.
   Every number here was measured on the Semplice site it replaces (Playwright, 1440x900 and
   390x844). The type is Arial on purpose: Semplice asked for Open Sans over http://, browsers
   block that on an https page, so for years every visitor has seen the Arial fallback. That is
   the look being kept. */

:root {
  --petrol: #1d5b7d;
  --share: #1b5a7d;
  --link: #1573dd;
  --container: 1170px;
  --gutter: 30px;
  --nav-h: 81px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 32px;
  color: #333;
  background: #fff;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.container { position: relative; max-width: var(--container); margin: 0 auto; }

/* Page-load line along the top, as Semplice's loader bar. */
.loadbar {
  position: fixed; top: 0; left: 0; z-index: 100;
  height: 3px; width: 0; background: var(--petrol);
  transition: width .6s ease-out, opacity .4s ease .6s;
}
.loadbar.done { width: 100%; opacity: 0; }

/* Navigation: transparent over the cover, petrol at the page's own opacity once past it. */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
}
.navbar-bg {
  position: absolute; inset: 0;
  background: var(--petrol); opacity: 0;
  transition: opacity .3s ease;
}
body.no-cover .navbar-bg,
body.nav-solid .navbar-bg { opacity: var(--nav-opacity); }
.logo { position: relative; display: block; margin-left: 40px; width: 40px; height: 41px; }
.menu { position: relative; margin-left: 23px; }
.menu ul { display: flex; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: block;
  padding: 0 25px;
  font-size: 20px; line-height: var(--nav-h); letter-spacing: 1px;
  color: #fff; text-decoration: none;
  transition: opacity .2s;
}
.menu a:hover { opacity: .75; }
.menu-toggle { display: none; }

/* Cover: full screen, photo over the page's cover colour. The script moves the photo up at a
   fifth of the scroll speed, which is what uncovers the petrol band under the arrow. */
.cover {
  position: relative;
  height: 100vh; height: 100svh; min-height: 480px;
  overflow: hidden;
  background: var(--cover-color);
}
.cover-image {
  position: absolute; inset: 0;
  background-color: var(--cover-color);
  background-image: var(--cover-img);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 0;
  opacity: var(--cover-opacity);
  will-change: background-position;
}
.cover.zoom .cover-image { animation: cover-zoom 24s linear forwards; will-change: transform; }
@keyframes cover-zoom { from { transform: scale(1); } to { transform: scale(1.2); } }

.cover > .container { height: 100%; }
.headline { position: absolute; left: 0; right: 0; animation: fade-in .8s ease both; }
.headline.title-top { top: 177px; }
.headline.middle { top: 50%; transform: translateY(-50%); }
.headline.bottom { bottom: 96px; }
.headline.left { text-align: left; }
.headline.center { text-align: center; }
.headline.right { text-align: right; }
.headline-image { display: inline-block; width: 64.102564%; }
.headline h1.logo-h1 { font-size: 0; line-height: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.headline h1 {
  margin: 0;
  font-size: var(--h1); line-height: 1.2; font-weight: 300;
  color: #fff;
}
.headline h1.uppercase { text-transform: uppercase; }
.headline h1 a { text-decoration: none; }

.see-more {
  position: absolute; left: 50%; bottom: 32px;
  width: 53px; height: 20px; margin-left: -26.5px;
  fill: var(--arrow, #fff);
  transition: transform .3s ease;
}
.see-more:hover { transform: scale(1.15); }

.fade-content { animation: fade-in .8s ease .2s both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Portfolio: heading and the seven tiles. The seventh sits in the third column, as the
   Semplice masonry put it. */
body.no-cover main { padding-top: calc(var(--nav-h) + 40px); }
.portfolio-heading {
  margin: 0 auto; padding: 20px 0;
  max-width: var(--container);
  font-size: 28px; line-height: 40px; font-weight: 700;
  text-align: center; color: var(--petrol);
}
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  max-width: var(--container); margin: 0 auto var(--gutter);
}
.tile { position: relative; display: block; aspect-ratio: 370 / 247; overflow: hidden; }
.tile:nth-child(7) { grid-column: 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-hover {
  position: absolute; inset: 0;
  background-color: rgba(114, 114, 114, var(--tint));
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: 0; transition: opacity .3s;
}
.tile:hover .tile-hover, .tile:focus-visible .tile-hover { opacity: 1; }

/* Over mij */
.text-block { margin-left: 100px; width: 770px; max-width: 100%; padding: 40px 0 96px; color: var(--petrol); }
.text-block p { margin: 0 0 32px; font-size: 22px; line-height: 34px; font-weight: 300; }
.text-block .lead { margin: 0 0 32px; font-size: 32px; line-height: 44px; font-weight: 700; }
.text-block a { color: var(--link); text-decoration: none; }

/* Category pages: every photo the full width of the window. */
.work-img { margin: 0; }
.work-img img { width: 100%; }

/* Share */
.share { padding: 96px 0; text-align: center; background: #fff; }
.share p {
  margin: 0 0 6px;
  font-size: 15px; line-height: 26px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--share);
}
.share-icons { display: flex; justify-content: center; gap: 16px; }
.share-icons a { display: block; width: 36px; height: 26px; fill: var(--share); }
.share-icons svg { width: 100%; height: 100%; }
.share-icons a:hover { opacity: .7; }

.top-button {
  position: fixed; right: 50px; bottom: 60px; z-index: 40;
  width: 53px; height: 20px;
  fill: var(--petrol);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.top-button.show { opacity: 1; visibility: visible; transition: opacity .3s; }

/* Semplice's breakpoints: container 940 and 724, then fluid. The cover headline shrinks by
   the same factors it used. */
@media (min-width: 980px) and (max-width: 1199px) {
  :root { --container: 940px; }
  .headline h1 { font-size: calc(var(--h1) * .667); }
  .text-block { margin-left: 80px; width: 620px; }
}
@media (min-width: 768px) and (max-width: 979px) {
  :root { --container: 724px; }
  .headline h1 { font-size: calc(var(--h1) * .588); }
  .text-block { margin-left: 0; width: 100%; }
  .menu a { padding: 0 16px; }
}
@media (max-width: 767px) {
  :root { --container: 100%; }
  .container, .portfolio-heading { padding-left: 20px; padding-right: 20px; }
  .headline { left: 20px; right: 20px; }
  .headline.title-top { top: 115px; }
  .see-more { bottom: 18px; }
  .headline h1 { font-size: calc(var(--h1) * .385); }
  .logo { margin-left: 20px; }
  .menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; margin: 0;
    background: #fff;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility 0s .35s;
  }
  .menu ul { display: block; padding: 10px 0 20px; }
  .menu a { padding: 0 20px; line-height: 56px; color: var(--petrol); }
  body.menu-open .menu { max-height: 100vh; visibility: visible; transition: max-height .35s ease; }
  body.menu-open .navbar-bg { opacity: 1; }
  .menu-toggle {
    display: block; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; padding: 0; border: 0; background: none; fill: #fff; cursor: pointer;
  }
  .menu-toggle .icon-close, body.menu-open .menu-toggle .icon-open { display: none; }
  body.menu-open .menu-toggle .icon-close { display: block; }
  .tiles { grid-template-columns: 1fr; gap: 18px; padding: 0 20px; }
  .tile:nth-child(7) { grid-column: auto; }
  .text-block { margin-left: 0; width: 100%; }
  .text-block p { font-size: 18px; line-height: 28px; margin-bottom: 24px; }
  .text-block .lead { font-size: 24px; line-height: 32px; margin-bottom: 24px; }
  .top-button { right: 26px; bottom: 34px; }
}
@media (max-width: 567px) {
  .headline h1 { font-size: calc(var(--h1) * .294); }
}

@media (prefers-reduced-motion: reduce) {
  .cover.zoom .cover-image, .headline, .fade-content { animation: none; }
  .loadbar { display: none; }
}

/* Travels (23-11-2026): country tiles carry their name, the country pages end with the book
   and a link to the globe. */
.tile.country .country-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  color: #fff; font-size: 15px; letter-spacing: 3px; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0, 0, 0, .45));
}
.travel-foot { padding-top: 64px; }
.travel-foot .travel-when { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }
.travel-foot em { font-style: italic; }
