/* cloudbrk.io. One page, light only.
   Built from drawings/round-19-the-page.html. */

@font-face {
  font-family: "Varela Round";
  src: url("fonts/varela-round-v21-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F8F2E3;
  --ink: #1F2937;
  --navy: #1F4E6E;
  --yellow: #FEDC7B;
  --paper: #FFFFFF;
  --line: #DDD6C4;
  --muted: #6B7280;
  --soft: #3B4553;
  --brand: "Varela Round", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--brand); font-weight: 400; margin: 0; text-wrap: balance; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.column { max-width: 940px; margin: 0 auto; padding-inline: 28px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; }
.brandmark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--brand); font-size: 20px; letter-spacing: .2em; }
.brandmark img { width: 38px; height: 38px; }
.links { display: flex; gap: 22px; font-size: 16px; }
.links a, .menu a { color: var(--ink); text-decoration: none; }
.links a:hover, .menu a:hover { text-decoration: underline; }
.menu { display: none; position: relative; font-size: 16px; }
.menu summary { list-style: none; cursor: pointer; padding: 6px 2px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 100%; z-index: 2; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 6px 16px; display: flex; flex-direction: column; min-width: 160px; }
.menu nav a { padding: 9px 0; }

/* The wave */
.wave { width: 100%; height: clamp(215px, 38vw, 470px); object-fit: cover; object-position: 50% 70%; }

/* Name, line and facts */
.intro { padding-top: 26px; }
.who { display: flex; align-items: center; gap: 24px; }
.who img { width: 138px; height: 138px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--ink); flex: none; }
.who h1 { font-size: 46px; line-height: 1.08; }
.who p { font-family: var(--brand); font-size: 25px; line-height: 1.2; margin-top: 8px; text-wrap: balance; }
.facts { list-style: none; margin: 22px 0 0; padding: 10px 2px; display: flex; flex-wrap: wrap; gap: 6px 26px; border-block: 2px solid var(--ink); font-size: 17px; }

/* Sections */
section { padding-top: 34px; scroll-margin-top: 8px; }
section h2 { font-size: 28px; border-top: 3px solid var(--ink); padding-top: 14px; margin-bottom: 16px; }
.when { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); font-weight: 700; }
.pill { align-self: flex-start; margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.3; border: 2px solid var(--ink); border-radius: 99px; padding: 4px 16px; background: var(--paper); color: var(--ink); text-decoration: none; }
.pill:hover { background: var(--cream); }

/* Experience */
.chapters { display: flex; flex-direction: column; gap: 14px; }
.chap { position: relative; display: flex; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
/* The photo fills the card's height without setting it. */
.chap > img { position: absolute; inset: 0 auto 0 0; width: 26%; height: 100%; object-fit: cover; }
.chap > img.swim { object-position: 40% 60%; }
.chap > img + div { margin-left: 26%; min-height: 150px; }
.chap > div { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chap h3 { font-size: 22px; line-height: 1.22; }

/* Things I've built */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.work { border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.work > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 2px solid var(--ink); }
.work > div { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.work h3 { font-size: 22px; line-height: 1.22; }
.work.wide { grid-column: 1 / -1; }
.work.wide > img { aspect-ratio: 32 / 10; }

/* Contact */
.contact { display: flex; align-items: center; gap: 18px; }
.contact > img { display: none; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--ink); flex: none; }
.contact h3 { font-size: 26px; margin-bottom: 4px; }
.contact a.plain { display: block; color: var(--ink); text-decoration: none; }
.contact a.plain:hover { text-decoration: underline; }
.btn { display: inline-block; margin-top: 12px; background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; border: 2px solid var(--ink); border-radius: 99px; padding: 7px 22px; }
.btn:hover { filter: brightness(.96); }

/* Footer */
footer { margin-top: 40px; margin-bottom: 36px; padding-top: 12px; border-top: 2px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; color: var(--muted); }
footer button { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; }

/* The full story */
dialog { padding: 0; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 48px); box-shadow: 0 12px 0 rgba(31, 41, 55, .18); overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(255, 255, 255, .78); }
.shead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 16px 20px 12px; border-bottom: 2px solid var(--line); }
.shead h2 { font-size: 24px; line-height: 1.18; margin-top: 2px; }
.x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; font-size: 15px; line-height: 1; padding: 0; }
.sbody { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.sbody > p { max-width: 66ch; }
.sbody img { border: 2px solid var(--ink); border-radius: 10px; }
.sbody .note { font-size: 15px; color: var(--soft); }
.withpic { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.withpic img { flex: 0 1 250px; min-width: 0; }
.withpic > p { flex: 1 1 300px; min-width: 0; }
.phases { list-style: none; margin: 0 0 0 7px; padding: 0; border-left: 3px solid var(--ink); }
.phases li { position: relative; padding: 0 0 16px 20px; max-width: 66ch; }
.phases li:last-child { padding-bottom: 0; }
.phases li::before { content: ""; position: absolute; left: -9.5px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); }
.phases b { display: block; font-family: var(--brand); font-weight: 400; font-size: 19px; line-height: 1.25; }
.shots { display: flex; gap: 14px; align-items: flex-start; }
.shots img { min-width: 0; }
.shots .tall { flex: 0 0 24%; }
.shots .broad { flex: 1 1 0; }
.sfoot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 2px solid var(--line); margin-top: auto; }
.sfoot button { background: none; border: 0; padding: 0; font-size: 16px; font-weight: 700; color: var(--navy); }
.sfoot button:hover { text-decoration: underline; }
.sfoot .last { margin-left: auto; }
.credits { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }

/* Phone */
@media (max-width: 700px) {
  body { font-size: 17px; }
  .column { padding-inline: 18px; }
  .brandmark { font-size: 17px; }
  .brandmark img { width: 32px; height: 32px; }
  .links { display: none; }
  .menu { display: block; }
  .intro { padding-top: 18px; }
  .who img { display: none; }
  .who h1 { font-size: 34px; }
  .who p { font-size: 20px; }
  .facts { margin-top: 16px; gap: 4px 18px; font-size: 16px; }
  section { padding-top: 28px; }
  section h2 { font-size: 25px; }
  .chap { flex-direction: column; }
  .chap > img { position: static; width: 100%; height: 130px; }
  .chap > img + div { margin-left: 0; min-height: 0; }
  .chap > div { padding: 12px 14px 14px; }
  .chap h3, .work h3 { font-size: 20px; }
  .works { grid-template-columns: 1fr; }
  .work.wide > img { aspect-ratio: 16 / 9; }
  .contact > img { display: block; }
  dialog { width: 100%; max-width: 100%; max-height: calc(100dvh - 34px); margin: auto 0 0; border-width: 2px 0 0; border-radius: 18px 18px 0 0; box-shadow: none; }
  .shead { padding: 14px 16px 10px; }
  .shead h2 { font-size: 21px; }
  .sbody { padding: 14px 16px 18px; }
  .sfoot { padding: 12px 16px; }
}
