/* more.alperiskender.com: one mobile-first page of links, independent of the blog (docs/DECISIONS.md
   D-050). Colours, fonts and the button style are copied from the blog's theme
   (wp-content/themes/alperiskender/style.css and theme.json) and kept in step by hand. */

@font-face {
	font-family: 'Josefin Sans'; font-style: normal; font-weight: 300 700; font-display: swap;
	src: url(fonts/josefin-sans-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Josefin Sans'; font-style: normal; font-weight: 300 700; font-display: swap;
	src: url(fonts/josefin-sans-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Courgette'; font-style: normal; font-weight: 400; font-display: swap;
	src: url(fonts/courgette-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Courgette'; font-style: normal; font-weight: 400; font-display: swap;
	src: url(fonts/courgette-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Dark: the blog's colours inverted, its ink as the background and its paper as the text */
	color-scheme: dark;
	--bg: #111111;           /* the blog's ink */
	--fg: #f6f5f8;           /* the blog's paper */
	--meta: #a1a1a8;         /* labels and quiet text (8.3:1 on the background) */
	--rule: rgb(255 255 255 / 0.18);
	--tint: rgb(255 255 255 / 0.08);    /* hover, as the blog's buttons, in light */
	--field: #1d1d1d;        /* 5% white on the background, as a solid colour */
	--tint-solid: #242424;   /* 8% white on the background, solid */
	--display: 'Josefin Sans', 'Century Gothic', Futura, sans-serif;
	--text: Helvetica, 'Helvetica Neue', Arial, sans-serif;
	--script: Courgette, 'Brush Script MT', cursive;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--gutter-l: max(20px, env(safe-area-inset-left, 0px));
	--gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--fg);
	font: 400 1rem/1.5 var(--text);
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* The night sky, behind everything (stars.js) */
.stars { position: fixed; top: 0; left: 0; right: 0; z-index: 0; display: block; width: 100%; height: 100lvh; pointer-events: none; }   /* the large viewport: a phone's toolbar coming and going doesn't resize it */

/* One centred column: a phone's full width, at most 460 px on larger screens */
.page {
	position: relative; z-index: 1;
	display: flex; flex-direction: column; width: 100%; max-width: calc(460px + 40px); min-height: 100svh;
	margin: 0 auto;
	padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(48px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
}

/* Share: a round button in the top-right corner */
.top { display: flex; justify-content: flex-end; }
.share {
	position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -6px;
	padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer;
	transition: background-color 0.2s;
}
.share:hover { background: var(--tint); }
.share__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.share__done {   /* shown for two seconds after the link was copied (where the system share sheet is missing) */
	position: absolute; top: calc(100% + 4px); right: 0; padding: 6px 12px; border-radius: 999px;
	background: var(--fg); color: var(--bg); font: 500 0.8125rem/1 var(--display); letter-spacing: 0.02em; white-space: nowrap;
	opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease);
}
.share.is-copied .share__done { opacity: 1; transform: none; }

/* The photo and the name */
.profile { margin-top: 4px; text-align: center; }
.profile__photo { width: 156px; height: 156px; border-radius: 50%; object-fit: cover; }

/* "Gradient-Frame" (text-effects.colorion.co, gradient-border-text-animation), made round for the
   photo: a 3 px ring cut out of a four-colour conic gradient that turns once every 5.5 s, with a soft
   glow of the same colours. Here the glow sits behind the photo, and 4 px of page separate photo and
   ring. Browsers without @property show the ring still. */
@property --ring-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.profile__ring { position: relative; width: fit-content; margin: 0 auto; padding: 7px; border-radius: 50%; isolation: isolate; }
.profile__ring::before, .profile__ring::after {
	content: ""; position: absolute; border-radius: 50%; pointer-events: none;
	animation: ring-spin 5.5s linear infinite;
}
.profile__ring::before {   /* the ring: the gradient, masked to its outer 3 px */
	inset: 0; padding: 3px;
	background: conic-gradient(from var(--ring-angle), #ff4fd8, #7a5cff, #4ff8ff, #ffd76a, #ff4fd8);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.profile__ring::after {   /* the glow, behind the photo */
	inset: -10px; z-index: -1; opacity: 0.8; filter: blur(12px);
	background: conic-gradient(from var(--ring-angle), #ff4fd83d, #4ff8ff3d, transparent 62%);
}
@keyframes ring-spin { to { --ring-angle: 360deg; } }
.profile__name { margin: 14px 0 0; font: 400 2rem/1.5 var(--script); letter-spacing: 0; }   /* the blog header's Courgette; the tall line leaves room for the dot of "İ" */

/* The links: full-width buttons in the blog's button style (a hairline, fully round) */
.links { position: relative; margin-top: 32px; }
.links ul { position: relative; z-index: 1; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
/* The snake that runs along the buttons' outlines (snake.js): two canvases over the buttons, the line
   and, under it, a blurred copy as its glow. Taps go through to the buttons. */
.snake { position: absolute; top: -18px; left: -18px; pointer-events: none; }
.snake--glow { z-index: 2; filter: blur(6px); opacity: 0.75; }
.snake--line { z-index: 3; }
.link {
	display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 2px 24px 0;   /* Josefin sits high in its box: 2 px down to look centred */
	border: 1px solid var(--fg); border-radius: 999px; background: var(--bg); color: var(--fg); text-decoration: none;
	font: 500 1.0625rem/1 var(--display); letter-spacing: 0.02em;
	transition: background-color 0.2s, transform 0.3s var(--ease);
}
.link:hover { background: var(--tint-solid); }
.link:active { transform: scale(0.98); }

/* Contact: the address in a field; a tap copies it */
.contact { margin-top: 40px; }
.contact__title { margin: 0 0 10px; font: 500 0.875rem/1.4 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta); }   /* as the blog's "Yazar" */
.contact__mail {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px;
	border: 1px solid var(--rule); border-radius: 999px; background: var(--field);
	color: var(--fg); text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
.contact__mail:hover { background: var(--tint-solid); border-color: rgb(255 255 255 / 0.3); }
.contact__icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__address { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 400 1.0625rem/1.5 var(--text); letter-spacing: 0.3px; }
.contact__action { display: inline-grid; flex: none; font: 500 0.875rem/1 var(--display); letter-spacing: 0.04em; color: var(--meta); padding-top: 2px; }
.contact__copy, .contact__done { grid-area: 1 / 1; text-align: right; transition: opacity 0.2s; }   /* stacked, so the field keeps its width */
.contact__done, .contact__mail.is-copied .contact__copy { opacity: 0; }
.contact__mail.is-copied .contact__done { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; }
	.link:active { transform: none; }
	.profile__ring::before, .profile__ring::after { animation: none; }   /* the ring stays, still */
}
