@charset "utf-8";
/* ==========================================================================
   Irish Academic Editing — single hand-written stylesheet.

   Replaces Bootstrap 3.3.1 (134KB), Font Awesome (all of it) and the old
   pocockeproofreading.css. The design is deliberately unchanged: same cream
   and ink palette, same EB Garamond / Open Sans pairing, same fixed navbar,
   paper texture and flourishes. Only the delivery is different.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Webfonts, self-hosted. Previously fetched from fonts.googleapis.com, which
   was render-blocking and sent visitor IPs to Google on every page view.
   unicode-range means latin-ext is only downloaded when a page actually
   needs it.
   -------------------------------------------------------------------------- */
@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/eb-garamond-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/eb-garamond-latin-ext-400-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'EB Garamond';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/eb-garamond-latin-400-italic.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'EB Garamond';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/eb-garamond-latin-ext-400-italic.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/assets/fonts/eb-garamond-latin-600-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/assets/fonts/eb-garamond-latin-ext-600-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/assets/fonts/open-sans-latin-600-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/assets/fonts/open-sans-latin-ext-600-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
	--cream: hsl(40, 100%, 90%);
	--ink: #333;
	--link: hsl(40, 45%, 30%);
	--link-hover: hsl(220, 80%, 35%);
	--footer-text: #999;
	--serif: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
	--sans: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--nav-height: 60px;
	--content-size: 21px;
	--measure: 1170px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	background-color: var(--cream);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding-top: var(--nav-height);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--cream);
	color: var(--ink);
	font-family: var(--serif);
	font-size: var(--content-size);
	line-height: 1.5;
	animation: iae-fade-in 700ms ease-in;
}

@keyframes iae-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

img {
	max-width: 100%;
	border: 0;
}

hr {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	margin: 30px 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
	text-align: left;
}
h1 {
	font-size: clamp(40px, 8vw, 84px);   /* was 4em of 21px on desktop */
	margin: 30px 0 20px;
}
h2 {
	font-size: clamp(28px, 4vw, 36px);
	margin: 45px 0 15px;
}
h3 {
	font-size: clamp(22px, 3vw, 27px);
	margin: 40px 0 12px;
}
h4 { font-size: 20px; margin: 25px 0 10px; }

p { margin: 0 0 15px; }

ul, ol { margin: 0 0 15px; padding-left: 28px; }
li { margin-bottom: 6px; }

strong, b { font-weight: 600; }

blockquote {
	margin: 0 0 25px;
	padding: 10px 20px;
	border-left: 5px solid var(--link);
	font-size: 0.95em;
	text-align: left;
}
blockquote p { margin-bottom: 8px; }
blockquote footer {
	font-style: italic;
	font-size: 0.85em;
	text-align: left;
}
blockquote footer::before { content: "\2014\00a0"; }

/* Links. Body copy is underlined so links are not signalled by colour alone. */
a, a:link, a:visited {
	color: var(--link);
	text-decoration: underline;
}
a:hover, a:active, a:focus {
	color: var(--link-hover);
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--link-hover);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--measure);
	margin: 0 auto;
	padding: 0 15px;
}

.page {
	flex: 1 0 auto;
	background-image: url('/assets/img/paper-texture.webp');
	background-repeat: repeat;
	border-bottom: 1px solid #000;
}

.page > .container {
	background-image: url('/assets/img/statue-of-isis.webp');
	background-repeat: no-repeat;
	background-position: top right;
}

.content {
	padding: 40px 0 110px;
}

/* Lists form their own block formatting context so that bullets never run
   underneath a floated book cover. */
.content ul,
.content ol {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1100;
	padding: 12px 20px;
	background: var(--ink);
	color: #fff;
	font-family: var(--sans);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus {
	left: 0;
	color: #fff;
}

.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;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	min-height: var(--nav-height);
	background-color: var(--ink);
	border-bottom: 2px solid #000;
	box-shadow: 0 26px 16px var(--cream);
}

.navbar > .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.navbar-logo-link {
	display: inline-flex;
	align-items: center;
	padding: 5px 0;
	text-decoration: none;
}
.navbar-logo-link img {
	height: 50px;
	width: auto;
	display: block;
}

.navbar-toggle {
	margin-left: auto;
	padding: 9px 10px;
	background: transparent;
	border: 1px solid #444;
	border-radius: 4px;
	cursor: pointer;
}
.navbar-toggle .icon-bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px 0;
	background-color: #fff;
	border-radius: 1px;
}

.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-list a,
.nav-parent {
	display: block;
	padding: 10px 15px;
	color: #fff;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
}
.nav-list a:hover,
.nav-list a:focus,
.nav-parent:hover,
.nav-parent:focus {
	color: #fff;
	text-decoration: none;
}
.nav-list > li.active > a {
	background-color: var(--cream);
	color: #000;
}
.navbar a:focus-visible,
.navbar button:focus-visible {
	outline: 3px solid var(--cream);
	outline-offset: -3px;
}

/* Submenu. The parent is a real <button> with aria-expanded, so this works
   for keyboard and screen-reader users, not just for mouse hover. */
.nav-list ul {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-parent[aria-expanded="true"] + ul { display: block; }
.nav-parent::after { content: ' +'; }
.nav-parent[aria-expanded="true"]::after { content: ' \2013'; }

/* Mobile: the menu is collapsed behind the toggle button. */
.navbar-collapse {
	display: none;
	flex-basis: 100%;
	border-top: 1px solid #444;
	padding: 8px 0;
}
.navbar-collapse.is-open { display: block; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
	flex-shrink: 0;
	background-color: #000;
	border-top: 2px solid #000;
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 28px;
	min-height: 90px;
	padding: 12px 15px;
	border: 1px solid var(--ink);
	background-image: url('/assets/img/hexabump.webp');
}
.footer a {
	display: inline-flex;
	align-items: center;
	color: var(--footer-text);
	text-decoration: none;
}
.footer a:hover,
.footer a:focus {
	color: #ccc;
	text-decoration: underline;
}
.footer-text-link {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 0.03em;
}
/* The AFEPI badge is a JPEG with a white background; the rounded corner makes
   that white block read as a deliberate chip rather than a cut-out failure. */
.footer img { display: block; border-radius: 3px; }
/* Height, not width — the two icons have different aspect ratios, so matching
   widths made the graduation cap look half the size of the LinkedIn mark. */
.footer svg {
	height: 34px;
	width: auto;
	fill: currentColor;
}

/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */
.photograph {
	background-color: var(--cream);
	border: 1px solid #000;
	padding: 10px;
	margin: 10px;
	box-shadow: 3px 3px 3px #000;
}

.book-cover {
	float: left;
	height: 100px;
	width: auto;
	margin: 6px 30px 10px 10px;
	box-shadow: 6px 6px 5px 0 rgba(0, 0, 0, 0.75);
}

/* One publication: contains its own floated cover(s), so entries can never
   collide and the spacing between them is even. Replaces a run of <br> tags. */
.pub {
	display: flow-root;
	margin: 0 0 34px;
}
.pub > p:last-child { margin-bottom: 0; }

.flourish {
	text-align: center;
	margin-top: 40px;
}

.contact-block {
	margin-top: 45px;
}
.contact-note {
	font-size: 0.8em;
}

/* --------------------------------------------------------------------------
   Enquiry form
   -------------------------------------------------------------------------- */
.enquiry-form {
	max-width: 34em;
	margin: 30px 0 0;
}

.field {
	margin: 0 0 26px;
	border: 0;
	padding: 0;
}

.field > label,
.field > legend {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	padding: 0;
}

.req {
	font-weight: 400;
	font-size: 0.75em;
	color: #6b5a3e;
}

.hint {
	margin: 0 0 6px;
	font-size: 0.78em;
	line-height: 1.45;
	color: #5a5347;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
	display: block;
	width: 100%;
	padding: 10px 12px;
	font-family: var(--serif);
	font-size: 0.85em;
	color: var(--ink);
	background: #fffaf0;
	border: 1px solid #b9a882;
	border-radius: 2px;
}

.field textarea {
	line-height: 1.5;
	resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
	outline: 3px solid var(--link-hover);
	outline-offset: 1px;
	border-color: var(--link-hover);
}

.field [aria-invalid="true"] {
	border-color: #8f2f2f;
	border-width: 2px;
}

.choice {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
}
.choice input { width: 20px; height: 20px; }
.choice label { font-weight: 400; }

.field-error {
	margin: 0 0 6px;
	font-size: 0.78em;
	font-weight: 600;
	color: #8f2f2f;
}

.form-errors {
	margin: 25px 0;
	padding: 15px 20px;
	border-left: 5px solid #8f2f2f;
	background: #fdf2ec;
}
.form-errors h2 {
	margin: 0 0 8px;
	font-size: 1.05em;
}
.form-errors ul { margin: 0; overflow: hidden; }
.form-errors li { font-size: 0.82em; }
.form-errors a { color: #8f2f2f; }
.form-errors:focus-visible { outline: 3px solid #8f2f2f; outline-offset: 3px; }

/* The honeypot. Not display:none — some bots skip hidden fields, and screen
   readers are kept away from it by aria-hidden and tabindex="-1" instead. */
.trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.button {
	display: inline-block;
	min-height: 44px;
	padding: 11px 28px;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--ink);
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}
.button:hover,
.button:focus {
	background: #000;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.navbar-toggle { display: none; }

	.navbar-collapse {
		display: block;
		flex-basis: auto;
		margin-left: auto;
		border-top: 0;
		padding: 0;
	}

	.nav-list {
		display: flex;
		align-items: stretch;
	}
	.nav-list > li { position: relative; }
	.nav-list a,
	.nav-parent {
		padding: 20px 12px;
	}

	/* Floating submenu panel */
	.nav-list ul {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 200px;
		padding: 5px 10px;
		background-color: #000;
		border-radius: 0 0 5px 5px;
	}
	.nav-list > li.has-children:hover > ul { display: block; }
	.nav-list > li.has-children:hover { background-color: #000; }
	.nav-list ul a { padding: 10px 5px; }
}

@media (min-width: 992px) {
	.page > .container {
		padding-right: 200px;
	}
}

@media (min-width: 1200px) {
	:root { --nav-height: 80px; }
	.navbar-logo-link img { height: 60px; }
	.navbar-logo-link { padding: 10px 15px 10px 0; }
	.nav-list a,
	.nav-parent { padding: 30px 15px; }
	.page > .container {
		padding-right: 500px;
	}
}

/* Below 992px the statue background would sit underneath the body copy,
   because there is no room to indent the text clear of it. */
@media (max-width: 991px) {
	.page > .container { background-image: none; }
}

/* On a phone there is no useful column left beside a floated image. */
@media (max-width: 600px) {
	.photograph {
		float: none !important;
		height: auto !important;
		width: auto !important;
		max-width: 240px;
		margin: 0 0 20px !important;
	}
	.book-cover {
		float: none;
		display: block;
		margin: 10px 0 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body { animation: none; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
