/* Who in Ireland - a printed civic register, set in ink on paper. */
:root {
  --paper: #f4eee2;
  --paper-2: #ece4d3;
  --paper-3: #e2d8c2;
  --ink: #10261d;
  --ink-2: #2f4a3f;
  --ink-3: #5f7368;
  --rule: #c9bea6;
  --green: #0f3d2e;
  --green-2: #1b5a44;
  --saffron: #d9781c;
  --saffron-2: #f2a24a;
  --white: #fbf8f1;
  --max: 1180px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 3px;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(242,162,74,.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(15,61,46,.10), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
body::after { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
a { color: var(--green-2); text-decoration-color: rgba(27,90,68,.35); text-underline-offset: 3px; }
a:hover { color: var(--saffron); text-decoration-color: currentColor; }
h1,h2,h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-variation-settings: "opsz" 144, "SOFT" 30; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .02em; }
.kicker { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin: 0 0 .8em; }

/* Masthead */
.masthead { border-bottom: 1.5px solid var(--ink); background: rgba(244,238,226,.85); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }
.masthead__row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; background: var(--saffron-2); }
.brand__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.nav { display: flex; gap: 22px; justify-content: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; border-bottom: 1.5px solid transparent; padding: 4px 0; }
.nav a:hover { border-color: var(--saffron); color: var(--ink); }
.masthead__search { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--white); }
.masthead__search input { border: 0; background: transparent; padding: 8px 14px; width: 240px; font: inherit; font-size: .92rem; color: var(--ink); outline: none; }
.masthead__search button { border: 0; background: var(--ink); color: var(--paper); padding: 0 14px; font-size: 1.05rem; cursor: pointer; }
.masthead__search button:hover { background: var(--saffron); color: var(--ink); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--green-2); font-weight: 400; }
.hero__lede { font-size: 1.2rem; max-width: 46ch; color: var(--ink-2); }
.hero__search { display: flex; border: 2px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 var(--green); max-width: 640px; }
.hero__search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.1rem; padding: 16px 18px; color: var(--ink); outline: none; min-width: 0; }
.hero__search button { border: 0; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-size: 1.05rem; padding: 0 22px; cursor: pointer; }
.hero__search button:hover { background: var(--saffron); color: var(--ink); }
.hero__hint { font-size: .9rem; color: var(--ink-3); margin-top: 10px; }
.hero__hint a { margin-right: 10px; }
.ledger { border: 1.5px solid var(--ink); background: var(--white); padding: 22px 24px; position: relative; animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.ledger::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.ledger dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.ledger dt { color: var(--ink-3); font-size: .92rem; }
.ledger dd { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ledger__note { margin: 14px 0 0; font-size: .82rem; color: var(--ink-3); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.stagger > *:nth-child(2) { animation-delay: .08s; } .stagger > *:nth-child(3) { animation-delay: .16s; }
.stagger > *:nth-child(4) { animation-delay: .24s; } .stagger > *:nth-child(5) { animation-delay: .32s; }
.stagger > *:nth-child(6) { animation-delay: .40s; }

/* Sections */
.section { padding: clamp(36px, 6vw, 72px) 0; border-top: 1.5px solid var(--ink); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section__head p { margin: 0; color: var(--ink-3); }
.more { font-family: var(--font-mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }

/* Index grids (sectors / counties) */
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.index li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.index a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: background .2s; }
.index a:hover { background: var(--white); color: var(--green-2); }
.index .n { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }

/* Company rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); counter-reset: row; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.row::before { counter-increment: row; content: counter(row, decimal-leading-zero); font-family: var(--font-mono); color: var(--ink-3); font-size: .85rem; padding-top: 6px; }
.row h3 { margin: 0 0 4px; font-size: 1.3rem; }
.row h3 a { text-decoration: none; color: var(--ink); }
.row h3 a:hover { color: var(--saffron); }
.row__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--ink-3); }
.row__meta .mono { color: var(--ink-2); }
.row__desc { margin: 8px 0 0; color: var(--ink-2); max-width: 70ch; }
.row__cta { align-self: center; }
.chip { display: inline-block; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; padding: 4px 9px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); background: var(--paper-2); text-decoration: none; }
.chip--on { border-color: var(--green-2); color: var(--green-2); background: rgba(27,90,68,.08); }
.chip--off { color: var(--ink-3); }
.btn { display: inline-block; border: 1.5px solid var(--ink); padding: 8px 14px; text-decoration: none; color: var(--ink); font-size: .92rem; background: var(--white); border-radius: var(--radius); transition: all .15s; }
.btn:hover { background: var(--ink); color: var(--paper); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--saffron); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--green-2); }

/* Company page */
.crumbs { font-size: .85rem; color: var(--ink-3); padding: 18px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.profile { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: 48px; padding: 24px 0 64px; }
.profile__head h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h1-loc { display: block; font-size: .5em; font-weight: 400; font-style: italic; color: var(--ink-3); margin-top: .2em; }
.profile__status { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.profile__desc { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.facts { border: 1.5px solid var(--ink); background: var(--white); padding: 4px 22px 18px; position: sticky; top: 84px; }
.facts h2 { font-size: 1.05rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; padding: 14px 0 8px; border-bottom: 1.5px solid var(--ink); margin: 0 0 6px; font-weight: 500; }
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dotted var(--rule); }
.facts dt { color: var(--ink-3); font-size: .85rem; padding-top: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts__cta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--rule); background: var(--white); padding: 16px; text-decoration: none; color: var(--ink); transition: all .2s; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--paper-3); }
.card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.card p { margin: 0; font-size: .85rem; color: var(--ink-3); }
.notice { border-left: 4px solid var(--saffron); background: var(--white); padding: 14px 18px; font-size: .95rem; margin: 24px 0; }

/* Search page */
.results { min-height: 240px; }
.results__count { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-3); margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.filters select { font: inherit; font-size: .92rem; padding: 8px 10px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); border-radius: var(--radius); }
.pager { display: flex; justify-content: space-between; gap: 12px; padding: 24px 0; font-family: var(--font-mono); font-size: .9rem; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; }
.az a, .az span { font-family: var(--font-mono); font-size: .85rem; padding: 4px 8px; border: 1px solid var(--rule); text-decoration: none; }
.az span { color: var(--rule); }
.az a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* 404 */
.lost { text-align: center; padding: 100px 0; }
.lost h1 { font-size: clamp(4rem, 14vw, 9rem); color: var(--green); font-weight: 300; font-style: italic; }

/* Colophon */
.colophon { border-top: 1.5px solid var(--ink); margin-top: 48px; padding: 40px 0 56px; background: var(--paper-2); }
.colophon__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 32px; }
.colophon__brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin: 0 0 4px; }
.colophon__tag { color: var(--ink-3); font-style: italic; }
.colophon nav { display: grid; gap: 8px; align-content: start; }
.colophon nav a { font-size: .95rem; }
.colophon__legal { font-size: .82rem; color: var(--ink-3); margin: 0; }

@media (max-width: 900px) {
  .hero__grid, .profile, .colophon__grid { grid-template-columns: 1fr; }
  .facts { position: static; }
  .masthead__row { grid-template-columns: 1fr auto; }
  .masthead__search { grid-column: 1 / -1; }
  .masthead__search input { width: 100%; }
  .nav { justify-content: flex-end; gap: 14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__search { box-shadow: 5px 5px 0 var(--green); }
  .hero__search button { padding: 0 14px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row::before { display: none; }
  .row__cta { justify-self: start; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .masthead__row { gap: 10px 16px; padding: 8px 0; }
  .brand__name { display: none; }
  .nav { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ledger, .stagger > * { animation: none; } }
