/* vineelp.com: Frutiger Metro / Lumia pivot style */

body { margin: 0; }
a { color: #005a9e; text-decoration: none; }
a:hover { color: #003d6b; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.m {
  box-sizing: border-box;
  overflow: hidden;
  min-height: 100vh;
  padding: 40px 0 48px;
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #1a1a1a;
  background: #fff;
}
.pad {
  padding-left: clamp(20px, 4.4vw, 56px);
  padding-right: clamp(20px, 4.4vw, 56px);
}
.wrap { max-width: 1180px; }

/* small app title above the pivot */
.app {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* the big menu: current page first, the rest in gray, running off the edge.
   On phones it scrolls sideways like the Lumia pivot. */
.pivot {
  display: flex;
  gap: 0 clamp(24px, 3vw, 44px);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding-top: 2px;
  padding-bottom: 6px;
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -.03em;
}
.pivot::-webkit-scrollbar { display: none; }
.pivot a { color: #8f8f8f; flex-shrink: 0; }
.pivot a:hover { color: #555; }
.pivot a.on { color: #1a1a1a; }

.h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 300; letter-spacing: -.02em; }
.title { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; font-weight: 300; letter-spacing: -.02em; }
.muted { color: #5a5a5a; }
.light { font-weight: 300; }

/* layout helpers */
.row { display: flex; flex-wrap: wrap; gap: 48px; }
.col-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.col-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.section { padding-top: 40px; }

/* tiles */
.tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tiles.wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tile {
  box-sizing: border-box;
  min-height: 190px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}
.tile:hover { color: #fff; outline: 4px solid rgba(0,0,0,.18); }
.tile .num { font-size: 48px; font-weight: 300; line-height: 1; }
.tile .ttl { font-size: 18px; font-weight: 600; }
.tile .dsc { font-size: 15px; }
.tile .lnk { font-size: 15px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tile .lnk a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.photo { width: 200px; height: 200px; object-fit: cover; display: block; }
.biglinks { display: flex; flex-direction: column; gap: 6px; font-size: 22px; font-weight: 300; }
.inline-list { display: flex; flex-wrap: wrap; gap: 8px 48px; font-size: 19px; font-weight: 300; }
.inline-list strong { font-weight: 600; }

/* experience */
.role { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 28px 0; border-top: 1px solid #e3e3e3; }
.role:last-child { border-bottom: 1px solid #e3e3e3; }
.yr { width: 150px; flex-shrink: 0; font-size: 40px; font-weight: 300; line-height: 1; }
.role h2 { margin: 0; font-size: 24px; font-weight: 600; }
.sq { width: 14px; height: 14px; display: inline-block; margin-right: 10px; }
.cv-btn { display: block; padding: 16px 20px; background: #005a9e; color: #fff; font-size: 20px; font-weight: 300; }
.cv-btn:hover { color: #fff; background: #004a82; }

/* project write-ups */
.sub { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 300; }
.sub a { color: #767676; }
.sub a:hover { color: #1a1a1a; }
.stats { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { box-sizing: border-box; padding: 18px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.stat .num { font-size: 46px; font-weight: 300; line-height: 1; }
.stat .lbl { font-size: 15px; font-weight: 600; }
.prose { font-weight: 300; font-size: 18px; line-height: 1.65; }
.prose h2 { margin: 32px 0 8px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 300; letter-spacing: -.02em; }
.prose p { margin: 0; }
.label { font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5a5a5a; }

/* bottom app bar */
.appbar {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid #e3e3e3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 19px;
  font-weight: 300;
}

/* small "now" tiles on the home page */
.tiles.small { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tile.sm { min-height: 128px; padding: 14px 16px; gap: 6px; justify-content: flex-start; }
.tile.sm .lbl { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.tile.sm .num { font-size: 28px; line-height: 1.1; }
.tile.sm .dsc { font-size: 14px; line-height: 1.4; }

/* contact form */
.form { display: grid; gap: 6px; max-width: 560px; }
.form label { margin-top: 8px; font-size: 15px; font-weight: 600; color: #5a5a5a; }
.form input, .form textarea {
  font: inherit; font-size: 17px; font-weight: 300; color: #1a1a1a;
  padding: 10px 12px; border: 2px solid #c8c8c8; border-radius: 0; background: #fff;
}
.form input:focus, .form textarea:focus { outline: none; border-color: #005a9e; }
.form textarea { resize: vertical; }
.form button {
  justify-self: start; margin-top: 14px; padding: 12px 32px;
  font: inherit; font-size: 19px; color: #fff; background: #005a9e;
  border: 0; border-radius: 0; cursor: pointer;
}
.form button:hover { background: #004a82; }
.form button:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }

/* home layout: wide about column on the left, square tiles + form on the right */
.home-about { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.home-about > p { max-width: 680px; }
.home-right { flex: 0 1 408px; min-width: 0; margin-left: auto; display: flex; flex-direction: column; gap: 48px; }
.home-right .tiles.small { grid-template-columns: repeat(2, minmax(0, 200px)); }
.home-right .tile.sm { aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; }
.home-right .tile.sm .num { font-size: clamp(22px, 2.2vw, 28px); }
.home-right .form { max-width: none; }

/* home photo */
.home-about .photo { width: 200px; height: 200px; }

.form-status { margin: 10px 0 0; font-size: 17px; font-weight: 300; }
.form-status:empty { display: none; }
.form button:disabled { opacity: .6; cursor: default; }
