/*
----------------------------------------
	Utilities
----------------------------------------
*/

:root {
	color-scheme: light dark;
	}

* {
	box-sizing: border-box;
	}
	
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	}
	
/*
----------------------------------------
	Typography
----------------------------------------
*/

html {
	font-size: 62.5%;
	}
	
body {
	font: 1.125em/1.5
    'IBM Plex Sans',
	-apple-system,
	BlinkMacSystemFont,
	"Segoe UI",
	Roboto,
	"Helvetica Neue",
	Arial,
	sans-serif,
	"Apple Color Emoji",
	"Segoe UI Emoji",
	"Segoe UI Symbol";
	font-weight: 400;
    }
	
em {
	font-style: italic;
	}
	
p {
	margin-bottom: 1.5em;
	}
	
p.introduction {
	font-size: 1.5em;
	line-height: 1.25;
	margin-bottom: 1em;
	}
	
ul {
	font-size: 0.875em;
	line-height: calc((1/0.875)*1.5);
	margin-bottom: 3em;
	}
		
li {
	padding-left: 1em;
	position: relative;
	}
	
li:before {
	content: "\2014";
	content: "\2014" / "";
	position: absolute;
	left: 0;
	}

p#greeting {
	font: 0.875em/calc((1/0.875)*1.5) 'IBM Plex Mono', monospace;
	font-style: italic;
    margin-bottom: 0em;
    }
	
figure #photo p {
  	transform: translateX(-75%) translateY(-25%) skewX(-11.34deg);
  	font-size: 2.5em;
	font-style: italic;
	text-align: center;
	}
	
figure #photo p span {
	transform: translateX(-50%) translateY(-50%) skewX(11.34deg);
	}
	
figure figcaption {
	font: 0.75em/1.5 'IBM Plex Mono', monospace;
	font-style: italic;
	text-align: center;
	}
	
.button {
	font-size: 1em;
	text-align: center;
	text-decoration: none;
	margin-top: 0.375em;
	margin-bottom: 4em;
	}
	
.button span:after {
	content: " \2192";
	content: " \2192" / "";
	}
	
footer {
	font: 0.75em/1.5 'IBM Plex Mono', monospace;
	font-style: italic;
	}
	
/*
----------------------------------------
	Layout
----------------------------------------
*/
	
#container {
	display: flow-root;
	width: 90%;
	margin: 0 auto;
	padding: 1.5em 0 3em 0;
	}
	
header, #page {
	max-width: 30em;
	}
	
h1 {
	margin-top: 2em;
	margin-bottom: 2em;
	}
	
.signature {
	display: block;
	width: 8em;
	max-width: 100%;
	height: auto;
	overflow: visible;
	}
	
.signature-name {
	fill: var(--signature-name);
	}
	
.signature-bar {
	fill: var(--signature-bar);
	}
	
figure {
	width: 75%;
	margin: 0 auto 1.5em;
	}
	
figure #photo {
	position: relative;
	}
	
figure #photo a {
	display: inline;
	}
	
figure #photo a:focus-visible {
	outline: none;
	}
	
figure #photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	margin-bottom: 1.5em;
	}
	
figure #photo p {
	position: absolute;
	left: 100%;
	top: 0%;
	display: inline-block;
	width: 30%;
	height: 30%;
	}
	
figure #photo p span {
	position: absolute;
	left: 50%;
	top: 50%;
	}
	
figure figcaption #instagram {
	display: inline;
	width: 2.5em;
	height: 2.5em;
	opacity: 0.125;
	margin: 1em auto 0;
	}
	
.button {
	display: block;
	padding: 0.625em 1.25em;
	border: none;
	border-radius: 2em;
	}
	
/*
----------------------------------------
	Appearance Modes
----------------------------------------

Colors use two tiers of custom properties.

1. Palette. The color ramp below, defined once and shared by both modes.
   Hex values are the fallback, and an oklch() version generated from
   --hue and --chroma replaces them where supported.
2. Roles. What a color is for (--link, --text, and so on). Each mode
   defines every role once, and the rest of this stylesheet only refers
   to roles, never to palette steps or hex values.

Assignment rule
Light mode draws accents from the shade side of the ramp and dark mode
from the tint side. Interactive states always move toward more
contrast. The two modes are not exact mirrors. Dark mode sits one step
closer to the base because steps against a near-black background
produce more contrast than the same steps against a light one.

Contrast floor
Text, link, and button roles stay at or above 4.5 to 1 against their
backgrounds in both modes. Recheck after every palette change.
(--accent in light mode, used for list bullets, is decorative and
sits at about 4.2 to 1.)

*/

:root {
	 --tint-10: #ffffff;
	 --tint-09: #edf5f7;
	 --tint-08: #dbebf0;
	 --tint-07: #cae0e8;
	 --tint-06: #b8d6e0;
	 --tint-05: #a6ccd9;
	 --tint-04: #94c2d1;
	 --tint-03: #82b8c9;
	 --tint-02: #71adc1;
	 --tint-01: #5fa3ba;
	   	--base: #4d99b2;
	--shade-01: #458aa0;
	--shade-02: #3e7a8e;
	--shade-03: #366b7d;
	--shade-04: #2e5c6b;
	--shade-05: #274d59;
	--shade-06: #1f3d47;
	--shade-07: #172e35;
	--shade-08: #0f1f24;
	--shade-09: #080f12;
	--shade-10: #000000;
	}

/*
Generated ramp. Edit --hue (0 to 360) to explore other base colors, and
--chroma (0 to about 0.12) if a hue looks clipped or too vivid. 221.5 and
0.084 reproduce the hex ramp above to within 1 of 255 per channel. Each
step keeps its lightness, so contrast carries over from hue to hue.
Browsers without oklch() keep the hex ramp.

Rough hue guide
	 30 orange     90 yellow    145 green     180 aqua
	221 teal	  265 blue      300 violet    350 pink
*/

@supports (color: oklch(0 0 0)) {

	:root {
		--hue: 221.5;
		--chroma: 0.084;

		--tint-09: oklch(0.965 calc(var(--chroma) * 0.11) var(--hue));
		--tint-08: oklch(0.93 calc(var(--chroma) * 0.22) var(--hue));
		--tint-07: oklch(0.893 calc(var(--chroma) * 0.31) var(--hue));
		--tint-06: oklch(0.857 calc(var(--chroma) * 0.41) var(--hue));
		--tint-05: oklch(0.822 calc(var(--chroma) * 0.53) var(--hue));
		--tint-04: oklch(0.786 calc(var(--chroma) * 0.63) var(--hue));
		--tint-03: oklch(0.751 calc(var(--chroma) * 0.73) var(--hue));
		--tint-02: oklch(0.714 calc(var(--chroma) * 0.82) var(--hue));
		--tint-01: oklch(0.679 calc(var(--chroma) * 0.91) var(--hue));
		--base: oklch(0.644 var(--chroma) var(--hue));
		--shade-01: oklch(0.597 calc(var(--chroma) * 0.92) var(--hue));
		--shade-02: oklch(0.547 calc(var(--chroma) * 0.83) var(--hue));
		--shade-03: oklch(0.499 calc(var(--chroma) * 0.75) var(--hue));
		--shade-04: oklch(0.449 calc(var(--chroma) * 0.67) var(--hue));
		--shade-05: oklch(0.397 calc(var(--chroma) * 0.57) var(--hue));
		--shade-06: oklch(0.341 calc(var(--chroma) * 0.47) var(--hue));
		--shade-07: oklch(0.286 calc(var(--chroma) * 0.38) var(--hue));
		--shade-08: oklch(0.228 calc(var(--chroma) * 0.28) var(--hue));
		--shade-09: oklch(0.163 calc(var(--chroma) * 0.15) var(--hue));
		}

}
		
@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {

	:root {
		--page-background: #eeefef;
		--photo-placeholder: #d7dadb;
		--text: #61696b;
		--text-strong: #191b1b;
		--text-muted: #666;
		--link: var(--shade-03);
		--link-hover: var(--shade-04);
		--link-active: var(--shade-05);
		--accent: var(--shade-02);
		--button-text: #eeefef;
		--button-text-hover: var(--tint-10);
		--caption-text: var(--shade-04);
		--caption-background: hsla(0, 0%, 100%, 0.85);
		--selection-background: var(--tint-10);
		--selection-text: var(--shade-10);
		--signature-name: var(--text-strong);
		--signature-bar: var(--base);
		}

}

@media (prefers-color-scheme: dark) {
	
	:root {
		--page-background: #15191b;
		--photo-placeholder: #303436;
		--text: #a1a8aa;
		--text-strong: #d7dadb;
		--text-muted: #878787;
		--link: var(--tint-02);
		--link-hover: var(--tint-03);
		--link-active: var(--tint-04);
		--accent: var(--tint-02);
		--button-text: #181a1b;
		--button-text-hover: var(--shade-10);
		--caption-text: var(--tint-03);
		--caption-background: hsla(0, 0%, 0%, 0.85);
		--selection-background: var(--shade-10);
		--selection-text: var(--tint-10);
		--signature-name: var(--text-strong);
		--signature-bar: var(--base);
		}
	
	img, .signature {
    	opacity: 0.85;
  		}
  
	p {
		font-weight: 300;
		letter-spacing: 0.005em;
		}
		
	ul {
		font-weight: 300;
		letter-spacing: 0.005em;
		}
		
	p#greeting {
		font-weight: 300;
		}
		
	figure figcaption {
		font-weight: 300;
		}
	
	.button {
		font-weight: 400;
		}
	
	footer {
		font-weight: 300;
		}
		
}

/*
----------------------------------------
	Color Roles
----------------------------------------
*/

body {
	color: var(--text);
	background-color: var(--page-background);
	}

a {
	color: var(--link);
	}

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

figure #photo a:focus-visible img {
	outline: 3px solid var(--link);
	outline-offset: 3px;
	}

::selection {
	background-color: var(--selection-background);
	}

p.introduction {
	color: var(--text-strong);
	}

li:before {
	color: var(--accent);
	}
	
figure #photo img {
	background: var(--photo-placeholder);
	}

figure #photo p {
	color: var(--caption-text);
	background-color: var(--caption-background);
	}
	
.button {
	color: var(--button-text);
	background-color: var(--link);
	}

.button:hover {
	color: var(--button-text-hover);
	background-color: var(--link-hover);
	}

.button:active {
	background-color: var(--link-active);
	}
	
.button:focus-visible {
	color: var(--button-text-hover);
	background-color: var(--link-hover);
	outline: 3px solid var(--link);
	outline-offset: 3px;
	}
	
.button::selection,
	.button span::selection {
		color: var(--selection-text);
		background-color: var(--selection-background);
		}

footer {
	color: var(--text-muted);
	}

footer a {
	color: var(--text-muted);
	}

/*
----------------------------------------
	Responsive
----------------------------------------
*/

@media (min-width: 15em) {
	
	figure {
		margin: 3em auto 1em;
		}

	}
	
@media (min-width: 20em) {
	
	body {
		font-size: 1.625em;
		}
		
	#container {
		width: 85%;
		padding: 2em 0 4em 0;
		}

	}

@media (min-width: 25em) {
		
	body {
		font-size: 1.75em;
		}
		
	}
		
@media (min-width: 30em) {
		
	figure {
		max-width: 20em;
		}
		
	figure #photo p {
		font-size: 3.0em;
		}
		
	.button {
		display: inline-block;
		padding: 0.5em 1em;
		}
		
	}
	
@media (min-width: 40em) {

	body {
		font-size: 2em;
		}
		
	h1 {
		}
		
	ul {
		margin-left: -1em;
		}
		
	#container {
		width: 80%;
		}
		
	figure #photo p {
		font-size: 3.5em;
		}
		
	footer {
		font-size: 0.625em;
		}
		
	}
	
@media (min-width: 50em) and (orientation: landscape) {
		
	p.introduction {
		font-size: 1.5em;
		}
	
	ul {
		columns: 15em auto;
		}
		
	ul li {
		break-inside: avoid;
		}
	
	#container {
		width: 85%;
		padding: 4em 0 8em 0;
		}
		
	header, #page {
		float: left;
		width: 65%;
		}
		
	figure {
		float: right;
		width: 30%;
		margin: 0;
		}
		
	figure #photo p {
		font-size: 2.25em;
		}
		
	footer {
		font-size: 0.75em;
		}
		
	}
	
@media (min-width: 65em) and (orientation: landscape) {

	body {
		font-size: 2.25em;
		}
		
	p.introduction {
		font-size: 1.625em;
		}
		
	figure #photo p {
		font-size: 2.5em;
		}
		
	figure figcaption {
		font-size: 0.625em;
		}
		
	footer {
		font-size: 0.625em;
		}
		
	}
	
@media (min-width: 80em) and (orientation: landscape) {

	#container {
		width: 75%;
		}
		
	}
		
@media (min-width: 95em) and (orientation: landscape) {
		
	body {
		font-size: 2.8em;
		}
		
	ul {
		font-size: 0.75em;
		line-height: calc((1/0.75)*1.5);
		}
		
	figure #photo p {
		font-size: 2.375em;
		}
		
	figure figcaption {
		font-size: 0.5em;
		}
		
	.button {
		font-size: 0.875em;
		}
		
	footer {
		font-size: 0.5em;
		}
		
	}
	
/*
----------------------------------------
	Animation
----------------------------------------
*/

body::before, body::after {
	content: "";
	position: fixed;
	left: 0;
	right: 0;
	height: 6em;
	pointer-events: none;
	z-index: 1;
	}

body::before {
	top: 0;
	background: linear-gradient(to top, transparent, var(--page-background));
	opacity: 0;
	}

body::after {
	bottom: 0;
	background: linear-gradient(to bottom, transparent, var(--page-background));
	}

@supports (animation-timeline: scroll()) {

	@media (prefers-reduced-motion: no-preference) {

		body::before {
			animation: gradient-in linear both;
			animation-timeline: scroll(root);
			animation-range: 0 4em;
			}

		body::after {
			animation: gradient-out linear both;
			animation-timeline: scroll(root);
			animation-range: calc(100% - 6em) 100%;
			}

		@keyframes gradient-in {
			to { opacity: 1; }
			}

		@keyframes gradient-out {
			to { opacity: 0; }
			}

		}

	}

/* iOS 26 Safari cannot draw fixed content beneath its floating toolbar,
   so the bottom fade stops short and leaves a hard edge. Let the system
   toolbar signal more content there instead. */
   
@supports (-webkit-touch-callout: none) {

	body::after {
		display: none;
		}

	}

/*
----------------------------------------
	Print
----------------------------------------
*/

@media print {

	body {
		font-size: 1em;
		color: #000;
		background: none;
		}
	
	body::before, body::after {
		display: none;
		}
		
	h1, p.introduction, a, footer, footer a {
		color: #000;
		}
		
	:root {
		--signature-name: #000;
		}
		
	.signature {
		opacity: 1;
		}
		
	}