/* Contact page
 * Builds on css/aboutme.css (tokens, buttons, section heads) and css/home.css
 * (cards, map switcher). Page has class "am"; page-specific classes are prefixed ct-.
 **************************************************/

/* ---------- hero: the pun ---------- */
.ct-hero .am-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.ct-hero h1 { font-size: 50px; margin-bottom: 22px; }
.ct-hero h1 em { font-style: normal; font-weight: 700; color: var(--am-accent-ink); }

/* dictionary entry */
.ct-dict {
	position: relative; background: #fff; border: 1px solid var(--am-line); border-left: 4px solid var(--am-accent);
	border-radius: 12px; padding: 20px 24px 18px; margin: 0 0 26px; max-width: 560px;
	box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .35);
}
.ct-dict-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.ct-dict-word { font: 700 24px/1.1 Georgia, "Times New Roman", serif; color: var(--am-ink); }
.ct-dict-ipa { font-size: 15px; color: var(--am-muted); }
.ct-dict-pos { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--am-accent-ink); background: #e9f9f2; border-radius: 4px; padding: 2px 7px; }
.ct-dict ol { margin: 0; padding-left: 22px; }
.ct-dict li { font-size: 16px; line-height: 1.55; color: var(--am-ink-2); margin: 0 0 6px; padding-left: 2px; }
.ct-dict li::marker { font-weight: 700; color: var(--am-accent-ink); }
.ct-dict li i { color: var(--am-muted); }
.ct-dict-tag { font-size: 12px; font-style: italic; color: var(--am-muted); margin-right: 4px; }
.ct-dict-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--am-line); font-size: 15px; line-height: 1.6; color: var(--am-ink-2); }
.ct-dict-note strong { color: var(--am-ink); }

/* the sockets */
.ct-photo { position: relative; margin: 0; padding: 24px 24px 0; }
.ct-photo-frame {
	position: relative; border-radius: 18px; overflow: hidden; transform: rotate(-1.5deg);
	aspect-ratio: 1246 / 1268; background: #cbcbcb;
	box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .35), 0 0 0 8px #fff; transition: transform .5s ease;
}
/* the bottom strip of the image is a credit line; it is cropped here and credited in the caption */
.ct-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ct-photo:hover .ct-photo-frame { transform: rotate(0deg) scale(1.01); }
.ct-photo::before {
	content: ""; position: absolute; inset: 0 12px 64px 0; border-radius: 22px;
	background: repeating-linear-gradient(45deg, rgba(3, 204, 133, .18) 0 2px, transparent 2px 12px);
	transform: rotate(3deg) translate(10px, 18px);
}
.ct-photo .am-float.f1 { top: 6px; left: 0; }
.ct-photo .am-float.f2 { top: 40%; right: -4%; color: #e05d5d; }
.ct-photo .am-float.f3 { bottom: 72px; left: -3%; color: #3a8fd9; font-family: "Lato", sans-serif; font-style: normal; font-size: 14px; }
.ct-photo figcaption { position: relative; margin-top: 22px; font-size: 13px; line-height: 1.5; color: var(--am-muted); text-align: center; }
.ct-photo figcaption a { color: inherit; text-decoration: underline; text-decoration-color: var(--am-line); }

/* ---------- main grid ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.ct-stack { display: flex; flex-direction: column; gap: 16px; }
.ct-mail li { display: flex; align-items: center; gap: 12px; }
.ct-mail li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ct-copy {
	flex: none; border: 1px solid var(--am-line); background: #fff; color: var(--am-ink-2); border-radius: 7px;
	font-size: 12.5px; font-weight: 700; padding: 5px 10px; cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.ct-copy:hover, .ct-copy:focus-visible { border-color: var(--am-accent); color: var(--am-accent-ink); outline: none; }
.ct-copy.is-done { background: var(--am-accent); border-color: var(--am-accent); color: #fff; }
.ct-copy .fa { margin-right: 4px; }
.ct-card-foot { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--am-muted); }

/* ---------- before you write ---------- */
.ct-tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ct-tip { background: #fff; border: 1px solid var(--am-line); border-radius: 12px; padding: 20px 22px; }
.ct-tip[hidden] { display: none; }
.ct-tip-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e9f9f2; color: var(--am-accent-ink); font-size: 17px; margin-bottom: 12px; }
.ct-tip h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--am-ink); }
.ct-tip p { font-size: 15px; line-height: 1.6; color: var(--am-ink-2); margin: 0; }
.ct-tip p + p { margin-top: 8px; }

/* ---------- elsewhere ---------- */
.ct-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-links a {
	display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--am-line); border-radius: 10px;
	padding: 13px 16px; color: var(--am-ink); font-weight: 700; font-size: 15px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ct-links a:hover { border-color: var(--am-accent); transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .3); color: var(--am-ink); }
.ct-links .ct-ico { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #f1f4f3; color: var(--am-accent-ink); font-size: 16px; font-weight: 900; }
.ct-links small { display: block; font-weight: 400; font-size: 12.5px; color: var(--am-muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.ct-grid { grid-template-columns: 1fr; }
	.ct-tips { grid-template-columns: 1fr; }
	.ct-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.ct-hero { padding-top: 76px; }
	.ct-hero .am-hero-grid { grid-template-columns: 1fr; gap: 20px; }
	.ct-photo { max-width: 460px; }
}
@media (max-width: 640px) {
	.ct-hero h1 { font-size: 36px; }
	.ct-photo .am-float { display: none; }
	.ct-links { grid-template-columns: 1fr; }
}
