/* merkmaloney.com: the 2012 look (blue pattern, white page, white shadowed logo, blue links), rebuilt responsive. */
:root { --blue: #0f75bc; --ink: #222; --muted: #666; --line: #e6e6e6; --card: #fafafa; }
* { box-sizing: border-box; }
body { margin: 0; font: 300 17px/1.6 "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ink); background: #3f6f95 url(/img/bg-pattern2.png) repeat; padding: 32px 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 300; margin: 0 0 .4em; line-height: 1.2; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; color: var(--blue); font-weight: 400; }
h4 { font-weight: 700; font-size: .95rem; margin: 12px 0 2px; color: #000; }
p { margin: 0 0 .9em; }
strong { font-weight: 600; }

.page { max-width: 1000px; margin: 0 auto; background: #fefefe; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 32px 20px; background: linear-gradient(#f5f5f5, #fff); border-bottom: 1px solid var(--line); }
.logo { font-family: "Montserrat", sans-serif; font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: .86; letter-spacing: -.03em; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.25), 0 3px 10px rgba(0,0,0,.35); }
.logo:hover { text-decoration: none; }
.top-right { text-align: right; }
.updated { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.btn { display: inline-block; background: var(--blue); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 4px; }
.btn:hover { background: #0b5e98; text-decoration: none; }

.intro, .block, .contact { padding: 28px 32px; border-bottom: 1px solid var(--line); }
.intro p { font-size: 1.12rem; max-width: 46em; }
.tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid #cfe0ee; background: #f1f7fc; color: #0b5e98; border-radius: 99px; padding: 3px 12px; font-size: .88rem; font-weight: 400; }
.sub { color: var(--muted); }
.year { font-size: 1.5rem; color: var(--ink); font-weight: 300; margin: 26px 0 12px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { font-size: .95rem; }
.card img { border: 1px solid var(--line); margin-bottom: 10px; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
/* Visual tiles for recent work: same 5:3 frame as the classic screenshots. */
.vis { aspect-ratio: 5 / 3; border: 1px solid var(--line); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vis img { border: 0; margin: 0; aspect-ratio: auto; object-fit: contain; }
.vis.logos { background: linear-gradient(#fbfbfb, #f1f4f7); flex-direction: column; gap: 14px; padding: 18px 28px; }
.vis.logos img { max-height: 46px; width: auto; max-width: 70%; }
.vis.logos.n1 img { max-height: 60px; }
.vis.logos.n2 { flex-direction: row; gap: 18px; }
.vis.logos.n2 img { max-height: 44px; max-width: 45%; }
.vis.logos.n3 img { max-height: 18px; max-width: 78%; }
.vis.phones { background: #efe9e2; gap: 8px; padding: 10px; }
.vis.phones img { height: 100%; width: auto; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.vis.badge { background: #12202c; color: #fff; flex-direction: column; }
.vis.badge span { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 2.6rem; letter-spacing: .08em; }
.vis.badge small { color: #9fc3df; font-size: .82rem; letter-spacing: .05em; }
.meta { color: var(--muted); font-size: .85rem; margin: 0 0 4px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cols h2 { text-transform: lowercase; margin-top: 8px; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: grid; grid-template-columns: 96px 1fr; column-gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.history .when { grid-row: span 2; color: var(--muted); font-size: .9rem; }
.history span:last-child { color: var(--muted); font-size: .92rem; }

.contact { text-align: center; border-bottom: 0; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 16px; background: #f5f5f5; }

@media (max-width: 820px) {
  body { padding: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid.two, .cols { grid-template-columns: 1fr; }
  .top, .intro, .block, .contact { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .top { flex-direction: column; }
  .top-right { text-align: left; }
}
